/* ===== Fuentes ===== */
@font-face { font-family: "Marcellus"; src: url("../assets/fonts/marcellus-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Montserrat"; src: url("../assets/fonts/montserrat-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ===== Colores de marca ===== */
:root {
  --blue: #1341AE;
  --blue-dark: #0D2F80;
  --gold: #AE8F05;
  --gold-light: #C9A912;
  --cream: #F4F0DE;
  --cream-mark: #EFE9CF;
  --ink: #1B2233;
  --muted: #5A6275;
  --line: #E3E1D8;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px -12px rgba(19, 65, 174, .25);
  --header-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); }
body {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: "Marcellus", Georgia, serif; font-weight: 400; line-height: 1.15; margin: 0 0 .5em; color: var(--blue); }
h1 { font-size: clamp(2.4rem, 5.5vw, 4.2rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.8rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1em; }

.container { width: min(1180px, 100% - 32px); margin-inline: auto; }
.gold { color: var(--gold); }
.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: .9em;
  display: inline-flex; align-items: center; gap: .6em;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--gold); }

/* ===== Botones ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: .9em 1.6em; border-radius: 999px; border: 2px solid transparent;
  font-weight: 600; font-size: .98rem; text-decoration: none; cursor: pointer;
  transition: transform .2s, background-color .2s, color .2s, box-shadow .2s;
}
.btn svg { width: 1.25em; height: 1.25em; fill: currentColor; }
.btn:hover { transform: translateY(-2px); }
.btn--blue { background: var(--blue); color: var(--white); box-shadow: var(--shadow); }
.btn--blue:hover { background: var(--blue-dark); }
.btn--gold { background: var(--gold); color: var(--white); }
.btn--gold:hover { background: var(--gold-light); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }

/* ===== Encabezado ===== */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -10px rgba(0,0,0,.15); }
.header__inner { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; }
.header__logo img { width: 170px; height: auto; }
.nav { display: flex; align-items: center; gap: 2rem; }
.nav a:not(.btn) { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--ink); position: relative; }
.nav a:not(.btn)::after { content: ""; position: absolute; left: 0; bottom: -6px; width: 0; height: 2px; background: var(--gold); transition: width .25s; }
.nav a:not(.btn):hover::after { width: 100%; }
.nav__cta { padding: .65em 1.3em; }
.menu-toggle { display: none; background: none; border: 0; padding: 8px; cursor: pointer; }
.menu-toggle span { display: block; width: 26px; height: 2px; background: var(--blue); margin: 6px 0; transition: transform .3s, opacity .3s; }

/* ===== Ondas ===== */
.wave { position: absolute; left: 0; width: 100%; pointer-events: none; }
.wave path { fill: var(--gold); }
.wave--top { top: 0; height: 34px; }

/* ===== Portada ===== */
.hero { position: relative; overflow: hidden; padding: clamp(80px, 12vw, 140px) 0 clamp(70px, 9vw, 110px); }
.hero__mark {
  position: absolute; right: -6%; top: 50%; transform: translateY(-50%);
  width: min(62vw, 720px); height: auto; z-index: 0;
}
.hero__mark path { fill: var(--cream-mark); }
.hero__inner { position: relative; z-index: 1; }
.hero__text { max-width: 700px; }
.lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--muted); max-width: 580px; margin-bottom: 2rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 1rem; }
.hero__stats {
  list-style: none; margin: clamp(48px, 7vw, 80px) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(3, minmax(0, 200px)); gap: 1rem;
}
.hero__stats li { border-left: 3px solid var(--gold); padding: .2rem 0 .2rem 1rem; }
.hero__stats strong { display: block; font-family: "Marcellus", serif; font-weight: 400; font-size: clamp(1.9rem, 3.5vw, 2.6rem); color: var(--blue); line-height: 1.1; }
.hero__stats span { font-size: .88rem; color: var(--muted); }

/* ===== Secciones ===== */
.section { padding: clamp(70px, 9vw, 110px) 0; }
.section--cream { background: var(--cream); }
.section__head { max-width: 640px; margin-bottom: 3rem; }
.section__head p:last-child { color: var(--muted); }

