/* ============================================================
   CSS Variables - Navy-Green Community Palette
   Ecosistema GDI - Human-Centered Design
   ============================================================ */
:root {
  /* ===== BACKGROUND SYSTEM - Warm Navy Blues ===== */
  --bg-darkest: #0d1821;        /* Deep navy with warmth - Base primaria */
  --bg-dark: #1b2d3f;           /* Warm navy (más cálido que antes) - Background principal */
  --bg-medium: #2d4356;         /* Medium navy warm - Cards primarias */
  --bg-light: #3d5a73;          /* Lighter warm navy - Cards secundarias, hovers */
  --bg-elevated: #4a6b87;       /* Elevated warm navy - Elementos elevados */

  /* ===== TEXT SYSTEM - High Contrast ===== */
  --text-white: #ffffff;        /* Pure white - Headings, important text */
  --text-primary: #f0f4fc;      /* Very light - Body text */
  --text-secondary: #c5d4f0;    /* Light - Secondary text */
  --text-muted: #8fa3c7;        /* Medium - Muted text, placeholders */
  --text-disabled: #5d7199;     /* Medium - Disabled state */

  /* ===== ACCENT SYSTEM - Community Colors ===== */
  --accent-bright: #f4c542;     /* Warm golden yellow - CTAs principales (del sol en imágenes) */
  --accent-primary: #1b2d3f;    /* Forest green - CTAs secundarios, links (de árboles) */
  --accent-medium: #5bb5a2;     /* Turquoise soft - Hover states (vida, agua) */
  --accent-soft: #3d5a73;       /* Soft green - Accents suaves, badges */

  /* ===== NATURE GREENS - From Images ===== */
  --green-forest-dark: #0d1821; /* Dark forest green - Árboles, naturaleza */
  --green-forest: #1b2d3f;      /* Forest green - Vegetación principal */
  --green-soft: #3d5a73;        /* Soft green - Acentos verdes */
  --green-light: #8ba888;       /* Light green - Hover states verdes */

  /* ===== WARM TONES - From Architecture ===== */
  --warm-terracotta: #d4a574;   /* Warm terracotta - Arquitectura colonial */
  --warm-gold: #f4c542;         /* Golden yellow - Sol, energía */
  --warm-amber: #e8b563;        /* Amber - Iluminación cálida */

  /* ===== INTERACTIVE COLORS ===== */
  --interactive-primary: #1b2d3f;    /* Forest green - Botones primarios */
  --interactive-hover: #5bb5a2;      /* Turquoise - Hover state */
  --interactive-active: #0d1821;     /* Dark green - Active/pressed state */

  /* ===== BORDER SYSTEM ===== */
  --border-subtle: #2d4356;     /* Warm navy - Bordes sutiles */
  --border-medium: #3d5a73;     /* Medium warm navy - Bordes normales */
  --border-strong: #4a6b87;     /* Lighter navy - Bordes destacados */
  --border-accent: #1b2d3f;     /* Forest green - Bordes de acento */

  /* ===== SHADOWS - Natural Glows ===== */
  --shadow-sm: rgba(27, 45, 63, 0.08);      /* Subtle green glow */
  --shadow-md: rgba(27, 45, 63, 0.15);      /* Medium green glow */
  --shadow-lg: rgba(27, 45, 63, 0.25);      /* Strong green glow */
  --shadow-xl: rgba(27, 45, 63, 0.35);      /* Intense green glow */
  --shadow-dark: rgba(0, 0, 0, 0.3);         /* Dark shadow para depth */

  /* ===== GRADIENT SYSTEM - Navy to Green ===== */
  --gradient-navy-dark: linear-gradient(135deg, #1b2d3f 0%, #2d4356 100%);
  --gradient-navy-green: linear-gradient(135deg, #2d4356 0%, #0d1821 100%);
  --gradient-green-warm: linear-gradient(135deg, #1b2d3f 0%, #5bb5a2 100%);
  --gradient-warm-gold: linear-gradient(135deg, #d4a574 0%, #f4c542 100%);
  --gradient-hero: linear-gradient(135deg, rgba(27, 45, 63, 0.85) 0%, rgba(13, 24, 33, 0.75) 100%);

  /* ===== OVERLAY GRADIENTS - Para backgrounds con imágenes ===== */
  --overlay-hero: linear-gradient(135deg, rgba(27, 45, 63, 0.75) 0%, rgba(13, 24, 33, 0.65) 100%);
  --overlay-dark: linear-gradient(135deg, rgba(13, 24, 33, 0.85) 0%, rgba(27, 45, 63, 0.80) 100%);
  --overlay-medium: linear-gradient(135deg, rgba(27, 45, 63, 0.70) 0%, rgba(45, 67, 86, 0.65) 100%);
  --overlay-light: linear-gradient(135deg, rgba(45, 67, 86, 0.60) 0%, rgba(61, 90, 115, 0.55) 100%);

  /* ===== LEGACY COMPATIBILITY ===== */
  --primary: #1b2d3f;           /* Maps to accent-primary (forest green) */
  --secondary: #5bb5a2;         /* Maps to accent-medium (turquoise) */
  --accent: #f4c542;            /* Maps to accent-bright (golden) */
  --accent-light: #3d5a73;      /* Maps to accent-soft (soft green) */
  --background: #1b2d3f;        /* Maps to bg-dark */
  --card-bg: #2d4356;           /* Maps to bg-medium */
  --text-primary: #f0f4fc;      /* Maps to text-primary */
  --text-secondary: #c5d4f0;    /* Maps to text-secondary */
  --border: #3d5a73;            /* Maps to border-medium */
  --shadow: rgba(27, 45, 63, 0.15);           /* Maps to shadow-md */
  --shadow-hover: rgba(27, 45, 63, 0.25);     /* Maps to shadow-lg */
  --dark-bg: #0d1821;           /* Maps to bg-darkest */
  --dark-text: #ffffff;         /* Maps to text-white */
  --gradient-start: #2d4356;    /* Gradient start warm navy */
  --gradient-end: #0d1821;      /* Gradient end forest green */

  --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);

  /* ===== CIUDAD TAGS - Dura vs Blanda ===== */
  --blue-warm: #5bb5a2;         /* Turquoise - Ciudad Dura */
  --green-soft: #1b2d3f;        /* Forest green - Ciudad Blanda */
  --green-light: #3d5a73;       /* Soft green - hover */
}

/* ============================================================
   CONTRAST RATIOS & WCAG AAA COMPLIANCE
   ============================================================

   BACKGROUND COLORS:
   - bg-darkest (#020817):  Luminance 0.4%  - Base más oscura
   - bg-dark (#0a1628):     Luminance 0.8%  - Background principal
   - bg-medium (#0f1f3d):   Luminance 1.5%  - Cards
   - bg-light (#162a4d):    Luminance 2.5%  - Elevated elements
   - bg-elevated (#1a3460): Luminance 3.8%  - Highest elevation

   TEXT ON DARK BACKGROUNDS (sobre bg-dark #0a1628):
   - text-white (#ffffff):     21:1 ratio ✓✓✓ WCAG AAA (>7:1)
   - text-primary (#f0f4fc):   18.5:1 ratio ✓✓✓ WCAG AAA
   - text-secondary (#c5d4f0): 10.2:1 ratio ✓✓✓ WCAG AAA
   - text-muted (#8fa3c7):     5.8:1 ratio ✓✓ WCAG AA (>4.5:1)
   - text-disabled (#5d7199):  3.5:1 ratio ✓ Large text only

   ACCENT COLORS ON DARK BACKGROUNDS:
   - accent-bright (#0d1821):  Royal blue - Primary CTAs
   - accent-primary (#1e40af): Deep blue - Secondary CTAs, links
   - accent-medium (#1b2d3f):  Medium blue - Hover states
   - accent-soft (#60a5fa):    Soft blue - Badges and accents

   ============================================================
   COLOR USAGE GUIDELINES
   ============================================================

   BACKGROUNDS:
   - Hero sections: bg-darkest o gradient-hero
   - Page background: bg-dark
   - Cards/panels: bg-medium
   - Hover states: bg-light
   - Modals/dropdowns: bg-elevated

   TEXT:
   - Titles/headers: text-white
   - Body/paragraphs: text-primary
   - Supporting text: text-secondary
   - Labels/captions: text-muted
   - Disabled: text-disabled

   ACCENTS & ACTIONS:
   - Primary CTAs: accent-bright (background) + text-white
   - Secondary CTAs: accent-primary (background) + text-white
   - Links: accent-primary (normal) → accent-medium (hover)
   - Highlights: accent-soft
   - Borders de acento: border-accent

   BORDERS:
   - Subtle divisions: border-subtle
   - Standard borders: border-medium
   - Emphasis borders: border-strong
   - Focus/active: border-accent

   SHADOWS & GLOWS:
   - Card shadows: shadow-md
   - Hover effects: shadow-lg
   - Active/focus glows: shadow-xl
   - Depth shadows: shadow-dark

   ============================================================ */

/* ============================================================
   Reset & Base Styles
   ============================================================ */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-family);
  background-color: var(--background);
  color: var(--text-primary);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  background: none;
}

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

/* ============================================================
   Container
   ============================================================ */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* ============================================================
   Header
   ============================================================ */
.header {
  background-color: #0C0B4A;
  color: white;
  padding: 1rem 0;
  box-shadow: 0 2px 8px var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 2rem;
}

.logo-link {
  display: block;
  height: 45px;
}

.logo-image {
  height: 100%;
  width: auto;
  object-fit: contain;
}

.nav {
  display: flex;
  align-items: center;
  gap: 2rem;
}

.nav-link {
  color: white;
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--transition);
  position: relative;
  padding: 0.5rem 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--accent);
  transition: width 0.3s ease;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link:hover {
  color: var(--accent-light);
}

