/* Importación de fuentes */
@import url('https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;700&family=Inter:wght@300;400;600&display=swap');

/* Variables CSS */
:root {
  --fp-primary: #3A6F8F;
  --fp-primary-light: #4A8AAF;
  --fp-primary-dark: #2A5A7A;
  --fp-secondary: #70B085;
  --fp-accent: #E8C547;
  --fp-white: #FFFFFF;
  --fp-light-gray: #F9F9F9;
  --fp-gray-100: #F5F5F5;
  --fp-gray-200: #EEEEEE;
  --fp-gray-300: #E0E0E0;
  --fp-gray-400: #BDBDBD;
  --fp-gray-500: #9E9E9E;
  --fp-gray-600: #757575;
  --fp-gray-700: #616161;
  --fp-gray-800: #424242;
  --fp-gray-900: #212121;
  --fp-black: #333333;
  
  --fp-font-primary: 'Inter', system-ui, sans-serif;
  --fp-font-mono: 'JetBrains Mono', monospace;
  
  --fp-radius-sm: 4px;
  --fp-radius-md: 8px;
  --fp-radius-lg: 16px;
  
  --fp-shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
  --fp-shadow-md: 0 4px 8px rgba(0, 0, 0, 0.1);
  --fp-shadow-lg: 0 8px 16px rgba(0, 0, 0, 0.1);
  
  --fp-space-xs: 0.25rem;
  --fp-space-sm: 0.5rem;
  --fp-space-md: 1rem;
  --fp-space-lg: 1.5rem;
  --fp-space-xl: 2rem;
  --fp-space-xxl: 3rem;
  
  --fp-transition: all 0.3s ease;
}

/* Reset y estilos base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--fp-font-primary);
  color: var(--fp-black);
  background-color: var(--fp-white);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--fp-primary);
  text-decoration: none;
  transition: var(--fp-transition);
}

a:hover {
  color: var(--fp-primary-dark);
}

.iti {
  width: 100%;
}

/* Tipografía */
h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: var(--fp-space-md);
}

h1 {
  font-size: clamp(2rem, 5vw, 3rem);
}

h2 {
  font-size: clamp(1.5rem, 4vw, 2.25rem);
}

h3 {
  font-size: clamp(1.25rem, 3vw, 1.75rem);
}

h4 {
  font-size: clamp(1.1rem, 2vw, 1.5rem);
}

p {
  margin-bottom: var(--fp-space-md);
}

.fp-mono {
  font-family: var(--fp-font-mono);
}

.fp-text-center {
  text-align: center;
}

/* Layout */
.fp-wrapper {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--fp-space-md);
}

.fp-content {
  padding: var(--fp-space-xl) 0;
}

.fp-row {
  display: flex;
  flex-wrap: wrap;
  margin: 0 -var(--fp-space-md);
}

.fp-col {
  flex: 1;
  padding: 0 var(--fp-space-md);
  min-width: 250px;
}

/* Header y navegación */
.fp-header {
  padding: var(--fp-space-md) 0;
  background-color: var(--fp-white);
  box-shadow: var(--fp-shadow-sm);
  position: sticky;
  top: 0;
  z-index: 100;
}

.fp-navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fp-logo {
  display: flex;
  align-items: center;
}

.fp-logo img {
  height: 40px;
}

.fp-nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  color: var(--fp-primary);
}

.fp-nav-menu {
  display: flex;
  list-style: none;
}

.fp-nav-item {
  margin-left: var(--fp-space-lg);
}

.fp-nav-link {
  font-weight: 500;
  padding: var(--fp-space-xs) var(--fp-space-sm);
  border-radius: var(--fp-radius-sm);
  transition: var(--fp-transition);
}

.fp-nav-link:hover, .fp-nav-link.fp-active {
  background-color: var(--fp-gray-100);
}

/* Botones */
.fp-button {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 500;
  text-align: center;
  border: none;
  border-radius: var(--fp-radius-md);
  cursor: pointer;
  transition: var(--fp-transition);
}

.fp-button-primary {
  background-color: var(--fp-primary);
  color: var(--fp-white);
}

.fp-button-primary:hover {
  background-color: var(--fp-primary-dark);
  color: var(--fp-white);
}

.fp-button-secondary {
  background-color: var(--fp-secondary);
  color: var(--fp-white);
}