/* ===== Tarjetas de servicio ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1.4rem; }
.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 2rem 1.7rem 1.8rem; overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
}
.card::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--blue), var(--gold)); transform: scaleX(0); transform-origin: left; transition: transform .35s; }
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.card:hover::before { transform: scaleX(1); }
.card__icon { width: 56px; height: 56px; border-radius: 12px; background: var(--cream); display: grid; place-items: center; margin-bottom: 1.3rem; }
.card__icon svg { width: 28px; height: 28px; fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.card p { color: var(--muted); font-size: .97rem; }
.card ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); padding-top: 1rem; }
.card li { font-size: .92rem; font-weight: 500; padding: .25rem 0 .25rem 1.3rem; position: relative; }
.card li::before { content: ""; position: absolute; left: 0; top: .78em; width: 8px; height: 8px; background: var(--gold); transform: rotate(45deg); }

/* ===== Nosotros ===== */
.about { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(40px, 6vw, 90px); align-items: center; }
.about__visual { aspect-ratio: 1; border-radius: 24px; position: relative; overflow: hidden; background: var(--blue); }

/* ===== Carrusel ===== */
.carousel__track { position: absolute; inset: 0; }
.carousel__slide {
  position: absolute; inset: 0; margin: 0;
  opacity: 0; transition: opacity .8s ease; pointer-events: none;
}
.carousel__slide.is-active { opacity: 1; pointer-events: auto; }
.carousel__slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel__slide::after { /* velo azul para que la etiqueta se lea bien */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(13, 47, 128, .55) 0%, rgba(13, 47, 128, 0) 45%);
}
.carousel__slide--brand {
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='270 -8 176 176'%3E%3Cpath fill='%23AE8F05' fill-opacity='.22' d='M358 0 L427 158 L398 141 L358 45 L318 141 L289 158 Z M288 82 L302 68 L358 124 L414 68 L428 82 L358 152 Z'/%3E%3C/svg%3E") center 40% / 75% no-repeat,
    linear-gradient(145deg, var(--blue) 0%, var(--blue-dark) 100%);
}
.carousel__slide--brand::after { display: none; }
.carousel__btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .9); display: grid; place-items: center;
  box-shadow: 0 6px 18px -6px rgba(0,0,0,.35); transition: background-color .2s, transform .2s;
}
.carousel__btn:hover { background: var(--white); transform: translateY(-50%) scale(1.06); }
.carousel__btn svg { width: 22px; height: 22px; fill: none; stroke: var(--blue); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.carousel__btn--prev { left: 14px; }
.carousel__btn--next { right: 14px; }
.carousel__dots { position: absolute; top: 18px; right: 18px; z-index: 3; display: flex; gap: 8px; }
.carousel__dots button {
  width: 10px; height: 10px; padding: 0; border-radius: 999px; border: 0; cursor: pointer;
  background: rgba(255, 255, 255, .55); transition: width .3s, background-color .3s;
}
.carousel__dots button[aria-selected="true"] { width: 26px; background: var(--gold); }
.carousel.is-single .carousel__btn, .carousel.is-single .carousel__dots { display: none; }
@media (prefers-reduced-motion: reduce) { .carousel__slide { transition: none; } }

.about__badge {
  position: absolute; left: 20px; bottom: 20px; z-index: 2;
  display: grid; gap: .15rem; padding: 1rem 1.3rem 1.05rem 1.4rem; max-width: calc(100% - 40px);
  color: var(--white);
  background: rgba(13, 47, 128, .45);
  -webkit-backdrop-filter: blur(14px) saturate(160%); backdrop-filter: blur(14px) saturate(160%);
  border: 1px solid rgba(255, 255, 255, .22); border-radius: 16px;
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .55);
}
.about__badge::before { /* línea dorada de acento */
  content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: var(--gold-light);
}
.about__since { font-size: .7rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold-light); }
.about__year { font-family: "Montserrat", sans-serif; font-weight: 700; font-size: clamp(2.2rem, 4.4vw, 3rem); line-height: 1; letter-spacing: -.02em; font-variant-numeric: lining-nums; }
.about__label { font-size: .85rem; font-weight: 500; color: rgba(255, 255, 255, .85); }
.about__text > p { color: var(--muted); }
.checks { list-style: none; padding: 0; margin: 1.8rem 0 0; display: grid; gap: .8rem; }
.checks li { position: relative; padding-left: 2rem; font-weight: 500; }
.checks li::before {
  content: ""; position: absolute; left: 0; top: .2em; width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--gold) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 70% no-repeat;
}