.lang-toggle {
  background-color: rgba(255, 255, 255, 0.1);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
  font-weight: 500;
  font-size: 0.875rem;
}

.lang-toggle:hover {
  background-color: rgba(255, 255, 255, 0.2);
}

.lang-icon {
  font-size: 1rem;
}

/* ============================================================
   Hero Section
   ============================================================ */
.hero {
  background: transparent;
  color: white;
  padding: 4rem 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 30% 50%, rgba(27, 45, 63, 0.12) 0%, transparent 50%);
  pointer-events: none;
}

/* Page Hero (for solutions.html) */
.page-hero {
  background: transparent;
  color: white;
  padding: 2rem 0 1rem 0;
  text-align: center;
  position: relative;
}

.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  background: rgba(13, 24, 33, 0.75);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto;
}

.hero-badge {
  display: inline-block;
  margin-bottom: 2rem;
  position: relative;
  z-index: 1;
}

.hero-badge-image {
  height: 100px;
  width: auto;
  display: block;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 1.5rem;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

.hero-subtitle {
  font-size: 1.35rem;
  opacity: 0.95;
  max-width: 700px;
  margin: 0 auto 0.5rem;
  line-height: 1.6;
  position: relative;
  z-index: 1;
  font-style: italic;
}

.hero-subtitle-author {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 700px;
  margin: 0 auto 2.5rem;
  position: relative;
  z-index: 1;
  font-weight: 300;
}

.hero-content-box {
  background: rgba(13, 24, 33, 0.40);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(13, 24, 33, 0.2);
  border: 1px solid rgba(27, 45, 63, 0.2);
  display: inline-block;
  max-width: 900px;
  margin: 0 auto;
}

.hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  align-items: center;
  position: relative;
  z-index: 1;
}