.fp-button-secondary:hover {
  background-color: var(--fp-secondary);
  filter: brightness(90%);
  color: var(--fp-white);
}

.fp-button-outline {
  background-color: transparent;
  border: 1px solid var(--fp-primary);
  color: var(--fp-primary);
}

.fp-button-outline:hover {
  background-color: var(--fp-primary);
  color: var(--fp-white);
}

/* Sección de split-screen */
.fp-split {
  display: flex;
  flex-wrap: wrap;
  min-height: 500px;
}

.fp-split-content, .fp-split-image {
  flex: 1;
  min-width: 300px;
}

.fp-split-content {
  padding: var(--fp-space-xl);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.fp-split-image {
  background-size: cover;
  background-position: center;
  position: relative;
}

.fp-split-image img {
  object-fit: cover;
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

/* Tarjetas */
.fp-card {
  background-color: var(--fp-white);
  border-radius: var(--fp-radius-md);
  box-shadow: var(--fp-shadow-sm);
  padding: var(--fp-space-lg);
  margin-bottom: var(--fp-space-lg);
  transition: var(--fp-transition);
}

.fp-card:hover {
  box-shadow: var(--fp-shadow-md);
  transform: translateY(-5px);
}

.fp-card-header {
  margin-bottom: var(--fp-space-md);
}

.fp-card-image {
  border-radius: var(--fp-radius-sm);
  overflow: hidden;
  margin-bottom: var(--fp-space-md);
}

.fp-card-footer {
  margin-top: var(--fp-space-md);
  display: flex;
  justify-content: flex-end;
}

/* Formularios */
.fp-form-group {
  margin-bottom: var(--fp-space-md);
}

.fp-label {
  display: block;
  margin-bottom: var(--fp-space-xs);
  font-weight: 500;
}

.fp-input, .fp-textarea, .fp-select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid var(--fp-gray-300);
  border-radius: var(--fp-radius-sm);
  font-family: var(--fp-font-primary);
  font-size: 1rem;
  transition: var(--fp-transition);
}

.fp-input:focus, .fp-textarea:focus, .fp-select:focus {
  outline: none;
  border-color: var(--fp-primary);
  box-shadow: 0 0 0 2px rgba(58, 111, 143, 0.2);
}

.fp-textarea {
  min-height: 150px;
  resize: vertical;
}

.fp-checkbox-group {
  display: flex;
  align-items: center;
  margin-bottom: var(--fp-space-md);
}

.fp-checkbox {
  margin-right: var(--fp-space-xs);
}

/* Pie de página */
.fp-footer {
  background-color: var(--fp-gray-100);
  padding: var(--fp-space-xl) 0;
  margin-top: var(--fp-space-xxl);
}

.fp-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: var(--fp-space-xl);
}

.fp-footer-column h4 {
  margin-bottom: var(--fp-space-md);
  color: var(--fp-primary);
}

.fp-footer-links {
  list-style: none;
}

.fp-footer-link {
  margin-bottom: var(--fp-space-sm);
}

.fp-footer-bottom {
  margin-top: var(--fp-space-xl);
  padding-top: var(--fp-space-md);
  border-top: 1px solid var(--fp-gray-300);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.fp-footer-copyright {
  margin-bottom: var(--fp-space-md);
}

/* Utilidades */
.fp-mt-0 { margin-top: 0; }
.fp-mb-0 { margin-bottom: 0; }
.fp-mt-1 { margin-top: var(--fp-space-sm); }
.fp-mb-1 { margin-bottom: var(--fp-space-sm); }
.fp-mt-2 { margin-top: var(--fp-space-md); }
.fp-mb-2 { margin-bottom: var(--fp-space-md); }
.fp-mt-3 { margin-top: var(--fp-space-lg); }
.fp-mb-3 { margin-bottom: var(--fp-space-lg); }
.fp-mt-4 { margin-top: var(--fp-space-xl); }
.fp-mb-4 { margin-bottom: var(--fp-space-xl); }
.fp-mt-5 { margin-top: var(--fp-space-xxl); }
.fp-mb-5 { margin-bottom: var(--fp-space-xxl); }

.fp-text-primary { color: var(--fp-primary); }
.fp-text-secondary { color: var(--fp-secondary); }
.fp-text-accent { color: var(--fp-accent); }

.fp-bg-light { background-color: var(--fp-light-gray); }
.fp-bg-white { background-color: var(--fp-white); }
.fp-bg-primary { background-color: var(--fp-primary); }
.fp-bg-secondary { background-color: var(--fp-secondary); }

.fp-text-center { text-align: center; }
.fp-text-right { text-align: right; }

/* Modal */
.fp-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.fp-modal-content {
  background-color: var(--fp-white);
  border-radius: var(--fp-radius-md);
  max-width: 500px;
  width: 90%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
  animation: fp-modal-in 0.3s ease-out;
}

@keyframes fp-modal-in {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fp-modal-header {
  padding: var(--fp-space-lg) var(--fp-space-lg) var(--fp-space-md);
  border-bottom: 1px solid var(--fp-gray-200);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.fp-modal-body {
  padding: var(--fp-space-lg);
}

.fp-modal-footer {
  padding: var(--fp-space-md) var(--fp-space-lg) var(--fp-space-lg);
  border-top: 1px solid var(--fp-gray-200);
  display: flex;
  justify-content: flex-end;
  gap: var(--fp-space-sm);
}

.fp-modal-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--fp-gray-700);
  transition: var(--fp-transition);
}

.fp-modal-close:hover {
  color: var(--fp-primary);
}

/* Cookie Consent */
.fp-cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: var(--fp-white);
  box-shadow: var(--fp-shadow-lg);
  padding: var(--fp-space-lg);
  z-index: 999;
  display: none;
}

