:root {
    --verde: #09572A;
    --verde-claro: #0d7a3a;
    --verde-oscuro: #063d1e;
    --verde-muy-claro: #e8f5ee;
    --amarillo: #FECF27;
    --amarillo-oscuro: #d4a800;
    --blanco: #ffffff;
    --gris-claro: #f4f4f0;
    --gris-medio: #888;
    --negro: #0a0a0a;
    --texto: #1a1a1a;
    --font-display: 'Syne', sans-serif;
    --font-body: 'DM Sans', sans-serif;
  }

  *, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
  html { scroll-behavior: smooth; }
  body { font-family: var(--font-body); color: var(--texto); background: var(--blanco); line-height: 1.6; overflow-x: hidden; }

  /* NAV */
  nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
    background: rgba(9,87,42,0.97); backdrop-filter: blur(10px);
    padding: 0 5%; display: flex; align-items: center;
    justify-content: space-between; height: 68px;
    border-bottom: 1px solid rgba(254,207,39,0.25);
  }
  .nav-logo { display: flex; align-items: center; text-decoration: none; }
  .nav-logo img { height: 44px; width: auto; display: block; }
  .nav-links { display: flex; gap: 2rem; list-style: none; align-items: center; }
  .nav-links a { color: rgba(255,255,255,0.85); text-decoration: none; font-size: 0.875rem; font-weight: 500; letter-spacing: 0.01em; transition: color 0.2s; }
  .nav-links a:hover { color: var(--amarillo); }
  .nav-cta { background: var(--amarillo) !important; color: var(--verde) !important; padding: 0.5rem 1.25rem; border-radius: 4px; font-weight: 600 !important; transition: background 0.2s !important; }
  .nav-cta:hover { background: #ffe066 !important; }
  .nav-reserva { background: transparent !important; color: var(--amarillo) !important; padding: 0.5rem 1.25rem; border-radius: 4px; font-weight: 600 !important; border: 1.5px solid var(--amarillo) !important; transition: background 0.2s, color 0.2s !important; }
  .nav-reserva:hover { background: var(--amarillo) !important; color: var(--verde) !important; }

  /* HAMBURGUESA MÓVIL */
  .nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 0;
  }
  .nav-toggle span {
    display: block;
    height: 2px;
    width: 100%;
    background: var(--amarillo);
    border-radius: 2px;
    transition: all 0.3s;
  }
  @media (max-width: 640px) {
    .nav-toggle { display: flex; }
  }

  /* HERO */
  #inicio {
    min-height: 100vh; background: var(--verde);
    display: grid; grid-template-columns: 1fr 1fr;
    align-items: center; padding: 100px 5% 60px;
    position: relative; overflow: hidden;
  }
  #inicio::before {
    content: ''; position: absolute; top: -20%; right: -10%;
    width: 70vw; height: 70vw; border-radius: 50%;
    background: rgba(254,207,39,0.06); pointer-events: none;
  }
  #inicio::after {
    content: ''; position: absolute; bottom: -30%; left: -5%;
    width: 50vw; height: 50vw; border-radius: 50%;
    background: rgba(254,207,39,0.04); pointer-events: none;
  }
  .hero-content { position: relative; z-index: 1; }
  .hero-badge {
    display: inline-block; background: rgba(254,207,39,0.15);
    border: 1px solid rgba(254,207,39,0.4); color: var(--amarillo);
    font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em;
    text-transform: uppercase; padding: 0.4rem 0.9rem;
    border-radius: 2px; margin-bottom: 1.5rem;
  }
  .hero-title {
    font-family: var(--font-display); font-size: clamp(2rem,3.8vw,3.4rem);
    font-weight: 800; color: var(--blanco); line-height: 1.15;
    letter-spacing: -0.03em; margin-bottom: 1.5rem;
  }
  .hero-title em { color: var(--amarillo); font-style: normal; }
  .hero-sub { font-size: 1.125rem; color: rgba(255,255,255,0.75); max-width: 520px; margin-bottom: 2.5rem; font-weight: 300; line-height: 1.7; }
  .hero-btns { display: flex; gap: 1rem; flex-wrap: wrap; }
  .btn-primary { background: var(--amarillo); color: var(--verde-oscuro); padding: 0.875rem 2rem; border-radius: 4px; font-weight: 600; font-size: 0.95rem; text-decoration: none; transition: transform 0.2s, background 0.2s; letter-spacing: 0.01em; }
  .btn-primary:hover { background: #ffe066; transform: translateY(-2px); }
  .btn-outline { background: transparent; color: var(--blanco); padding: 0.875rem 2rem; border-radius: 4px; border: 1.5px solid rgba(255,255,255,0.4); font-weight: 500; font-size: 0.95rem; text-decoration: none; transition: border-color 0.2s, background 0.2s; }
  .btn-outline:hover { border-color: var(--amarillo); background: rgba(254,207,39,0.08); }
  .hero-visual { position: relative; z-index: 1; display: flex; justify-content: flex-end; align-items: center; }
  .hero-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 440px; width: 100%; }
  .hero-card { background: rgba(255,255,255,0.07); border: 1px solid rgba(254,207,39,0.2); border-radius: 8px; padding: 1.25rem; transition: background 0.3s,border-color 0.3s; cursor: default; }
  .hero-card:hover { background: rgba(254,207,39,0.1); border-color: rgba(254,207,39,0.5); }
  .hero-card:first-child { grid-column: span 2; }
  .hero-card-icon { font-size: 1.5rem; margin-bottom: 0.6rem; display: block; }
  .hero-card-title { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--amarillo); margin-bottom: 0.3rem; letter-spacing: 0.01em; }
  .hero-card-text { font-size: 0.8rem; color: rgba(255,255,255,0.6); line-height: 1.5; }

  /* STATS */
  .stats-bar { background: var(--amarillo); padding: 2.5rem 5%; display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; text-align: center; }
  .stat-num { font-family: var(--font-display); font-size: 2.5rem; font-weight: 800; color: var(--verde-oscuro); line-height: 1; letter-spacing: -0.04em; }
  .stat-label { font-size: 0.8rem; color: var(--verde); font-weight: 500; margin-top: 0.25rem; text-transform: uppercase; letter-spacing: 0.06em; }

  /* SECCIONES */
  section { padding: 6rem 5%; }
  .section-tag { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--verde); margin-bottom: 0.75rem; display: block; }
  .section-title { font-family: var(--font-display); font-size: clamp(2rem,3.5vw,3rem); font-weight: 800; color: var(--negro); line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 1rem; }
  .section-title em { color: var(--verde); font-style: normal; }
  .section-sub { font-size: 1.05rem; color: var(--gris-medio); max-width: 600px; line-height: 1.7; font-weight: 300; }

  /* SERVICIOS */
  #servicios { background: var(--gris-claro); }
  .servicios-header { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: end; margin-bottom: 4rem; }
  .servicios-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; }
  .servicio-card { background: var(--blanco); border-radius: 8px; padding: 2rem; border: 1px solid #e8e8e2; position: relative; overflow: hidden; transition: transform 0.25s,box-shadow 0.25s,border-color 0.25s; text-decoration: none; color: inherit; display: block; }
  .servicio-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(9,87,42,0.12); border-color: var(--verde); }
  .servicio-card::before { content: ''; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--amarillo); transform: scaleX(0); transform-origin: left; transition: transform 0.3s; }
  .servicio-card:hover::before { transform: scaleX(1); }
  .servicio-icon { width: 48px; height: 48px; background: var(--verde-muy-claro); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1.25rem; }
  .servicio-title { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; color: var(--negro); margin-bottom: 0.6rem; letter-spacing: -0.01em; }
  .servicio-desc { font-size: 0.875rem; color: var(--gris-medio); line-height: 1.65; }
  .servicio-link { display: inline-flex; align-items: center; gap: 0.4rem; margin-top: 1.25rem; font-size: 0.8rem; font-weight: 600; color: var(--verde); letter-spacing: 0.02em; }

  /* SECTORES */
  #sectores { background: var(--blanco); }
  .sectores-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-top: 3rem; }
  .sector-item { background: var(--verde-muy-claro); border-radius: 8px; padding: 1.75rem 1.25rem; text-align: center; border: 1px solid transparent; transition: border-color 0.2s,background 0.2s; cursor: default; }
  .sector-item:hover { border-color: var(--verde); background: rgba(9,87,42,0.08); }
  .sector-emoji { font-size: 2rem; display: block; margin-bottom: 0.75rem; }
  .sector-name { font-family: var(--font-display); font-weight: 700; font-size: 0.9rem; color: var(--verde-oscuro); letter-spacing: 0.01em; }
  .sector-desc { font-size: 0.78rem; color: var(--verde); margin-top: 0.3rem; line-height: 1.5; }

  /* CTA */
  #cta-central { background: var(--verde); text-align: center; padding: 7rem 5%; position: relative; overflow: hidden; }
  #cta-central::before { content: ''; position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); width: 80vw; height: 80vw; border-radius: 50%; background: rgba(254,207,39,0.05); pointer-events: none; }
  #cta-central .section-title { color: var(--blanco); max-width: 700px; margin: 0 auto 1rem; }
  #cta-central .section-title em { color: var(--amarillo); }
  #cta-central .section-sub { color: rgba(255,255,255,0.7); margin: 0 auto 2.5rem; }

  /* PROYECTOS */
  #proyectos { background: var(--gris-claro); }
  .proyectos-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 1.5rem; margin-top: 3rem; }
  .proyecto-card { background: var(--blanco); border-radius: 10px; border: 1px solid #e8e8e2; overflow: hidden; transition: transform 0.25s,box-shadow 0.25s; text-decoration: none; color: inherit; display: block; }
  .proyecto-card:hover { transform: translateY(-3px); box-shadow: 0 12px 32px rgba(9,87,42,0.1); }
  .proyecto-header { background: var(--verde-oscuro); padding: 1.5rem 2rem; display: flex; align-items: center; gap: 1rem; }
  .proyecto-icon-box { width: 52px; height: 52px; flex-shrink: 0; background: rgba(254,207,39,0.15); border: 1px solid rgba(254,207,39,0.35); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
  .proyecto-nombre { font-family: var(--font-display); font-weight: 800; font-size: 1.4rem; color: var(--amarillo); letter-spacing: -0.02em; }
  .proyecto-subtitulo { font-size: 0.78rem; color: rgba(255,255,255,0.55); margin-top: 0.2rem; letter-spacing: 0.01em; }
  .proyecto-body { padding: 1.5rem 2rem 2rem; }
  .proyecto-desc { font-size: 0.875rem; color: var(--gris-medio); line-height: 1.7; margin-bottom: 1.25rem; }
  .proyecto-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; }
  .proyecto-tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--verde); background: var(--verde-muy-claro); padding: 0.2rem 0.6rem; border-radius: 3px; }

  /* METODOLOGÍA */
  #metodologia { background: var(--blanco); }
  .proceso-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem; margin-top: 4rem; position: relative; }
  .proceso-steps::before { content: ''; position: absolute; top: 28px; left: 12.5%; right: 12.5%; height: 2px; background: linear-gradient(90deg,var(--amarillo),var(--verde)); z-index: 0; }
  .paso { text-align: center; position: relative; z-index: 1; }
  .paso-num { width: 56px; height: 56px; border-radius: 50%; background: var(--verde); color: var(--amarillo); font-family: var(--font-display); font-weight: 800; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; margin: 0 auto 1.25rem; border: 3px solid var(--amarillo); }
  .paso-title { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--negro); margin-bottom: 0.5rem; }
  .paso-desc { font-size: 0.82rem; color: var(--gris-medio); line-height: 1.6; }

  /* EMPRESA */
  #empresa { background: var(--verde-oscuro); display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
  #empresa .section-title { color: var(--blanco); }
  #empresa .section-title em { color: var(--amarillo); }
  #empresa .section-sub { color: rgba(255,255,255,0.65); }
  #empresa .section-tag { color: var(--amarillo); }
  .valores-lista { list-style: none; margin-top: 2rem; display: flex; flex-direction: column; gap: 1rem; }
  .valor-item { display: flex; align-items: flex-start; gap: 1rem; background: rgba(255,255,255,0.06); border-radius: 8px; padding: 1rem 1.25rem; border-left: 3px solid var(--amarillo); }
  .valor-icon { font-size: 1.3rem; flex-shrink: 0; margin-top: 2px; }
  .valor-texto { font-size: 0.9rem; color: rgba(255,255,255,0.75); line-height: 1.6; }
  .valor-texto strong { display: block; color: var(--blanco); font-family: var(--font-display); font-size: 0.95rem; font-weight: 700; margin-bottom: 0.15rem; }
  .empresa-img-placeholder { background: rgba(254,207,39,0.1); border: 1px solid rgba(254,207,39,0.25); border-radius: 12px; aspect-ratio: 4/3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem; }
  .empresa-img-placeholder .big-icon { font-size: 5rem; opacity: 0.6; }
  .empresa-img-placeholder p { font-size: 0.85rem; color: rgba(255,255,255,0.4); text-align: center; }

  /* CONTACTO */
  #contacto { background: var(--gris-claro); }
  .contacto-grid { display: grid; grid-template-columns: 1fr 1.4fr; gap: 5rem; align-items: start; margin-top: 3rem; }
  .contacto-info h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--negro); margin-bottom: 1.5rem; }
  .contacto-dato { display: flex; align-items: flex-start; gap: 1rem; margin-bottom: 1.25rem; }
  .contacto-dato-icon { width: 40px; height: 40px; background: var(--verde); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
  .contacto-dato-text { font-size: 0.875rem; color: var(--gris-medio); line-height: 1.6; }
  .contacto-dato-text strong { display: block; color: var(--negro); font-weight: 600; margin-bottom: 0.1rem; }
  .form-card { background: var(--blanco); border-radius: 10px; padding: 2.5rem; border: 1px solid #e8e8e2; }
  .form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1rem; }
  .form-group { display: flex; flex-direction: column; gap: 0.4rem; margin-bottom: 1rem; }
  label { font-size: 0.8rem; font-weight: 600; color: var(--negro); letter-spacing: 0.02em; }
  input,textarea,select { width: 100%; padding: 0.75rem 1rem; border: 1.5px solid #ddd; border-radius: 5px; font-family: var(--font-body); font-size: 0.9rem; color: var(--negro); background: #fff; transition: border-color 0.2s; outline: none; }
  input:focus,textarea:focus,select:focus { border-color: var(--verde); }
  textarea { resize: vertical; min-height: 120px; }
  .form-btn { width: 100%; padding: 0.95rem; background: var(--verde); color: var(--blanco); border: none; border-radius: 5px; font-family: var(--font-body); font-size: 1rem; font-weight: 600; cursor: pointer; transition: background 0.2s,transform 0.2s; letter-spacing: 0.01em; }
  .form-btn:hover { background: var(--verde-claro); transform: translateY(-1px); }

  /* FOOTER */
  footer { background: var(--negro); color: rgba(255,255,255,0.7); padding: 4rem 5% 2rem; }
  .footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 3rem; margin-bottom: 3rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,0.1); }
  .footer-logo { display: block; margin-bottom: 1rem; }
  .footer-logo img { height: 44px; width: auto; }
  .footer-desc { font-size: 0.85rem; line-height: 1.7; max-width: 280px; }
  .footer-col h4 { font-family: var(--font-display); font-weight: 700; font-size: 0.875rem; color: var(--blanco); letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 1.25rem; }
  .footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
  .footer-links a { color: rgba(255,255,255,0.55); text-decoration: none; font-size: 0.875rem; transition: color 0.2s; }
  .footer-links a:hover { color: var(--amarillo); }
  .footer-bottom { display: flex; justify-content: space-between; align-items: center; font-size: 0.8rem; }
  .footer-legal { display: flex; gap: 2rem; }
  .footer-legal a { color: rgba(255,255,255,0.4); text-decoration: none; transition: color 0.2s; }
  .footer-legal a:hover { color: var(--amarillo); }

  /* ANIMACIONES */
  @keyframes fadeUp { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
  .hero-badge { animation: fadeUp 0.6s ease both; }
  .hero-title { animation: fadeUp 0.6s 0.1s ease both; }
  .hero-sub { animation: fadeUp 0.6s 0.2s ease both; }
  .hero-btns { animation: fadeUp 0.6s 0.3s ease both; }
  .hero-visual { animation: fadeUp 0.6s 0.4s ease both; }

  /* RESPONSIVE */
  @media (max-width: 1024px) {
    #inicio { grid-template-columns: 1fr; padding-top: 120px; }
    .hero-visual { display: none; }
    .servicios-grid { grid-template-columns: repeat(2,1fr); }
    .sectores-grid { grid-template-columns: repeat(2,1fr); }
    .proceso-steps { grid-template-columns: repeat(2,1fr); }
    .proceso-steps::before { display: none; }
    .proyectos-grid { grid-template-columns: 1fr; }
    #empresa { grid-template-columns: 1fr; }
    .contacto-grid { grid-template-columns: 1fr; gap: 2rem; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
    .servicios-header { grid-template-columns: 1fr; }
  }
  @media (max-width: 640px) {
    nav { padding: 0 4%; }
    .nav-links {
      display: none;
      flex-direction: column;
      position: fixed;
      top: 68px; left: 0; right: 0;
      background: rgba(9,87,42,0.99);
      padding: 1.5rem 5%;
      gap: 1rem;
      z-index: 999;
      border-bottom: 1px solid rgba(254,207,39,0.25);
    }
    .nav-links.open { display: flex; }
    .nav-toggle { display: flex; }
    section { padding: 4rem 4%; }
    #inicio { padding: 90px 4% 4rem; }
    .servicios-grid { grid-template-columns: 1fr; }
    .sectores-grid { grid-template-columns: repeat(2,1fr); }
    .proceso-steps { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .footer-bottom { flex-direction: column; gap: 1rem; }
    .stats-bar { grid-template-columns: repeat(2,1fr); }
  }
  /* Beneficios dentro de tarjeta de servicio */
  .servicio-beneficios { list-style: none; display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.25rem; }
  .servicio-beneficios li { font-size: 0.8rem; color: var(--verde); font-weight: 500; display: flex; align-items: center; gap: 0.4rem; }
  .servicio-beneficios li::before { content: '→'; color: var(--amarillo-oscuro); font-weight: 700; flex-shrink: 0; }

/* ============================================================
   AÑADIDOS v2: formulario, reserva y páginas interiores
   ============================================================ */

/* Evita que la barra fija tape el título al saltar a un ancla */
section[id], .detalle[id] { scroll-margin-top: 84px; }

/* Formulario: campo trampa anti-spam y casilla de privacidad */
.hp-field { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-privacidad { display: flex; align-items: flex-start; gap: 0.6rem; font-size: 0.8rem; font-weight: 400; color: var(--gris-medio); margin: 0.25rem 0 1.25rem; line-height: 1.5; cursor: pointer; }
.form-privacidad input { width: auto; margin-top: 0.2rem; accent-color: var(--verde); }
.form-btn:disabled { opacity: 0.7; cursor: wait; transform: none; }
#formMsg a { color: inherit; }
.btn-reserva-contacto { display: inline-flex; align-items: center; gap: 0.5rem; margin-top: 0.75rem; background: var(--verde); color: var(--amarillo); padding: 0.75rem 1.4rem; border-radius: 5px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background 0.2s; }
.btn-reserva-contacto:hover { background: var(--verde-claro); }

/* Enlace activo en el menú */
.nav-links a.activo { color: var(--amarillo); }

/* ── Cabecera de páginas interiores ── */
.page-hero { background: var(--verde); padding: 130px 5% 4rem; position: relative; overflow: hidden; }
.page-hero::before { content: ''; position: absolute; top: -40%; right: -15%; width: 60vw; height: 60vw; border-radius: 50%; background: rgba(254,207,39,0.06); pointer-events: none; }
.page-hero > * { position: relative; z-index: 1; }
.migas { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-bottom: 1.25rem; }
.migas a { color: rgba(255,255,255,0.75); text-decoration: none; }
.migas a:hover { color: var(--amarillo); }
.page-hero h1 { font-family: var(--font-display); font-weight: 800; color: var(--blanco); font-size: clamp(2rem,4vw,3.2rem); line-height: 1.1; letter-spacing: -0.03em; max-width: 820px; margin-bottom: 1rem; }
.page-hero h1 em { color: var(--amarillo); font-style: normal; }
.page-hero p { color: rgba(255,255,255,0.75); font-size: 1.1rem; font-weight: 300; max-width: 640px; line-height: 1.7; }

/* ── Sub-menú de secciones (pastillas) ── */
.subnav { position: sticky; top: 68px; z-index: 900; background: var(--blanco); border-bottom: 1px solid #e8e8e2; padding: 0.85rem 5%; display: flex; gap: 0.6rem; overflow-x: auto; scrollbar-width: none; }
.subnav::-webkit-scrollbar { display: none; }
.subnav a { flex-shrink: 0; text-decoration: none; font-size: 0.82rem; font-weight: 600; color: var(--verde-oscuro); background: var(--verde-muy-claro); padding: 0.5rem 1rem; border-radius: 999px; border: 1px solid transparent; transition: border-color 0.2s, background 0.2s; }
.subnav a:hover { border-color: var(--verde); }
.subnav a.activo { background: var(--verde); color: var(--amarillo); }
.detalle[id] { scroll-margin-top: 140px; }

/* ── Bloque de detalle (una solución / un proyecto) ── */
.detalle { padding: 5.5rem 5%; }
.detalle:nth-of-type(even) { background: var(--gris-claro); }
.detalle-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 4rem; align-items: start; }
.detalle-cab { position: sticky; top: 150px; }
.detalle-icono { width: 64px; height: 64px; border-radius: 12px; background: var(--verde); border: 2px solid var(--amarillo); display: flex; align-items: center; justify-content: center; font-size: 1.9rem; margin-bottom: 1.25rem; }
.detalle h2 { font-family: var(--font-display); font-size: clamp(1.7rem,3vw,2.4rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: var(--negro); margin-bottom: 0.4rem; }
.detalle .subtitulo { font-family: var(--font-display); font-weight: 600; color: var(--verde); font-size: 1rem; margin-bottom: 1.1rem; }
.detalle .intro { color: #555; font-size: 1rem; line-height: 1.75; margin-bottom: 1.5rem; }
.detalle .tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 1.75rem; }
.detalle .tag { font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--verde); background: var(--verde-muy-claro); padding: 0.25rem 0.65rem; border-radius: 3px; }
.detalle:nth-of-type(even) .tag { background: var(--blanco); }
.detalle-ctas { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.btn-verde { background: var(--verde); color: var(--blanco); padding: 0.8rem 1.5rem; border-radius: 5px; font-weight: 600; font-size: 0.9rem; text-decoration: none; transition: background 0.2s, transform 0.2s; }
.btn-verde:hover { background: var(--verde-claro); transform: translateY(-1px); }
.btn-borde { color: var(--verde); padding: 0.8rem 1.5rem; border-radius: 5px; font-weight: 600; font-size: 0.9rem; text-decoration: none; border: 1.5px solid var(--verde); transition: background 0.2s; }
.btn-borde:hover { background: var(--verde-muy-claro); }

.bloques { display: flex; flex-direction: column; gap: 1.25rem; }
.bloque { background: var(--blanco); border: 1px solid #e8e8e2; border-radius: 10px; padding: 1.6rem 1.75rem; }
.detalle:nth-of-type(odd) .bloque { background: var(--gris-claro); border-color: transparent; }
.bloque h3 { font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--negro); margin-bottom: 0.9rem; display: flex; align-items: center; gap: 0.6rem; }
.bloque h3 span { color: var(--amarillo-oscuro); }
.bloque p { font-size: 0.9rem; color: #555; line-height: 1.7; }
.lista { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }
.lista li { font-size: 0.9rem; color: #444; line-height: 1.6; padding-left: 1.4rem; position: relative; }
.lista li::before { content: '→'; position: absolute; left: 0; color: var(--verde); font-weight: 700; }
.pasos { list-style: none; counter-reset: paso; display: flex; flex-direction: column; gap: 0.8rem; }
.pasos li { counter-increment: paso; display: grid; grid-template-columns: 30px 1fr; gap: 0.75rem; font-size: 0.9rem; color: #444; line-height: 1.6; }
.pasos li::before { content: counter(paso); width: 28px; height: 28px; border-radius: 50%; background: var(--verde); color: var(--amarillo); font-family: var(--font-display); font-weight: 800; font-size: 0.8rem; display: flex; align-items: center; justify-content: center; }
.pasos strong { color: var(--negro); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px,1fr)); gap: 0.75rem; }
.kpi { background: var(--verde-muy-claro); border-radius: 8px; padding: 0.9rem 1rem; }
.detalle:nth-of-type(odd) .kpi { background: var(--blanco); }
.kpi strong { display: block; font-family: var(--font-display); font-size: 0.9rem; color: var(--verde-oscuro); margin-bottom: 0.15rem; }
.kpi span { font-size: 0.78rem; color: var(--gris-medio); line-height: 1.4; display: block; }

/* CTA final de páginas interiores */
.cta-final { background: var(--verde-oscuro); text-align: center; padding: 5rem 5%; }
.cta-final h2 { font-family: var(--font-display); font-weight: 800; color: var(--blanco); font-size: clamp(1.7rem,3vw,2.4rem); letter-spacing: -0.03em; margin-bottom: 0.75rem; }
.cta-final h2 em { color: var(--amarillo); font-style: normal; }
.cta-final p { color: rgba(255,255,255,0.7); max-width: 560px; margin: 0 auto 2rem; }
.cta-final .hero-btns { justify-content: center; }

@media (max-width: 1024px) {
  .detalle-grid { grid-template-columns: 1fr; gap: 2rem; }
  .detalle-cab { position: static; }
}
@media (max-width: 640px) {
  .page-hero { padding: 100px 4% 3rem; }
  .subnav { padding: 0.75rem 4%; }
  .detalle { padding: 3.5rem 4%; }
  .bloque { padding: 1.25rem; }
}