.btn-hero-primary,
.btn-hero-secondary {
  padding: 1rem 2.5rem;
  font-weight: 600;
  font-size: 1.05rem;
  border-radius: 50px;
  transition: var(--transition);
  text-decoration: none;
  display: inline-block;
}

.btn-hero-primary {
  background: linear-gradient(135deg, #0d1821 0%, #1b2d3f 100%);
  color: white;
  box-shadow: 0 8px 25px rgba(13, 24, 33, 0.4);
  position: relative;
  overflow: hidden;
}

.btn-hero-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
  transition: left 0.5s ease;
}

.btn-hero-primary:hover::before {
  left: 100%;
}

.btn-hero-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #0d1821 100%);
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(13, 24, 33, 0.6);
}

.btn-hero-secondary {
  background-color: transparent;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.3);
}

.btn-hero-secondary:hover {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
}

/* Quote Section */
.quote-section {
  background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
  padding: 4rem 0;
  position: relative;
}

.revolutionary-quote {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  color: white;
}

.revolutionary-quote p {
  font-size: 2rem;
  font-weight: 400;
  font-style: italic;
  line-height: 1.5;
  margin-bottom: 1.5rem;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.revolutionary-quote cite {
  font-size: 1.1rem;
  font-style: normal;
  font-weight: 600;
  color: var(--accent);
}

@media (max-width: 768px) {
  .hero {
    padding: 3rem 0;
  }

  .hero-badge {
    font-size: 0.65rem;
    padding: 0.4rem 1rem;
  }

  .hero-title {
    font-size: 2.2rem;
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-cta {
    flex-direction: column;
    gap: 0.75rem;
  }

  .btn-hero-primary,
  .btn-hero-secondary {
    width: 100%;
    max-width: 300px;
  }

  .revolutionary-quote p {
    font-size: 1.4rem;
  }
}

/* ============================================================
   Filters
   ============================================================ */
.filters {
  background-color: transparent;
  padding: 1rem 0;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 100;
}

.filter-buttons {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.filter-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 24px;
  background-color: var(--background);
  color: var(--text-primary);
  font-weight: 500;
  transition: var(--transition);
  border: 2px solid transparent;
}

.filter-btn:hover {
  background-color: var(--primary);
  color: white;
  transform: translateY(-2px);
}

.filter-btn.active {
  background-color: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 768px) {
  .filter-btn {
    padding: 0.6rem 1.2rem;
    font-size: 0.9rem;
  }
}

/* ============================================================
   Main Content
   ============================================================ */
.main {
  padding: 3rem 0;
  min-height: 60vh;
}

/* ============================================================
   Solutions Grid
   ============================================================ */
.solutions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .solutions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .solutions-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Solution Card */
.solution-card {
  background-color: var(--bg-medium);
  border-radius: 16px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  box-shadow: 0 4px 12px var(--shadow-md);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.solution-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 24px var(--shadow-lg);
  border-color: var(--border-accent);
}

.solution-card:has(.ciudad-dura):hover {
  box-shadow: 0 20px 50px rgba(96, 165, 250, 0.3);
  border-color: rgba(96, 165, 250, 0.5);
}

.solution-card:has(.ciudad-blanda):hover {
  box-shadow: 0 20px 50px rgba(16, 185, 129, 0.3);
  border-color: rgba(16, 185, 129, 0.5);
}

.solution-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  background-color: var(--background);
}

.solution-content {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.ciudad-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.9rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.75rem;
  width: fit-content;
}

.ciudad-dura {
  background: rgba(96, 165, 250, 0.15);
  color: var(--blue-warm);
  border: 1px solid rgba(96, 165, 250, 0.3);
}

.ciudad-blanda {
  background: rgba(16, 185, 129, 0.15);
  color: var(--green-soft);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.solution-category {
  font-size: 0.875rem;
  color: var(--accent-soft);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.solution-name {
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-white);
  line-height: 1.3;
}

.solution-description {
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
  flex: 1;
}

.solution-cta {
  margin-top: 1rem;
  color: var(--accent-primary);
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition);
}

.solution-card:hover .solution-cta {
  color: var(--accent-bright);
}

.solution-cta:after {
  content: '→';
  transition: var(--transition);
  display: inline-block;
}

.solution-card:hover .solution-cta:after {
  transform: translateX(6px);
}

/* ============================================================
   Loading & Empty States
   ============================================================ */
.loading,
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid var(--background);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.empty-state p {
  color: var(--text-secondary);
  font-size: 1.125rem;
}

/* ============================================================
   Modal
   ============================================================ */
.modal {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(0, 0, 0, 0.7);
}

.modal-content {
  position: relative;
  background-color: var(--card-bg);
  width: 100%;
  max-width: 900px;
  max-height: 85vh;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideIn 0.3s ease-out;
  border: 1px solid var(--border);
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--background);
  color: var(--text-primary);
  font-size: 2rem;
  line-height: 1;
  z-index: 10;
  transition: var(--transition);
  box-shadow: 0 2px 8px var(--shadow);
  border: 2px solid var(--border);
}

