:root {
  /* Paleta ejecutiva (luxury tech) */
  --charcoal: #111419;
  --jade: #0e6b4f;
  --gold: #fc0172;
  --gold-deep: #1f8e8c;

  --bone: #11e2d4;
  --sand: #5caaa2;
  --muted: #418c8f;

  /* Derivados que usabas sin definir */
  --bone-50: rgba(241, 252, 251, .9);
  --jade-700: #0a503b;
  --turquoise: #20e0d8;

  /* Fondos */
  --bg-body:
    radial-gradient(1200px 800px at 70% 10%, rgba(173,216,230,.35), transparent 55%),
    linear-gradient(180deg, #233445 0%, #1c2c3a 40%, #182833 100%);
  --bg-hero:
    linear-gradient(180deg, rgba(25,35,45,.05), rgba(20,30,40,.45)),
    radial-gradient(600px 380px at 50% 30%, rgba(173,216,230,.35), transparent 70%);
  --bg-paper: linear-gradient(180deg, #f9fdfd, #e6f3f3);

  /* Tipografía */
  --ff-sans: Inter, system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", Arial;
  --ff-serif: Cinzel, serif;

  /* Tamaños responsivos base */
  --space-1: .25rem;
  --space-2: .5rem;
  --space-3: .75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --radius: 14px;
}

/* ===== Reset mínimo ===== */
* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  color: var(--bone);
  background: #0f141b;
  font-family: var(--ff-sans);
  line-height: 1.6;
  position: relative;
}

/* ===== Cielo y overlay ===== */
.site-sky { position: fixed; inset: 0; width: 100%; height: 100%; display: block; z-index: -2; }
.site-sky__overlay { position: fixed; inset: 0; pointer-events: none; z-index: -1; background: var(--bg-body); }

/* ===== Titulares ===== */
h1, h2, h3, h4 { font-family: var(--ff-serif); letter-spacing: .5px; margin: 0 0 .5rem; }

/* ===== Contenedor ===== */
.container { width: min(1140px, 92%); margin-inline: auto; }


/* ===================== NAV LAYOUT PRO (Desktop) ===================== */
/* Aplica el grid 3 columnas solo en escritorio */
@media (min-width: 769px){
  .nav__inner{
    display: grid;
    grid-template-columns: auto 1fr auto; /* brand | links | CTA/hamb */
    align-items: center;
    gap: 1rem;
    padding: .6rem 0;
  }

  /* Links centrados con indicador pirámide */
  .links{
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1.2rem;
    --ind-x: 50%;
    --ind-w: 20px;
    --ind-y: 8px;
  }
  .links a{
    position: relative;
    display: inline-block;
    padding: .35rem .2rem .55rem;   /* espacio para la pirámide */
    color: var(--bone-50);
    text-decoration: none;
    font-weight: 600;
    opacity: .95;
    transition: opacity .18s ease, color .18s ease;
  }
  .links a:hover{ opacity:1; }

  /* Indicador “pirámide azteca” */
  .links::after{
    content:"";
    position:absolute; left:0; right:0;
    bottom: calc(-1 * var(--ind-y));
    width: var(--ind-w); height: 14px;
    margin-left: calc(var(--ind-x) - (var(--ind-w)/2));
    background: var(--gold);
    filter: drop-shadow(0 2px 4px rgba(0,0,0,.18));
    transform: translateY(6px) scale(.82);
    opacity: 0;
    transition: margin-left .22s ease, transform .22s ease, opacity .18s ease, background .18s ease;
    -webkit-mask: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'>\
      <path d='M28 6 L36 6 L56 44 L8 44 Z M24 14 L40 14 L50 32 L14 32 Z M20 22 L44 22 L46 26 L18 26 Z'/>\
    </svg>") center/contain no-repeat;
            mask: url("data:image/svg+xml;utf8,\
    <svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 48'>\
      <path d='M28 6 L36 6 L56 44 L8 44 Z M24 14 L40 14 L50 32 L14 32 Z M20 22 L44 22 L46 26 L18 26 Z'/>\
    </svg>") center/contain no-repeat;
  }
  .links:hover::after{ transform: translateY(0) scale(1); opacity: 1; }
  .links a:focus-visible{ outline: none; }
  .links:has(a:focus-visible)::after{ transform: translateY(0) scale(1.05); opacity:1; }

  /* El botón hamburguesa NO se muestra en escritorio */
  .nav__toggle{ display: none; }
}

/* ===================== MARCA (común) ===================== */
.brand{
  display:flex; align-items:center; gap:.6rem;
  text-decoration:none; color:#fff; font-weight:800;
}
.brand .hero__logo{
  width:40px; height:40px; object-fit:contain;
  border-radius:50%; background:#fff;
}
.brand span{
  font-size:1.02rem; font-weight:800; color:#fff;
  text-shadow:0 2px 6px rgba(0,0,0,.25);
}

/* ===================== TOGGLE (común) ===================== */
.nav__toggle{
  inline-size: 46px; block-size: 46px;
  padding: 0;
  border: 2px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: transparent;
  color: var(--bone-50);
  cursor: pointer;
  place-content: center;
  line-height: 0;
  overflow: visible;
  transition: border-color .2s ease, background .2s ease;
}
.nav__toggle:focus-visible{ outline: 3px solid var(--turquoise); outline-offset: 3px; }
.nav__toggle:hover{ border-color: rgba(255,255,255,.25); background: rgba(255,255,255,.04); }

.nav__toggle .bar{
  display:block;
  width: 22px;   /* compacto para que la X no se salga */
  height: 2px;
  margin: 6px auto;
  background: var(--bone-50);
  border-radius: 2px;
  transition: transform .25s ease, opacity .18s ease;
  transform-origin: center;
}
/* Animación a X */
.nav.is-open .nav__toggle .bar:nth-child(1){ transform: translateY(8px) rotate(45deg); }
.nav.is-open .nav__toggle .bar:nth-child(2){ opacity: 0; }
.nav.is-open .nav__toggle .bar:nth-child(3){ transform: translateY(-8px) rotate(-45deg); }

/* ===================== MOBILE (≤768px): lista tipo select ===================== */
@media (max-width: 768px){
  .nav__inner{
    display: grid;
    grid-template-columns: auto auto;   /* brand | toggle */
    grid-template-rows: auto auto;      /* fila 2: links */
    align-items: start;
    gap: .6rem;
    padding: .6rem 0;
  }

  .nav__toggle{ display:grid; justify-self:end; }

  /* Reset de desktop y barra vertical “tipo select” */
  .nav .links{
    grid-column: 1 / -1;
    position: static;              /* anulamos indicador desktop */
    display: flex;
    flex-direction: column;
    align-items: stretch;
    flex-wrap: nowrap;             /* sin wrap horizontal */
    gap: .5rem;
    width: 100%;
    margin: 0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(-6px);
    transition:
      max-height .30s ease,
      padding .22s ease,
      opacity .18s ease,
      visibility 0s linear .30s,
      transform .18s ease;
    background: transparent;
    border: 0;
    border-radius: 12px;
  }
  .nav .links::after{ display:none; } /* sin pirámide en móvil */

  /* Abierto: bloque con aire para que no se corte “Contactar” */
  .nav.is-open .links{
    max-height: 720px;                 /* alto suficiente */
    padding: .6rem;                     /* aire interior */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0);
    background: linear-gradient(180deg, rgba(12,18,24,.88), rgba(12,18,24,.55));
    border: 1px solid rgba(255,255,255,.06);
    border-radius: 12px;
  }

  /* Ítems “option” (select-like) */
  .nav .links a{
    display: flex;
    align-items: center;
    justify-content: space-between;     /* texto izquierda, chevron derecha */
    width: 100%;
    box-sizing: border-box;
    text-align: left;
    padding: .9rem 1rem;
    color: var(--bone-50);
    text-decoration: none;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.10);
    border-radius: 10px;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
  }
  .nav .links a + a{ margin-top: .35rem; }

  /* Flechita tipo select (chevron) */
  .nav .links a::after{
    content: "";
    width: 18px; height: 18px; flex: 0 0 18px;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 18px;
    opacity: .7;
    transition: transform .18s ease, opacity .18s ease;
    background-image: url("data:image/svg+xml,%3Csvg fill='%23d4af37' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E");
  }

  .nav .links a:hover{
    background: rgba(255,255,255,.10);
    border-color: rgba(255,255,255,.18);
    color: var(--gold);
  }
  .nav .links a:hover::after{
    opacity: 1;
    transform: translateX(2px);
  }
}




