/* =========================
   FONTS (TTF)
   ========================= */
/* Gotham-Medium eliminada: duplicado de "Gotham" — se usa solo la de abajo */

@font-face {
  font-family: "Monigue";
  src: url("/assets/fonts/Monigue.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Manrope";
  src: url("/assets/fonts/Manrope-VariableFont_wght.ttf") format("truetype");
  font-weight: 00 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Gotham";
  src: url("/assets/fonts/Gotham-Medium.ttf") format("truetype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

/* =========================
   THEME
   ========================= */
:root {
  --blue: #0b3d5a;
  --blue2: #08324a;
  --gold: #c89a2a;
  --white: #ffffff;
  --text: #0b1b25;
  --muted: #5a6b76;

  --radius: 18px;
  --shadow: 0 14px 40px rgba(0,0,0,.18);
  --container: 1120px;

  --font-title: "Monigue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Gotham", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

/* Compensa el header sticky para anclas nativas del navegador */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 60px; /* offsetHeight del header (~80px) + margen */
}

body {
  margin: 0;
  font-family: var(--font-body);
  background: #fff;
  color: var(--text);
}

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

.container {
  width: min(var(--container), calc(100% - 32px));
  margin-inline: auto;
  /* CORREGIDO: eliminada la "F" suelta que había aquí */
}

/* =========================
   HEADER
   ========================= */
.header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--blue);
  color: var(--white);
  transition: box-shadow .2s ease;
}
.header.is-elevated { box-shadow: 0 10px 25px rgba(0,0,0,.22); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.brand__logo {
  height: 52px;
  width: auto;
  object-fit: contain;
}

/* NAV DESKTOP — visible por defecto */
.nav-desktop {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-desktop a {
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .5px;
  font-size: 12px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 2px solid transparent;
}
.nav-desktop a:hover {
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.10);
}
.nav-desktop a.is-active {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.14);
}

/* HEADER ACTIONS */
.header__actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* BOTONES */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 999px;
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .6px;
  font-size: 12px;
  border: 2px solid transparent;
  cursor: pointer;
}
.btn--light { background: #ffffff; color: var(--blue); }
.btn--blue  { background: var(--blue); color: #fff; border-color: rgba(255,255,255,.35); }
.btn--gold  { background: var(--gold); color: #1b1202; }
.btn--full  { width: 100%; border-radius: 14px; }

/* HAMBURGUESA — oculta por defecto */
.hamb {
  display: none;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 2px solid rgba(255,255,255,.25);
  border-radius: 12px;
  cursor: pointer;
}
.hamb span {
  display: block;
  height: 2px;
  margin: 6px 10px;
  background: rgba(255,255,255,.9);
  border-radius: 2px;
}

/* NAV MOBILE */
.nav-mobile {
  display: none;
  padding: 10px 0 16px;
  border-top: 1px solid rgba(255,255,255,.15);
}
.nav-mobile a {
  display: block;
  padding: 12px 16px;
  color: rgba(255,255,255,.92);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .5px;
}
.nav-mobile a.is-active { background: rgba(255,255,255,.12); }
.nav-mobile__cta {
  margin: 8px 16px 0;
  border-radius: 14px;
  background: #fff;
  color: var(--blue) !important;
  font-weight: 500;
  text-align: center;
}
.nav-mobile.is-open { display: block; }

body.nav-open { overflow: hidden; }

.nav-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s ease;
  z-index: 55;
}
.nav-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

/* =========================
   SECTIONS / TIPOGRAFÍA
   ========================= */
/* scroll-margin-top: compensa el header sticky para todos los anclas con id */
[id] {
  scroll-margin-top: 60px;
}

.section { padding: 56px 0; }
.section--white { background: #fff; }
.section--blue  { background: var(--blue); color: #fff; }
.center { text-align: center; }

/* TÍTULOS = Monigue */
.hero__title,
.h2,
.h3,
.card__title {
  font-family: var(--font-title);
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: .8px;
}

.card__title--manrope {
  font-family: "Manrope", sans-serif;
  font-weight: 400;
}

.hero__media {
  border-radius: var(--radius);
  overflow: hidden;
}

/* Dorados/colores */
.h2--gold, .h3--gold { color: var(--gold); font-family: var(--font-body); font-weight: 500; }
.h2--blue  { color: var(--blue); }
.h2--white { color: #fff; }

.h2 { margin: 0 0 14px; font-size: 34px; }
.h3 { margin: 14px 0 10px; font-size: 28px; }

.p {
  margin: 0;
  line-height: 1.75;
  font-family: var(--font-body);
  font-weight: 500;
}
.p--wide   { max-width: 90ch; margin-inline: auto; }
.p--narrow { max-width: 70ch; margin-inline: auto; }
.p--muted  { color: rgba(255,255,255,.85); }

.h2--monigue {
  font-family: "Monigue", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif !important;
  font-weight: 400;
}

/* HERO */
.hero { padding-top: 36px; }
.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: center;
}
.hero__title {
  margin: 0 0 14px;
  line-height: .95;
  font-size: clamp(44px, 4.8vw, 72px);
}
.hero__text {
  margin: 0 0 18px;
  color: #2f3f49;
  max-width: 60ch;
}
.hero__cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* mobile slider oculto en desktop */
.hero__media-mobile { display: none; }

/* desktop slider visible en desktop */
.hero__media-desktop { display: block; }

/* SLIDER */
.slider {
  position: relative;
  overflow: hidden;
  background: transparent;
  border-radius: var(--radius);
}
.slider__frame {
  position: relative;
  height: 380px;
  border-radius: var(--radius);
  overflow: hidden;
}
.slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .28s ease;
  border-radius: var(--radius);
  overflow: hidden;
}
.slide.is-active { opacity: 1; }
.slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: var(--radius);
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(0,0,0,.35);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}
.slider__btn--next { right: 12px; }

.slider__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 10px;
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 8px;
}
.dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.6);
  border: 1px solid rgba(0,0,0,.1);
  cursor: pointer;
}
.dot.is-active { background: var(--gold); }