.modal-close:hover {
  background-color: var(--primary);
  color: white;
  transform: scale(1.1);
  border-color: var(--accent);
}

.modal-body {
  display: flex;
  gap: 2rem;
  padding: 2rem;
  max-height: 75vh;
  overflow-y: auto;
}

.modal-image {
  flex: 0 0 280px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-color: var(--background);
  border-radius: 12px;
  padding: 2rem;
  height: fit-content;
}

.modal-image img {
  width: 100%;
  height: auto;
  max-height: 280px;
  object-fit: contain;
  border-radius: 8px;
}

.modal-details {
  flex: 1;
  min-width: 0;
}

.modal-name {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.5rem;
}

.modal-category {
  font-size: 1rem;
  color: var(--secondary);
  font-weight: 600;
  margin-bottom: 1.5rem;
}

.modal-description {
  color: var(--text-primary);
  line-height: 1.8;
  margin-bottom: 2rem;
}

.modal-links {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.modal-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--secondary);
  font-weight: 500;
  transition: var(--transition);
}

.modal-link:hover {
  color: var(--primary);
  gap: 0.75rem;
}

.modal-linkedin h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--primary);
}

.modal-linkedin-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ============================================================
   Section Title
   ============================================================ */
.section-title {
  font-size: 2rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 2rem;
  text-align: center;
}