/* ===== HERO (video/GIF sin recorte) ===== */
.hero{
  position: relative;
  min-height: 78vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: #0f141b;
}
.hero__video,
.hero__gif{ position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__gif > video,
.hero__video > video{
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  background: #0f141b;
  filter: brightness(1.02) contrast(1.03) saturate(1.04);
}
.hero__overlay{
  position:absolute; inset:0; pointer-events:none;
  background:
    linear-gradient(180deg, rgba(12,18,24,.15) 0%, rgba(12,18,24,.28) 50%, rgba(12,18,24,.12) 100%),
    radial-gradient(900px 520px at 50% 38%, rgba(17,226,212,.08), transparent 70%);
}

.hero h1 {
  font-size: clamp(1.8rem, 3vw + 1rem, 3rem);
  color:#fff;
  line-height:1.1;
  text-shadow: 0 2px 10px rgba(0,0,0,.55);
  -webkit-text-stroke:.4px rgba(0,0,0,.35);
}

.hero__content {
  position: relative;
  text-align: center;
  padding: 1rem 0 3rem;  /* menos espacio arriba */
}

.hero__logo {
  width: clamp(84px, 12vw, 120px);
  display: block;
  margin: 0 0 5px 60px;   /* pegado a la izquierda, menos espacio arriba */
  background: #fff;
  border: 3px solid var(--gold);
  border-radius: 50%;
  padding: 5px;
  box-shadow: 0 6px 28px #1f5a7a;
}


/* Backplates */
.backplate{ display:inline-block; padding:.25rem .6rem; border-radius:12px;
  background: linear-gradient(180deg, rgba(8,12,16,.40), rgba(8,12,16,.32));
  box-shadow: 0 8px 24px rgba(0,0,0,.28);
  backdrop-filter: blur(1.5px) saturate(1.03);
}
.backplate--xl{ padding:.45rem .9rem; border-radius:14px; }
.backplate--pill{ border-radius:999px; }

/* Rotador y slogan */
.hero__rotator{ display:block; font-size: 1rem; margin: .6rem auto .4rem; text-align:center; color: var(--bone); text-shadow:0 2px 6px rgba(0,0,0,.5); }
.hero__slogan { display:block; font-size: 1.05rem; font-weight:700; margin:.4rem auto .8rem; text-align:center; color: var(--gold); text-shadow:0 2px 8px rgba(0,0,0,.6); }

/* Botón del hero */
.hero .btn { display:inline-block; font-size:.95rem; padding:.6rem 1rem; margin:0 auto; }

/* ===== Secciones ===== */
.section { padding: 4rem 0; }
.section--paper { background: var(--bg-paper); color:#2a2a2a; }
.section__title { font-size: clamp(1.4rem, 1rem + 1.6vw, 2rem); margin-bottom: 1.5rem; color: var(--gold); }


/* Patrón geométrico sutil */
.section--pattern{
  background:
    url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><g fill='%23d4b36a' fill-opacity='.06'><path d='M80 8 L92 20 L80 32 L68 20 Z'/><rect x='20' y='20' width='10' height='10' rx='1'/><path d='M120 120 h12 v12 h-12 z'/></g></svg>") repeat;
}

/* Videos */
.videos { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: start; }
.video-card{ background:#101010; border:1px solid #1f1f1f; border-radius: var(--radius); padding:1rem; }
.video-card video{ width:100%; border-radius:10px; }

/* CTA */
.cta{ padding:4rem 0; text-align:center; background: linear-gradient(180deg, rgba(212,179,106,.12), rgba(12,18,24,.9)); color:#fff; }

/* Botones */
.btn{
  display:inline-block;
  border-radius:999px;
  padding:.7rem 1rem;
  text-decoration:none;
  border:1px solid #1f5a7a;
}
.btn--gold{
  background: var(--gold);
  color: beige;
  font-weight: 800;
  border: 2px solid var(--turquoise);
  box-shadow: 0 6px 16px rgba(31,90,122,.35);
  transition: all .2s ease-in-out;
}
.btn--gold:hover{
  background:#e0b84e;
  color:#111;
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 8px 20px rgba(31,90,122,.45);
}
.btn--lg{ padding:1rem 1.4rem; font-size:1.05rem; }

/* ===== Dark Boost (cards sobre fondo oscuro) ===== */
.dark-boost { position: relative; isolation: isolate; }
.dark-boost::before{
  content:""; position:absolute; inset:0; z-index:0; pointer-events:none;
  background:
    radial-gradient(900px 480px at 18% 8%, rgba(148,29,82,.20), transparent 60%),
    radial-gradient(900px 520px at 86% 74%, rgba(31,142,140,.18), transparent 62%);
  mix-blend-mode: screen; opacity:.9;
}
.dark-boost .svc{
  position: relative; z-index:1;
  background:
    linear-gradient(180deg, rgba(29,41,52,.92), rgba(14,22,28,.90)),
    radial-gradient(600px 300px at 120% -10%, rgba(31,142,140,.16), transparent 60%);
  border: 1px solid rgba(255,255,255,.16);
  box-shadow: 0 14px 44px rgba(0,0,0,.5), 0 0 0 1px rgba(32,224,216,.10) inset;
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.dark-boost .svc:hover{
  transform: translateY(-6px);
  border-color: rgba(32,224,216,.28);
  box-shadow: 0 20px 68px rgba(0,0,0,.6), 0 0 0 1px rgba(32,224,216,.18) inset, 0 0 36px rgba(148,29,82,.22);
}
.dark-boost .svc__title{ color:#f4faf9; letter-spacing:.3px; text-shadow:0 1px 10px rgba(0,0,0,.20); }
.dark-boost .svc__desc { color:#d6ece9; opacity:.98; }
.dark-boost .svc__bullets li{ color:#e9f7f5; }
.dark-boost .svc__bullets li::before{ color: var(--gold); }
.dark-boost .svc::before{
  content: attr(data-badge);
  position:absolute; top:.8rem; right:.8rem;
  padding:.2rem .5rem; font-size:.7rem; border-radius:999px;
  background: linear-gradient(90deg, #ff7abf, #20e0d8);
  color:#061013; font-weight:800; opacity:.95;
  box-shadow: 0 8px 18px rgba(0,0,0,.35);
}
.dark-boost .svc__icon{
  width:80px;height:80px;display:grid;place-items:center;
  border-radius:16px;background:rgba(255,255,255,.10);
  margin-bottom:.8rem;box-shadow: inset 0 0 0 1px rgba(255,255,255,.06), 0 6px 18px rgba(0,0,0,.35);
}
.dark-boost .svc__icon svg{ fill:#ffffff; opacity:.95; filter: drop-shadow(0 2px 6px rgba(0,0,0,.35)); }
.dark-boost .btn--gold{
  background: linear-gradient(180deg, #ff4fa0, #c61b6a);
  color:#06090c; font-weight:900; border:0;
  box-shadow: 0 0 0 1px rgba(255,255,255,.08) inset, 0 12px 28px rgba(148,29,82,.45), 0 0 24px rgba(32,224,216,.16);
}
.dark-boost .btn--gold:hover{ transform: translateY(-2px) scale(1.02); filter: brightness(1.08); }
.dark-boost .btn:focus-visible{ outline:3px solid #20e0d8; outline-offset:2px; }
.dark-boost .section__title{
  color:#ff7abf;
  text-shadow: 0 2px 18px rgba(148,29,82,.35), 0 0 1px rgba(255,255,255,.2);
}

/* Grids */
.grid { display:grid; gap: 1.2rem; }
.cards { display:grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
@media (max-width: 1024px){ .cards { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px){ .cards { grid-template-columns: 1fr; } }

/* === Card base === */
.card {
    background: rgba(255,255,255,.04);
    border: 1px solid #1f5a7a;
    border-radius: var(--radius);
    padding: 1.25rem 1.25rem 1.4rem;
    box-shadow: 0 10px 34px rgba(0,0,0,.28);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    position: relative;
    max-width: 400px;
    width: 100%;
}
.card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 38px rgba(0,0,0,.35);
    border-color: rgba(31,90,122,.65);
}
.card h3 { color: var(--gold); }

/* === Layout para imagen arriba e info abajo === */
.card.svc {
    display: flex;
    flex-direction: column;
    gap: 1rem; /* separación aumentada entre bloques */
}

/* === Contenedor de imagen grande === */
.svc__icon {
    width: 100%;
    height: var(--svc-media-h);
    overflow: hidden;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    box-shadow: 0 6px 18px rgba(0,0,0,.25);
    margin-bottom: 0.5rem;
}

.svc__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.card:hover .svc__img {
    transform: scale(1.05);
}

/* === Bloque de contenido (abajo) === */
.svc__title {
    margin: .1rem 0 .25rem;
    font-size: clamp(1.2rem, 1.1rem + .8vw, 1.6rem);
    line-height: 1.2;
}
.svc__desc {
    margin: 0;
    font-size: .98rem;
    line-height: 1.55;
    color: #e9f2f7;
    text-align: left;
    margin-bottom: 0.5rem;
}

/* Bullets */
.svc__bullets {
    margin: 0; 
    padding: 0; 
    list-style: none;
    margin-bottom: 1rem;
}
.svc__bullets li {
    position: relative;
    padding-left: 1.25rem;
    margin: .5rem 0;
    font-size: .95rem;
    color: #e9f2f7;
}
.svc__bullets li::before{
    content:"✔";
    position:absolute; left:0; top:0;
    color: var(--gold, #bc955b); font-weight:700;
}

/* CTA */
.svc__cta {
    margin-top: .5rem;
    display: flex; 
    justify-content: center; 
}

/* === Cards uniformes === */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  align-items: stretch; /* asegura que todas las columnas crezcan igual */
}

.card.svc {
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* empuja el CTA al fondo */
  height: 100%; /* fuerza a que ocupe todo el espacio de la celda */
  min-height: 520px; /* 🔑 ajusta según el más largo */
  padding: 1.5rem;
  background: rgba(255,255,255,.04);
  border: 1px solid #1f5a7a;
  border-radius: var(--radius);
  box-shadow: 0 10px 34px rgba(0,0,0,.28);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.card.svc:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 38px rgba(0,0,0,.35);
  border-color: rgba(31,90,122,.65);
}

/* CTA fijo al final */
.svc__cta {
  margin-top: auto; /* empuja el botón al fondo del card */
}


/* Responsivo: en móviles reduce un poco la altura del marco */
@media (max-width: 768px){
    :root{ --svc-media-h: 220px; }
    body {
        padding: 1rem;
    }
}


/* =========================================================
   RESPONSIVE - ajustes por breakpoint
   ========================================================= */

/* Tablet */
@media (max-width: 960px){
  /* Ocultar indicador para evitar saltos */
  .links::after{ display:none; }

  /* Nav: deja respirar y evita overflow */
  .links{
    gap:.9rem;
    flex-wrap: wrap;
  }
}

/* Móviles medianos */
@media (max-width: 768px){
  .nav__inner{
    grid-template-columns: 1fr auto;  /* brand | CTA */
    gap:.6rem;
  }
  /* Mueve links debajo del nav como fila scrollable */
  .links{
    order: 3;
    grid-column: 1 / -1;
    justify-content:flex-start;
    overflow-x: auto;
    padding-bottom:.25rem;
    -webkit-overflow-scrolling: touch;
  }
  .links a{ padding:.4rem .35rem; font-size:.95rem; white-space: nowrap; }

  .hero__content{ padding: 2.2rem 0; }
  .section { padding: 3rem 0; }
}

/* Móviles pequeños */
@media (max-width: 560px){
  /* Títulos un poco más compactos */
  .hero h1{ font-size: clamp(1.6rem, 5.5vw, 2.2rem); }

  /* Botones más táctiles */
  .btn, .hero .btn{ padding:.7rem 1rem; font-size: .95rem; }

  /* Cards aireadas y legibles */
  .card{ padding:.9rem; }
  .video-card{ padding:.8rem; }
}

/* Móviles muy pequeños / pantallas estrechas */
@media (max-width: 380px){
  .links{ gap:.6rem; }
  .links a{ font-size:.9rem; }
  .brand span{ font-size:.95rem; }
}

/* Accesibilidad: reduce animaciones si el usuario lo pide */
@media (prefers-reduced-motion: reduce){
  *{ animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