/* ===== Proceso ===== */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1.4rem; counter-reset: s; }
.steps li { padding: 1.8rem 1.5rem; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); position: relative; }
.steps__n { font-family: "Marcellus", serif; font-size: 2.6rem; color: var(--gold); line-height: 1; display: block; margin-bottom: .8rem; }
.steps p { color: var(--muted); font-size: .97rem; margin: 0; }

/* ===== Llamado a la acción ===== */
.cta { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: clamp(70px, 9vw, 100px) 0; text-align: center; }
.cta__mark { position: absolute; left: 50%; top: 50%; width: 520px; transform: translate(-50%, -50%); opacity: .12; }
.cta__mark path { fill: var(--gold-light); }
.cta__inner { position: relative; }
.cta h2 { color: var(--white); }
.cta p { color: rgba(255,255,255,.82); font-size: 1.1rem; margin-bottom: 2rem; }

/* ===== Contacto ===== */
.contact { display: grid; grid-template-columns: 1fr 1.2fr; gap: clamp(40px, 6vw, 80px); align-items: stretch; }
.contact__list { list-style: none; padding: 0; margin: 0 0 2rem; display: grid; gap: 1.4rem; }
.contact__list li { display: flex; gap: 1rem; align-items: flex-start; }
.contact__list svg { flex: none; width: 44px; height: 44px; padding: 11px; border-radius: 50%; background: var(--cream); fill: none; stroke: var(--blue); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.contact__list strong { display: block; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); }
.contact__list span, .contact__list a { font-weight: 500; text-decoration: none; }
.contact__list a:hover { color: var(--blue); text-decoration: underline; }
.contact__map { border-radius: 20px; overflow: hidden; min-height: 380px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact__map iframe { width: 100%; height: 100%; min-height: 380px; border: 0; display: block; }

/* ===== Pie de página ===== */
.footer { position: relative; margin-top: 30px; }
.wave--footer { position: relative; display: block; height: 50px; margin-bottom: -1px; }
.footer__body { background: var(--blue); color: rgba(255,255,255,.85); padding: 3rem 0 2rem; }
.footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; }
.footer__inner img { width: 190px; height: auto; }
.footer nav { display: flex; flex-wrap: wrap; gap: 1.5rem; }
.footer nav a { text-decoration: none; font-weight: 500; font-size: .95rem; }
.footer nav a:hover { color: var(--gold-light); }
.footer__copy { width: 100%; margin: 1rem 0 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.18); font-size: .85rem; text-align: center; }

/* ===== WhatsApp flotante ===== */
.wa-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; display: grid; place-items: center; box-shadow: 0 10px 25px -8px rgba(0,0,0,.4);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 30px; height: 30px; fill: var(--white); }

/* ===== Animación al hacer scroll ===== */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 auto; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--white); padding: .5rem 16px 1.5rem; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(0,0,0,.25);
    transform: translateY(-120%); visibility: hidden; transition: transform .3s, visibility .3s;
  }
  .nav.is-open { transform: none; visibility: visible; }
  .nav a:not(.btn) { padding: .9rem 0; border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 1rem; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }
  .about, .contact { grid-template-columns: 1fr; }
  .about__visual { max-width: 460px; }
  .hero__mark { width: 90vw; right: -30%; opacity: .7; }
}
@media (max-width: 560px) {
  .header__logo img { width: 140px; }
  .hero__stats { grid-template-columns: repeat(3, 1fr); gap: .6rem; }
  .hero__stats li { padding-left: .7rem; }
  .hero__stats span { font-size: .75rem; }
  .hero__actions .btn { width: 100%; }
  .footer__inner { justify-content: center; text-align: center; }
  .footer nav { justify-content: center; }
}
@media (max-width: 560px) {
  .eyebrow { letter-spacing: .1em; font-size: .72rem; }
  .eyebrow::before { width: 18px; flex: none; }
  .hero__stats span { display: block; line-height: 1.35; }
}
.contact__note { color: var(--muted); margin: -.3rem 0 1.8rem; }