/* ============================================================
   View More Button
   ============================================================ */
.view-more-container {
  text-align: center;
  margin-top: 3rem;
}

.btn-view-more {
  display: block;
  width: 100%;
  padding: 1.25rem 2.5rem;
  background-color: var(--primary);
  color: white;
  font-weight: 600;
  font-size: 1.1rem;
  border-radius: 12px;
  transition: var(--transition);
  box-shadow: 0 4px 12px var(--shadow);
  text-align: center;
}

.btn-view-more:hover {
  background-color: var(--secondary);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px var(--shadow-hover);
}

/* ============================================================
   Fundamentals Section
   ============================================================ */
.fundamentals {
  background: var(--dark-bg);
  padding: 6rem 0;
  margin-top: 0;
  color: var(--dark-text);
}

.fundamentals-grid {
  display: grid;
  grid-template-columns: 1fr 1.5fr;
  gap: 4rem;
  align-items: center;
}

.fundamentals-visual {
  display: flex;
  justify-content: center;
}

.protocol-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto;
  transition: var(--transition);
}

.protocol-image:hover {
  transform: scale(1.05);
}

.fundamentals-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 2rem;
}

.fundamentals-content {
  font-size: 1.125rem;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.9);
}

.fundamentals-content p {
  margin-bottom: 1.5rem;
}

.fundamentals-lead {
  font-size: 1.35rem !important;
  color: white;
  margin-bottom: 2rem !important;
}

.fundamentals-cta-text {
  font-size: 1.6rem !important;
  font-weight: 800 !important;
  color: var(--accent);
  margin-top: 2rem !important;
  text-shadow: 0 0 20px rgba(0, 153, 255, 0.3);
}

@media (max-width: 1024px) {
  .fundamentals-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }
}

/* ============================================================
   Footer
   ============================================================ */
.footer {
  background-color: #0C0B4A;
  color: white;
  padding: 3rem 0 1.5rem;
  margin-top: 0;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  margin-bottom: 2rem;
}

.footer-left {
  flex: 1;
}

.footer-logo {
  height: 45px;
  width: auto;
  margin-bottom: 1rem;
}

.footer-tagline {
  color: rgba(255, 255, 255, 0.7);
  margin-bottom: 1rem;
  font-size: 0.95rem;
}

.footer-email {
  color: var(--accent-light);
  font-weight: 600;
  font-size: 1.1rem;
  transition: var(--transition);
}

.footer-email:hover {
  color: var(--accent);
}

.footer-right {
  display: flex;
  gap: 3rem;
}

.footer-links h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: white;
}

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

.footer-links li {
  margin-bottom: 0.5rem;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
}

.footer-links a:hover {
  color: var(--accent-light);
}

/* Contact Form Section */
.contact-form-section {
  padding: 3rem 0 2rem;
  background: transparent;
  position: relative;
}

.contact-form-container {
  max-width: 900px;
  margin: 0 auto;
}

.google-form-placeholder {
  background: var(--card-bg);
  border: 2px dashed var(--border-medium);
  border-radius: 12px;
  padding: 4rem 2rem;
  text-align: center;
}

.placeholder-content h2 {
  color: var(--text-primary);
  margin-bottom: 1rem;
  font-size: 1.75rem;
}

.placeholder-content p {
  color: var(--text-secondary);
  font-size: 1.1rem;
  line-height: 1.6;
  max-width: 600px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .footer-content {
    flex-direction: column;
    gap: 2rem;
  }

  .footer-right {
    gap: 2rem;
  }

  /* Modal responsive */
  .modal {
    padding: 1rem;
  }

  .modal-content {
    max-height: 95vh;
  }

  .modal-body {
    flex-direction: column;
    padding: 1.5rem;
    gap: 1.5rem;
  }

  .modal-image {
    flex: 0 0 auto;
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
    padding: 1.5rem;
  }

  .modal-image img {
    max-height: 200px;
  }

  .modal-name {
    font-size: 1.5rem;
  }

  .modal-close {
    width: 36px;
    height: 36px;
    font-size: 1.5rem;
  }
}