/* MILESTONES */
.milestones {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.ms { text-align: center; }
.ms__year {
  font-family: var(--font-title);
  font-weight: 400;
  color: var(--gold);
  font-size: clamp(54px, 6vw, 88px);
  line-height: 1;
}
.ms__text { margin-top: 8px; color: #4a5b66; }

/* CARDS */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.card {
  background: var(--blue2);
  color: #fff;
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}
.card__icon  { font-size: 44px; opacity: .95; }
.card__title { margin: 12px 0 10px; color: #77c6ff; font-size: 34px; }
.card__text  { margin: 0; color: rgba(255,255,255,.88); line-height: 1.7; }

/* CONTACT */
.contact {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
}
.contact__form {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: var(--radius);
  padding: 18px;
}

.label {
  display: block;
  margin: 12px 0 6px;
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: .6px;
  font-size: 12px;
  color: rgba(255,255,255,.88);
}
.input,
.textarea {
  width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(0,0,0,.18);
  color: #fff;
  padding: 10px 12px;
  outline: none;
  font: inherit;
}
.input:focus,
.textarea:focus {
  border-color: rgba(200,154,42,.7);
  box-shadow: 0 0 0 4px rgba(200,154,42,.14);
}

/* Honeypot */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  visibility: hidden;
}

/* Form status */
.form-status { margin-top: 10px; font-size: 14px; }

/* FOOTER */
.footer {
  background: var(--blue);
  border-top: 1px solid rgba(255,255,255,.18);
  padding: 22px 0 28px;
}
.footer__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255,255,255,.9);
  text-decoration: none;
}
.footer__brand img {
  width: auto;
  height: 52px;
  object-fit: contain;
}
.footer__brand-name {
  font-family: var(--font-body);
  font-size: 18px;
  font-weight: 500;
  letter-spacing: .5px;
  line-height: 1.2;
  color: #fff;
}
.footer__brand-name small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.5px;
  color: rgba(255,255,255,.6);
  margin-top: 2px;
}
.footer__right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}
.footer__copy {
  font-family: var(--font-body);
  font-size: 13px;
  color: rgba(255,255,255,.7);
}
.footer__email {
  font-family: var(--font-body);
  font-size: 13px;
  color: #77c6ff;
  text-decoration: none;
  transition: color .15s;
}
.footer__email:hover { color: #fff; }
.footer__social {
  display: flex;
  gap: 10px;
  margin-top: 4px;
}
.footer__social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.75);
  transition: color .15s;
}
.footer__social-link:hover { color: #fff; }

/* =========================
   RESPONSIVE
   ========================= */

@media (max-width: 980px) {
  .hero         { padding: 0; }
  .hero__grid   { grid-template-columns: 1fr; }
  .hero__copy   { padding: 24px 16px 0; }

  /* intercambio de sliders */
  .hero__media-mobile  { display: block; width: 100%; }
  .hero__media-desktop { display: none; }

  .slider__frame{ height: 300px; }
  .slider,
  .slider__frame,
  .slide,
  .slide img    { border-radius: 0; }

  .two-col      { grid-template-columns: 1fr; }
  .milestones   { grid-template-columns: 1fr; }
  .cards        { grid-template-columns: 1fr; }
  .contact      { grid-template-columns: 1fr; }
}

@media (max-width: 920px) {
  .nav-desktop    { display: none; }
  .header__actions{ display: none; }
  .hamb           { display: block; }
  .footer__inner  { flex-direction: column; align-items: center; text-align: center; gap: 12px; }
  .footer__right  { align-items: center; }
}