.fp-cookie-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--fp-space-md);
}

.fp-cookie-text {
  flex: 1;
  min-width: 280px;
}

.fp-cookie-actions {
  display: flex;
  flex-wrap: wrap;
  gap: var(--fp-space-sm);
}

.fp-cookie-settings {
  background-color: var(--fp-white);
  max-width: 800px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
}

.fp-cookie-category {
  margin-bottom: var(--fp-space-md);
  padding-bottom: var(--fp-space-md);
  border-bottom: 1px solid var(--fp-gray-200);
}

.fp-cookie-category:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.fp-cookie-category-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--fp-space-sm);
}

.fp-cookie-category-title {
  margin-bottom: 0;
}

.fp-cookie-category-toggle {
  display: flex;
  align-items: center;
}

.fp-cookie-category-desc {
  margin-bottom: var(--fp-space-sm);
}

/* Características de bloque */
.fp-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--fp-space-lg);
  margin: var(--fp-space-xl) 0;
}

.fp-feature-item {
  padding: var(--fp-space-lg);
  border-radius: var(--fp-radius-md);
  background-color: var(--fp-white);
  box-shadow: var(--fp-shadow-sm);
  transition: var(--fp-transition);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.fp-feature-item:hover {
  box-shadow: var(--fp-shadow-md);
  transform: translateY(-5px);
}

.fp-feature-icon {
  font-size: 2.5rem;
  color: var(--fp-primary);
  margin-bottom: var(--fp-space-md);
}

.fp-feature-content {
  flex-grow: 1;
}

/* Responsive - Mobile first */
@media (max-width: 768px) {
  .fp-nav-toggle {
    display: block;
  }
  
  .fp-nav-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: var(--fp-white);
    box-shadow: var(--fp-shadow-md);
    flex-direction: column;
    padding: var(--fp-space-md) 0;
  }
  
  .fp-nav-menu.fp-active {
    display: flex;
  }
  
  .fp-nav-item {
    margin: 0;
    width: 100%;
  }
  
  .fp-nav-link {
    display: block;
    padding: var(--fp-space-md) var(--fp-space-lg);
  }
  
  .fp-split {
    flex-direction: column;
  }
  
  .fp-split-content, .fp-split-image {
    width: 100%;
  }
  
  .fp-split-image {
    min-height: 300px;
  }
  
  .fp-footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

@media (min-width: 769px) {
  .fp-split-reverse {
    flex-direction: row-reverse;
  }
  
  .fp-wide-text {
    max-width: 70%;
    margin: 0 auto;
  }
}

/* Animaciones */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(20px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.fp-animate-fade {
  animation: fadeIn 1s ease-out;
}

.fp-animate-up {
  animation: slideInUp 0.8s ease-out;
}

/* Mapa */
.fp-map-container {
  height: 400px;
  width: 100%;
  border-radius: var(--fp-radius-md);
  overflow: hidden;
  box-shadow: var(--fp-shadow-sm);
  margin-bottom: var(--fp-space-lg);
}