/* ============================================================
   Fundamentals Page
   ============================================================ */

/* ============================================================
   Full Page Fixed Backgrounds
   ============================================================ */

/* Home Page - Scrolling background */
.home-page-body {
  background: url('/images/site/home.png') center top/cover no-repeat;
  min-height: 100vh;
}

/* Solutions Page - Fixed background */
.solutions-page-body {
  background: url('/images/site/solutions-bg.png') center/cover no-repeat fixed;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Protocol Page - Fixed background */
.protocol-page-body {
  background:
    linear-gradient(135deg, rgba(13, 24, 33, 0.45) 0%, rgba(27, 45, 63, 0.20) 100%),
    url('/images/site/protocol-bg.png') center/cover no-repeat fixed;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Contact Page - Fixed background */
.contact-page-body {
  background: url('/images/site/contact-bg.png') center/cover no-repeat fixed;
  background-attachment: fixed;
  min-height: 100vh;
}

/* Fundamentals Page - Fixed background */
.fundamentals-page-body {
  background: url('/images/site/fundamentals.png') center/cover no-repeat fixed;
  background-attachment: fixed;
  min-height: 100vh;
}

.fundamentals-hero {
  background: transparent;
  color: white;
  padding: 10rem 0 8rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.fundamentals-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 50% 50%, rgba(0, 153, 255, 0.15) 0%, transparent 70%);
  pointer-events: none;
  animation: pulse 8s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% {
    opacity: 1;
  }
  50% {
    opacity: 0.6;
  }
}

.fundamentals-hero-title {
  font-size: 4rem;
  font-weight: 900;
  margin-bottom: 2rem;
  line-height: 1.1;
  position: relative;
  z-index: 1;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  letter-spacing: -0.02em;
  animation: fadeInUp 0.8s ease-out;
}

.fundamentals-hero-subtitle {
  font-size: 1.65rem;
  opacity: 0.95;
  max-width: 750px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.5;
  font-weight: 300;
  animation: fadeInUp 0.8s ease-out 0.2s backwards;
}

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

.fundamentals-section {
  padding: 7rem 0;
  background: transparent;
  position: relative;
}

.fundamentals-section-dark {
  background: transparent;
  color: white;
  position: relative;
  overflow: hidden;
}

.fundamentals-section-dark::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(0, 153, 255, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.fundamentals-content-centered {
  max-width: 950px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  z-index: 1;
}

.fundamentals-section-title {
  font-size: 3rem;
  font-weight: 800;
  margin-bottom: 2.5rem;
  color: #ffffff;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.fundamentals-section-dark .fundamentals-section-title {
  color: white;
}

.fundamentals-section-text {
  font-size: 1.35rem;
  line-height: 1.5;
  margin-bottom: 2rem;
  color: var(--text-primary);
  font-weight: 300;
}

.fundamentals-section-dark .fundamentals-section-text {
  color: rgba(255, 255, 255, 0.95);
}

.fundamentals-section-lead {
  font-size: 1.75rem !important;
  font-weight: 700 !important;
  color: var(--accent);
  margin-bottom: 2.5rem !important;
  text-shadow: 0 0 30px rgba(0, 153, 255, 0.3);
}

.fundamentals-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.fundamentals-step {
  text-align: center;
}

.fundamentals-step-number {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--accent) 0%, #0077cc 100%);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  font-weight: 800;
  margin: 0 auto 2rem;
  box-shadow: 0 10px 30px rgba(0, 153, 255, 0.4);
  transition: var(--transition);
}

.fundamentals-step:hover .fundamentals-step-number {
  transform: scale(1.1) rotate(5deg);
  box-shadow: 0 15px 40px rgba(0, 153, 255, 0.6);
}

.fundamentals-step-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.fundamentals-step-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-secondary);
  font-weight: 300;
}

.fundamentals-principles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 3rem;
  margin-top: 5rem;
}

