/* =========================================
   ============== VARIABLES =================
   ========================================= */
:root{
  --blue-metallic: #1f3b73;
  --blue-metallic-2: #2951a3;
  --black: #0a0a0a;
  --silver-1: #cfd3d6;
  --silver-2: #8e9ba7;
  --bg-1: #0d1117;
  --bg-2: #0b0f14;
  --text: #e8edf3;
  --muted: #a8b3c4;
  --accent: #37a0ff;
  --shadow: rgba(0,0,0,.35);
  --container: 1200px;
}

/* =========================================
   ============== RESET / BASE ==============
   ========================================= */
*{ box-sizing: border-box; }
html, body{ height: 100%; scroll-behavior: smooth; }
body{
  margin: 0; background: linear-gradient(180deg,var(--bg-1),var(--bg-2));
  color: var(--text); font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, "Helvetica Neue", Arial;
  line-height: 1.55;
}
img{ max-width: 100%; display: block; }
a{ color: inherit; text-decoration: none; }
.container{ width: min(100%, var(--container)); margin-inline: auto; padding: 0 20px; }

/* =========================================
   ================= NAVBAR =================
   ========================================= */
.navbar{
  position: sticky; top: 0; z-index: 50; backdrop-filter: blur(8px);
  background: rgba(10,10,10,.55); border-bottom: 1px solid rgba(255,255,255,.06);
}
.nav__inner{ display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo{ display: inline-flex; align-items: baseline; gap: 8px; height: 80px;}
.logo__hb{
  font-weight: 900; font-size: 26px; letter-spacing: .5px;
  background: linear-gradient(135deg, #62b0ff 0%, var(--blue-metallic-2) 40%, var(--blue-metallic) 70%, #0e1d3d 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 #b6d5ff, 0 2px 0 #8fb8ff, 0 3px 2px rgba(0,0,0,.35);
}
.logo__text{
  font-weight: 700; font-size: 18px; letter-spacing: .4px;
  background: linear-gradient(135deg, var(--silver-1), var(--silver-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 #f0f3f5, 0 2px 3px rgba(0,0,0,.3);
}

.nav{ position: relative; }
.nav__menu{ display: flex; align-items: center; gap: 20px; list-style: none; margin: 0; padding: 0; }
.nav__menu a{ color: var(--text); opacity: .9; }
.nav__menu a:hover{ opacity: 1; }
.nav__cta .btn{ padding: 10px 14px; }

.nav__toggle{
  display: none; width: 40px; height: 40px; border: 1px solid rgba(255,255,255,.1);
  border-radius: 8px; background: transparent; cursor: pointer;
}
.nav__toggle-line{
  display: block; width: 22px; height: 2px; background: #dfe7f1; margin: 5px auto;
}

/* =========================================
   ================= HERO ===================
   ========================================= */
/* css del hero banner */
.hero{
  position: relative; min-height: clamp(72vh, 76vh, 88vh); display: grid;
  place-items: center; overflow: clip; border-bottom: 1px solid rgba(255,255,255,.06);
}
.hero__video{
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(1) contrast(1.05) brightness(.85);
}
.hero__overlay{
  position: absolute; inset: 0;
  background:
    radial-gradient(60% 100% at 50% 100%, rgba(0,0,0,.6), transparent 70%),
    linear-gradient(180deg, rgba(0,0,0,.35), rgba(0,0,0,.75));
}
.hero__content{ position: relative; text-align: center; padding: 80px 0; }
.hero__title{
  font-size: clamp(42px, 7vw, 88px); line-height: .95; margin: 0 0 8px;
}
.metallic-3d{
  letter-spacing: .5px;
  background: linear-gradient(115deg, #91c1ff 0%, #5fa8ff 20%, #2d66c5 45%, #1a2f5a 65%, #0a1630 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow:
    0 1px 0 #b6d5ff,
    0 2px 0 #8fb8ff,
    0 3px 0 #5a86c9,
    0 5px 8px rgba(0,0,0,.45);
}
.metallic-3d span{
  background: linear-gradient(135deg, var(--silver-1), var(--silver-2) 40%, #6e7a86 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 1px 0 #f3f6f8, 0 2px 6px rgba(0,0,0,.35);
}
.hero__subtitle{ margin: 8px 0 12px; font-size: clamp(16px, 2.3vw, 22px); color: #d8e6ff; opacity: .95; }
.hero__text{ margin: 0 auto 20px; max-width: 760px; color: var(--muted); }
.hero__text--em{ color: #e5eefc; }
.hero__actions{ display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 10px; }
.hero__scroll{
  position: absolute; bottom: 18px; left: 50%; translate: -50% 0; color: #b9c8dd; opacity: .7;
}

/* css del hero banner movil */
@media (max-width: 768px){
  .nav__menu{
    position: absolute; right: 0; top: calc(100% + 10px); background: rgba(7,10,16,.95);
    padding: 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; flex-direction: column;
    min-width: 220px; display: none;
  }
  .nav__toggle{ display: inline-block; }
  .nav__menu.show{ display: flex; }

  .hero{ min-height: 78vh; }
  .hero__title{ font-size: clamp(40px, 9vw, 64px); }
  .hero__text{ padding-inline: 8px; }
}

/* =========================================
   =============== BOTONES ==================
   ========================================= */
.btn{
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: 12px; border: 1px solid rgba(255,255,255,.1);
  font-weight: 600; letter-spacing: .2px; cursor: pointer; transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s;
}
.btn--primary{
  background: linear-gradient(135deg, #5fa8ff, #1f3b73); color: white;
  box-shadow: 0 10px 20px rgba(47,117,214,.25), inset 0 1px 0 rgba(255,255,255,.15);
}
.btn--primary:hover{ transform: translateY(-2px); box-shadow: 0 14px 24px rgba(47,117,214,.35); }
.btn--ghost{
  background: transparent; color: #dfe9ff;
}
.btn--ghost:hover{ background: rgba(255,255,255,.05); }
.btn--whats{
  background: linear-gradient(135deg, #3bd16f, #1ca152); color: #02140b;
  border-color: rgba(0,0,0,.1);
}

/* =========================================
   =============== SECCIONES ================
   ========================================= */
.section{ padding: clamp(56px, 8vw, 96px) 0; }
.section--dark{ background: #0b0f15; }
.section__header{ text-align: center; margin-bottom: 28px; }
.section__title{ font-size: clamp(28px, 4.6vw, 40px); margin: 0; }
.section__subtitle{ color: var(--muted); margin: 6px 0 0; }

/* =========================================
   =============== CARDS ====================
   ========================================= */
.cards{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 18px;
}
.card{
  padding: 20px; border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.005));
  border-radius: 16px; box-shadow: 0 10px 24px rgba(0,0,0,.15);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.card:hover{ transform: translateY(-6px); border-color: rgba(98,176,255,.35); box-shadow: 0 16px 36px rgba(23,62,120,.35); }
.card__title{ margin: 0 0 8px; font-size: 20px; }
.card__text{ margin: 0; color: var(--muted); }

@media (max-width: 1024px){
  .cards{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px){
  .cards{ grid-template-columns: 1fr; }
}

/* =========================================
   =============== TIMELINE =================
   ========================================= */
.timeline{
  list-style: none; margin: 0; padding: 10px 0 0;
  position: relative; width: min(920px, 100%); margin-inline: auto;
}
.timeline::before{
  content:""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: linear-gradient(180deg, transparent, #2b3b55, transparent);
}
.timeline__item{
  position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: start; margin: 0 0 26px;
}
.timeline__item:nth-child(odd) .timeline__content{ grid-column: 1 / 2; padding-right: 26px; text-align: right; }
.timeline__item:nth-child(even) .timeline__content{ grid-column: 2 / 3; padding-left: 26px; }
.timeline__badge{
  position: absolute; left: 50%; translate: -50% 0; width: 40px; height: 40px; border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #5fa8ff, #1f3b73); color: #fff; display: grid; place-items: center;
  border: 2px solid rgba(255,255,255,.25); box-shadow: 0 10px 16px rgba(0,0,0,.35);
}
.timeline__content h3{ margin: 0 0 6px; }
.timeline__content p{ margin: 0; color: var(--muted); }

@media (max-width: 800px){
  .timeline::before{ left: 20px; }
  .timeline__item{ grid-template-columns: 1fr; padding-left: 60px; }
  .timeline__badge{ left: 20px; translate: 0 0; }
  .timeline__item .timeline__content{ grid-column: 1 / -1; padding: 0 0 0 6px; text-align: left; }
}

/* =========================================
   =============== GALERÍA ==================
   ========================================= */
/* css de la galeria */
.gallery{
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px;
}
.gallery__item{
  aspect-ratio: 4/3; overflow: hidden; border-radius: 14px; border: 1px solid rgba(255,255,255,.07);
  background: #0a0f16; cursor: zoom-in; position: relative;
}
.gallery__item img{
  width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease, filter .35s ease;
}
.gallery__item:hover img{ transform: scale(1.04); filter: saturate(1.08) contrast(1.06); }

/* Lightbox */
.lightbox{
  position: fixed; inset: 0; background: rgba(0,0,0,.82);
  display: none; place-items: center; z-index: 60; padding: 20px;
}
.lightbox.show{ display: grid; }
.lightbox__img{ max-width: 96vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 10px 40px rgba(0,0,0,.5); }
.lightbox__close{
  position: fixed; top: 14px; right: 16px; font-size: 36px; line-height: 1; border: none; background: transparent; color: #fff; cursor: pointer;
}

/* css de la galeria en movil */
@media (max-width: 1024px){
  .gallery{ grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 680px){
  .gallery{ grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 420px){
  .gallery{ grid-template-columns: 1fr; }
  .gallery__item{ aspect-ratio: 16/10; }
}

/* =========================================
   ================== CTA ===================
   ========================================= */
.cta{
  position: relative; padding: clamp(64px, 14vw, 110px) 0; text-align: center;
  background-image: url("assets/cta-bg.jpg");
  background-size: cover; background-position: center;
  border-top: 1px solid rgba(255,255,255,.06); border-bottom: 1px solid rgba(255,255,255,.06);
}
.cta__overlay{ position:absolute; inset:0; background: linear-gradient(180deg, rgba(0,0,0,.5), rgba(0,0,0,.8)); }
.cta__inner{ position: relative; }
.cta__title{ margin: 0 0 8px; font-size: clamp(26px, 4.6vw, 36px); }
.cta__text{ margin: 0 0 14px; color: var(--muted); }

/* =========================================
   ================ CONTACTO ================
   ========================================= */
.contact{
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; margin-top: 8px;
}
.contact__list{ list-style: none; padding: 0; margin: 8px 0 14px; }
.contact__list li{ margin-bottom: 6px; color: var(--muted); }
.contact__note{ color: #dbe7f7; margin: 6px 0 0; }

.contact__form{
  padding: 18px; border: 1px solid rgba(255,255,255,.07);
  background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.005));
  border-radius: 14px;
}
.form__row{ display: grid; gap: 6px; margin-bottom: 12px; }
input, textarea{
  width: 100%; padding: 12px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.12);
  background: rgba(8,12,18,.7); color: var(--text);
}
input::placeholder, textarea::placeholder{ color: #7f8aa1; }

/* css contacto en movil */
@media (max-width: 860px){
  .contact{ grid-template-columns: 1fr; }
}

/* =========================================
   ================ FOOTER ==================
   ========================================= */
.footer{ border-top: 1px solid rgba(255,255,255,.06); background: #070a10; }
.footer__inner{ display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 18px 0; font-size: 14px; color: var(--muted); }
.footer__top{ color: #c7d7ef; }

/* =========================================
   =========== BOTÓN WHATSAPP ===============
   ========================================= */
.wa-float{
  position: fixed; right: 16px; bottom: 16px; width: 54px; height: 54px; border-radius: 14px;
  background: radial-gradient(circle at 30% 30%, #3bd16f, #1ca152);
  box-shadow: 0 12px 22px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.25);
}
.wa-float:hover{ transform: translateY(-2px); }

/* =========================================
   ============== ANIMACIONES ===============
   ========================================= */
.reveal{
  opacity: 0; transform: translateY(12px) scale(.98);
  animation: none;
}
.reveal.is-visible{
  opacity: 1; transform: translateY(0) scale(1);
  animation: reveal .6s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--reveal-delay, 0s);
}
@keyframes reveal{
  from{ opacity: 0; transform: translateY(12px) scale(.98); }
  to{ opacity: 1; transform: translateY(0) scale(1); }
}

/* =========================================
   ====== BOTÓN WHATSAPP (archivo local) ====
   ========================================= */
.wa-float{
  position: fixed; right: 16px; bottom: 16px;
  width: 56px; height: 56px; border-radius: 14px;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 30%, #3bd16f, #1ca152);
  box-shadow: 0 12px 22px rgba(0,0,0,.3), inset 0 1px 0 rgba(255,255,255,.35);
  border: 1px solid rgba(0,0,0,.25);
  z-index: 70;
  transition: transform .15s ease, box-shadow .15s ease;
}
.wa-float::before{
  content: "";
  width: 26px; height: 26px;
  background: center/contain no-repeat url("media/whatsapp_icon.webp"); /* o .png */
  filter: drop-shadow(0 1px 1px rgba(0,0,0,.25));
}
.wa-float:hover{ transform: translateY(-2px); box-shadow: 0 14px 24px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.35); }
.wa-float:focus-visible{ outline: 2px solid rgba(255,255,255,.35); outline-offset: 3px; }

/* Navbar fija */
.navbar{
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 9999;
}

/* Evita el “salto” del contenido bajo la barra (ajusta a tu altura real) */
body{ padding-top: 68px; }