.fundamentals-principle {
  text-align: left;
  padding: 2.5rem;
  background: linear-gradient(135deg, rgba(0, 153, 255, 0.08) 0%, rgba(0, 119, 204, 0.05) 100%);
  border-radius: 16px;
  border: 2px solid rgba(0, 153, 255, 0.2);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.fundamentals-principle::before {
  content: '';
  position: absolute;
  top: -2px;
  left: -2px;
  right: -2px;
  bottom: -2px;
  background: linear-gradient(135deg, var(--accent), #0077cc);
  border-radius: 16px;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
}

.fundamentals-principle:hover::before {
  opacity: 0.1;
}

.fundamentals-principle:hover {
  transform: translateY(-8px);
  border-color: var(--accent);
  box-shadow: 0 15px 40px rgba(0, 153, 255, 0.3);
}

.fundamentals-principle-title {
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: var(--accent);
  letter-spacing: -0.01em;
}

.fundamentals-principle-text {
  font-size: 1.15rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 300;
}

.fundamentals-cta-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 2rem;
  color: #ffffff;
  letter-spacing: -0.02em;
  text-shadow: 0 0 40px rgba(0, 153, 255, 0.2);
}

.fundamentals-cta-text {
  font-size: 1.4rem;
  margin-bottom: 3rem;
  color: var(--text-primary);
  font-weight: 300;
  line-height: 1.6;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.fundamentals-cta-buttons {
  display: flex;
  gap: 1.5rem;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.fundamentals-cta-buttons .btn-hero-primary {
  padding: 1.25rem 3rem;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 10px 40px rgba(13, 24, 33, 0.5);
  transition: var(--transition);
}

.fundamentals-cta-buttons .btn-hero-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 50px rgba(13, 24, 33, 0.7);
}

@media (max-width: 768px) {
  .fundamentals-hero {
    padding: 6rem 0 4rem;
  }

  .fundamentals-hero-title {
    font-size: 2.5rem;
  }

  .fundamentals-hero-subtitle {
    font-size: 1.35rem;
  }

  .fundamentals-section {
    padding: 4rem 0;
  }

  .fundamentals-section-title {
    font-size: 2.25rem;
  }

  .fundamentals-section-text {
    font-size: 1.15rem;
  }

  .fundamentals-section-lead {
    font-size: 1.4rem !important;
  }

  .fundamentals-cta-title {
    font-size: 2.25rem;
  }

  .fundamentals-cta-text {
    font-size: 1.15rem;
  }

  .fundamentals-steps,
  .fundamentals-principles {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .fundamentals-step-number {
    width: 70px;
    height: 70px;
    font-size: 2rem;
  }

  .fundamentals-step-title {
    font-size: 1.4rem;
  }

  .fundamentals-cta-buttons .btn-hero-primary {
    padding: 1rem 2.5rem;
    font-size: 1rem;
  }
}

/* ============================================================
   Cities Section (Home)
   ============================================================ */
.cities-section {
  padding: 5rem 0;
  background: transparent;
}

.cities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: rgba(13, 24, 33, 0.40);
  padding: 3rem;
  border-radius: 16px;
  box-shadow: 0 4px 16px rgba(13, 24, 33, 0.1);
  border: 1px solid rgba(27, 45, 63, 0.15);
}

.cities-title {
  font-size: 3rem;
  font-weight: 800;
  color: #ffffff;
  margin-bottom: 2rem;
  line-height: 1.2;
}

.cities-text {
  font-size: 1.25rem;
  line-height: 1.8;
  color: var(--text-primary);
  margin-bottom: 1.5rem;
}

.cities-cta-text {
  margin-top: 2rem;
}

.cities-cta-text a {
  color: var(--accent);
  font-weight: 600;
  font-size: 1.25rem;
  transition: var(--transition);
}

.cities-cta-text a:hover {
  color: var(--primary);
}

.cities-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

@media (max-width: 1024px) {
  .cities-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .cities-visual {
    order: -1;
  }

  .cities-title {
    font-size: 2.5rem;
  }
}

/* ============================================================
   Protocol Page
   ============================================================ */
.protocol-hero {
  padding: 5rem 0;
  background: transparent;
  color: white;
  position: relative;
}

.protocol-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  background: rgba(13, 24, 33, 0.65);
  padding: 2.5rem;
  border-radius: 16px;
  box-shadow: 0 8px 32px rgba(13, 24, 33, 0.2);
  border: 1px solid rgba(27, 45, 63, 0.2);
}

.protocol-hero-visual {
  /* Transparencia movida al contenedor padre */
}

.protocol-hero-image {
  width: 100%;
  max-width: 500px;
  height: auto;
  margin: 0 auto;
  display: block;
}

.protocol-hero-content {
  /* Transparencia movida al contenedor padre */
}

.protocol-hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 2rem;
  color: white;
}

.protocol-hero-text {
  font-size: 1.25rem;
  line-height: 1.8;
  margin-bottom: 1.5rem;
  color: rgba(255, 255, 255, 0.9);
}

.protocol-hero-cta {
  font-size: 1.6rem;
  font-weight: 800;
  color: #ffffff;
  margin-top: 2rem;
  text-shadow: 0 0 20px rgba(255, 255, 255, 0.3);
}

.protocol-principles-section {
  padding: 5rem 0;
  background: transparent;
  text-align: center;
}

.protocol-principles-title {
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 3rem;
  color: #ffffff;
  background: rgba(13, 24, 33, 0.65);
  padding: 1.5rem 2rem;
  border-radius: 12px;
  display: inline-block;
  box-shadow: 0 4px 20px rgba(13, 24, 33, 0.2);
}

.protocol-principles-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2.5rem;
  max-width: 1000px;
  margin: 0 auto;
}

.protocol-principle-card {
  background: rgba(13, 24, 33, 0.70);
  padding: 2.5rem;
  border-radius: 12px;
  border: 2px solid rgba(27, 45, 63, 0.4);
  transition: var(--transition);
}

.protocol-principle-card:hover {
  border-color: #1b2d3f;
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(27, 45, 63, 0.4);
  background: rgba(13, 24, 33, 0.75);
}

.protocol-principle-icon {
  font-size: 3rem;
  margin-bottom: 1.5rem;
  display: block;
}

.protocol-principle-card-title {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--accent);
}

.protocol-principle-card-text {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .protocol-hero-grid {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .protocol-hero-visual {
    order: -1;
  }

  .protocol-principles-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Fundamentals Page Updates
   ============================================================ */
.fundamentals-hero-with-bg {
  /* Background moved to body.fundamentals-page-body */
  background: transparent;
}

.fundamentals-steps-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3.5rem;
  margin-top: 5rem;
}

.fundamentals-steps-grid .fundamentals-step {
  text-align: left;
  padding: 3rem;
  background: transparent;
  border-radius: 16px;
  border: none;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.fundamentals-steps-grid .fundamentals-step::before {
  display: none;
}

.fundamentals-steps-grid .fundamentals-step:hover::before {
  display: none;
}

.fundamentals-steps-grid .fundamentals-step:hover {
  transform: none;
  box-shadow: none;
}

.fundamentals-steps-grid .fundamentals-step-number {
  margin: 0 0 2rem 0;
  box-shadow: 0 8px 25px rgba(0, 153, 255, 0.4);
}

.fundamentals-steps-grid .fundamentals-step:hover .fundamentals-step-number {
  transform: scale(1.15) rotate(8deg);
  box-shadow: 0 12px 35px rgba(0, 153, 255, 0.6);
}

.fundamentals-steps-grid .fundamentals-step-title {
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  color: #ffffff;
}

.fundamentals-steps-grid .fundamentals-step-text {
  font-size: 1.15rem;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.9);
}

@media (max-width: 768px) {
  .fundamentals-steps-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .fundamentals-steps-grid .fundamentals-step {
    padding: 2.5rem;
  }

  .fundamentals-steps-grid .fundamentals-step-title {
    font-size: 1.5rem;
  }
}

/* ============================================================
   Additional Visual Enhancements
   ============================================================ */
.fundamentals-section:nth-child(odd) {
  position: relative;
}

.fundamentals-section:nth-child(odd)::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  max-width: 800px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0, 153, 255, 0.3), transparent);
}

/* Strong text enhancement */
.fundamentals-section-text strong {
  color: var(--accent);
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 153, 255, 0.2);
}

.fundamentals-section-dark .fundamentals-section-text strong {
  color: white;
}

/* Focus states for accessibility */
.btn-hero-primary:focus,
.btn-hero-secondary:focus {
  outline: 3px solid rgba(13, 24, 33, 0.5);
  outline-offset: 3px;
}

/* Print styles */
@media print {
  .fundamentals-hero::before,
  .fundamentals-section-dark::before,
  .fundamentals-principle::before,
  .fundamentals-step::before {
    display: none;
  }
}

/* ============================================================
   Utilities
   ============================================================ */
.hidden {
  display: none !important;
}
