/* ==========================================================
   Vanguard Network — clásico / old money
   Paleta: rojo, blanco y dorado (guiño discreto a Mónaco)
   ========================================================== */

:root {
  --red: #CE1126;
  --red-deep: #A50E1F;
  --burgundy: #7A0A16;
  --ivory: #FBF8F3;
  --paper: #F5EFE5;
  --white: #FFFFFF;
  --ink: #241A19;
  --ink-soft: #4A3E3C;
  --muted: #7C706C;
  --line: rgba(36, 26, 25, 0.13);
  --line-light: rgba(255, 255, 255, 0.22);
  --gold: #B8975A;
  --gold-light: #E0C996;

  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Montserrat", "Helvetica Neue", Arial, sans-serif;

  --maxw: 1180px;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 500;
  line-height: 1.08;
  margin: 0;
  letter-spacing: -0.01em;
}
h2 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); }
h3 { font-size: 1.6rem; }
em { font-style: italic; color: var(--red); }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.container--narrow { max-width: 860px; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--red);
  margin: 0 0 18px;
}
.section__head .eyebrow { justify-content: center; }
.eyebrow--gold { color: var(--gold-light); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 30px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  background: var(--red);
  color: var(--white);
  border: 1px solid var(--red);
  cursor: pointer;
  transition: background .35s var(--ease), color .35s var(--ease), border-color .35s var(--ease);
}
.btn:hover { background: var(--burgundy); border-color: var(--burgundy); }
.btn--ghost { background: transparent; color: var(--red); border-color: var(--gold); }
.btn--ghost:hover { background: var(--gold); border-color: var(--gold); color: var(--white); }
.btn--small { padding: 11px 20px; font-size: 10px; }

/* ---------- Nav ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
  padding: 18px 0;
}
.nav.is-scrolled {
  background: rgba(251, 248, 243, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 var(--line);
  padding: 10px 0;
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; }

.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: 44px; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--red);
}
.brand__sub {
  font-size: 9px;
  letter-spacing: 0.62em;
  text-transform: uppercase;
  color: var(--gold);
  margin-top: 5px;
}

.nav__links { display: flex; align-items: center; gap: 34px; }
.nav__links a:not(.btn) {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--ink-soft);
  position: relative;
  padding: 4px 0;
}
.nav__links a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 100%; height: 1px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform .4s var(--ease);
}
.nav__links a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }

.nav__toggle {
  display: none;
  width: 44px; height: 44px;
  background: none; border: 0; cursor: pointer;
  position: relative;
}
.nav__toggle span {
  position: absolute; left: 11px; right: 11px; height: 1.5px;
  background: var(--red);
  transition: transform .35s var(--ease), top .35s var(--ease);
}
.nav__toggle span:first-child { top: 17px; }
.nav__toggle span:last-child { top: 26px; }
.nav__toggle[aria-expanded="true"] span:first-child { top: 21px; transform: rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { top: 21px; transform: rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding: 150px 0 100px;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 40%; height: 100%;
  background: var(--paper);
  border-left: 1px solid var(--line);
}
.hero__grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: center;
  gap: 70px;
  position: relative;
}
.hero__title {
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  font-weight: 400;
  line-height: 1.04;
}
.hero__title em { font-weight: 600; }

.rule { display: flex; align-items: center; gap: 12px; margin: 34px 0 28px; }
.rule span { display: block; width: 72px; height: 1px; background: var(--gold); position: relative; }
.rule span::after {
  content: "";
  position: absolute; right: -10px; top: -3px;
  width: 7px; height: 7px;
  background: var(--red);
  transform: rotate(45deg);
}

.hero__lead { max-width: 500px; color: var(--ink-soft); margin: 0 0 40px; font-size: 16px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

.hero__emblem-wrap {
  position: relative;
  width: 100%;
  max-width: 440px;
  aspect-ratio: 1;
  margin-left: auto;
  perspective: 900px;
}
.emblem__ring {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  animation: spin 50s linear infinite;
  overflow: visible;
}
.emblem__ring text {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  fill: var(--gold);
}
.emblem__line { fill: none; stroke: var(--gold); stroke-width: .8; opacity: .55; }
.hero__emblem {
  position: absolute;
  inset: 15%;
  width: 70%;
  height: 70%;
  border-radius: 50%;
  box-shadow: 0 30px 60px -20px rgba(206, 17, 38, .35);
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Marquees ---------- */
.marquee {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  padding: 18px 0;
}
.marquee--light {
  background: var(--white);
  color: var(--red);
  padding: 14px 0;
  border-bottom: 1px solid var(--gold);
}
.marquee__track {
  display: flex; align-items: center; gap: 44px;
  width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee__track--rev { animation-direction: reverse; animation-duration: 40s; }
.marquee span {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.7rem;
  white-space: nowrap;
}
.marquee--light span {
  font-family: var(--sans);
  font-style: normal;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .4em;
  text-transform: uppercase;
}
.marquee b {
  display: inline-block;
  width: 8px; height: 8px;
  background: var(--gold-light);
  transform: rotate(45deg);
}
.marquee--light b { background: var(--gold); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 130px 0; position: relative; }
.section--tint { background: var(--paper); }

.section__head { text-align: center; margin: 0 auto 80px; max-width: 760px; position: relative; }
.numeral {
  display: block;
  font-family: var(--serif);
  font-size: 1.1rem;
  color: var(--gold);
  margin-bottom: 14px;
  letter-spacing: .1em;
}
.numeral::before, .numeral::after {
  content: "";
  display: inline-block;
  width: 36px; height: 1px;
  background: currentColor;
  vertical-align: middle;
  margin: 0 14px;
  opacity: .7;
}

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.about__text > p { color: var(--ink-soft); margin: 0 0 22px; font-size: 16px; }
.dropcap::first-letter {
  font-family: var(--serif);
  float: left;
  font-size: 5.2rem;
  line-height: .8;
  padding: 8px 12px 0 0;
  color: var(--red);
}

/* Nota discreta sobre los colores */
.colors {
  display: flex; align-items: center; gap: 16px;
  margin-top: 34px;
  padding-top: 22px;
  border-top: 1px solid var(--gold);
  color: var(--muted);
}
.colors__flag { flex: none; display: flex; flex-direction: column; width: 20px; box-shadow: 0 0 0 1px var(--line); }
.colors__flag i { display: block; height: 6px; }
.colors__flag i:first-child { background: var(--red); }
.colors__flag i:last-child { background: var(--white); }
.colors p { margin: 0; font-size: 13px; }
.colors strong { font-family: var(--serif); font-size: 1.05rem; font-weight: 600; font-style: italic; color: var(--red); }

.pillars { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.pillar {
  display: flex; gap: 26px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}
.pillar__num {
  flex: none;
  width: 56px;
  font-family: var(--serif);
  font-size: 2.6rem;
  font-style: italic;
  line-height: 1;
  color: var(--red);
  border-right: 1px solid var(--gold);
  padding-right: 14px;
  text-align: right;
}
.pillar h3 { margin-bottom: 6px; }
.pillar p { margin: 0; color: var(--muted); font-size: 14px; }

/* ---------- Services ---------- */
.services { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); background: var(--ivory); }
.card {
  position: relative;
  padding: 48px 32px 40px;
  display: flex; flex-direction: column;
  border-right: 1px solid var(--line);
  transition: color .5s var(--ease);
  isolation: isolate;
  overflow: hidden;
}
.card:last-child { border-right: 0; }
.card::before {
  content: "";
  position: absolute; inset: 0;
  background: var(--red);
  transform: scaleY(0);
  transform-origin: bottom;
  transition: transform .55s var(--ease);
  z-index: -1;
}
.card:hover::before { transform: scaleY(1); }
.card:hover, .card:hover .card__desc, .card:hover .card__list li, .card:hover .card__num, .card:hover .card__link { color: var(--white); }
.card:hover .card__list li::before { background: var(--white); }

.card--gold { background: var(--white); box-shadow: inset 0 3px 0 var(--gold); }
.card--gold .card__num, .card--gold .card__link { color: var(--gold); }
.card--gold .card__list li::before { background: var(--gold); }
.card--gold::before { background: var(--gold); }

.card--red { background: var(--red); color: var(--white); border-color: var(--red); }
.card--red::before { background: var(--burgundy); }
.card--red .card__desc, .card--red .card__list li { color: rgba(255,255,255,.88); }
.card--red .card__list li { border-color: rgba(255,255,255,.25); }
.card--red .card__num, .card--red .card__link { color: var(--gold-light); }
.card--red .card__list li::before { background: var(--gold-light); }

.card__num {
  font-family: var(--serif);
  font-size: 3.4rem;
  font-style: italic;
  color: var(--red);
  line-height: 1;
  margin-bottom: 26px;
  transition: color .5s var(--ease);
}
.card h3 { margin-bottom: 16px; }
.card__desc { color: var(--ink-soft); font-size: 14px; margin: 0 0 24px; transition: color .5s var(--ease); }
.card__list { list-style: none; margin: 0 0 34px; padding: 0; }
.card__list li {
  position: relative;
  padding: 9px 0 9px 20px;
  font-size: 13px;
  color: var(--ink-soft);
  border-top: 1px solid var(--line);
  transition: color .5s var(--ease);
}
.card__list li::before {
  content: "";
  position: absolute; left: 0; top: 50%;
  width: 6px; height: 6px;
  background: var(--red);
  transform: translateY(-50%) rotate(45deg);
  transition: background .5s var(--ease);
}
.card__link {
  margin-top: auto;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--red);
  display: inline-flex; gap: 10px; align-items: center;
  transition: color .5s var(--ease);
}
.card__link span { transition: transform .35s var(--ease); }
.card__link:hover span { transform: translateX(6px); }

/* ---------- Lema ---------- */
.motto {
  background: var(--red);
  background-image: radial-gradient(circle at 20% 50%, rgba(255,255,255,.08), transparent 55%);
  color: var(--white);
  padding: 120px 0;
  border-top: 1px solid var(--gold);
  border-bottom: 1px solid var(--gold);
}
.motto__grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 80px;
  align-items: center;
}
.motto__logo {
  width: 280px; height: 280px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-light), 0 0 0 12px rgba(224, 201, 150, .15);
}
.motto blockquote {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 7vw, 6rem);
  font-weight: 600;
  line-height: .95;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}
.motto blockquote em { color: var(--gold-light); text-transform: none; font-weight: 500; }
.motto__rule {
  width: 120px; height: 1px;
  background: var(--gold-light);
  margin: 34px 0 24px;
}
.motto__tr {
  margin: 0;
  font-size: 12px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: rgba(255,255,255,.85);
  max-width: 520px;
  line-height: 2;
}

/* ---------- Steps ---------- */
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px;
  position: relative;
}
.steps::before {
  content: "";
  position: absolute; top: 34px; left: 12%; right: 12%;
  height: 1px; background: var(--gold);
  opacity: .6;
}
.step { text-align: center; position: relative; }
.step__num {
  display: grid; place-items: center;
  width: 68px; height: 68px;
  margin: 0 auto 28px;
  border: 1px solid var(--gold);
  border-radius: 50%;
  background: var(--ivory);
  font-family: var(--serif);
  font-size: 1.5rem;
  color: var(--red);
  position: relative;
  transition: background .4s var(--ease), color .4s var(--ease);
}
.step:hover .step__num { background: var(--red); color: var(--white); border-color: var(--red); }
.step h3 { margin-bottom: 12px; }
.step p { color: var(--muted); font-size: 14px; margin: 0; }

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  padding: 28px 0;
  font-family: var(--serif);
  font-size: 1.5rem;
  font-weight: 500;
  transition: color .3s var(--ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  flex: none;
  font-family: var(--sans);
  font-weight: 300;
  font-size: 1.6rem;
  color: var(--gold);
  transition: transform .35s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--red); }
.faq details p { margin: 0 0 28px; color: var(--ink-soft); max-width: 700px; }

/* ---------- Contact ---------- */
.contact {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  background: var(--white);
  box-shadow: 0 50px 90px -50px rgba(122, 10, 22, .35);
  border-top: 3px solid var(--gold);
}
.contact__info {
  padding: 52px 44px;
  background: var(--red);
  color: rgba(255,255,255,.88);
}
.contact__logo { width: 84px; height: 84px; margin-bottom: 26px; border-radius: 50%; }
.contact__info > p { font-size: 15px; margin: 0 0 30px; }
.contact__item {
  display: block;
  padding: 20px 0;
  border-top: 1px solid var(--line-light);
  font-family: var(--serif);
  font-size: 1.3rem;
  color: var(--white);
  word-break: break-word;
  transition: color .3s var(--ease);
}
.contact__item:last-child { border-bottom: 1px solid var(--line-light); }
.contact__item:hover { color: var(--gold-light); }
.contact__item small {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--gold-light);
  margin-bottom: 4px;
}

.form { padding: 52px 44px; }
.field { margin-bottom: 26px; }
.field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field input, .field select, .field textarea {
  width: 100%;
  font-family: var(--serif);
  font-size: 1.2rem;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 8px 0;
  border-radius: 0;
  outline: none;
  transition: border-color .3s var(--ease);
  appearance: none;
}
.field select {
  background-image: linear-gradient(45deg, transparent 50%, var(--red) 50%), linear-gradient(135deg, var(--red) 50%, transparent 50%);
  background-position: calc(100% - 12px) 55%, calc(100% - 7px) 55%;
  background-size: 5px 5px;
  background-repeat: no-repeat;
  cursor: pointer;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--gold); }
.form__error { color: var(--red); font-size: 13px; min-height: 1em; margin: 0 0 14px; }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn { flex: 1 1 200px; }

/* ---------- Footer ---------- */
.footer {
  background: var(--burgundy);
  color: rgba(255,255,255,.78);
  padding: 80px 0 0;
  border-top: 3px solid var(--gold);
}
.footer__inner {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1.2fr;
  gap: 40px;
  padding-bottom: 60px;
  border-bottom: 1px solid var(--line-light);
}
.footer__brand { display: flex; align-items: center; gap: 22px; }
.footer__brand img { width: 96px; height: 96px; border-radius: 50%; }
.footer__brand p { margin: 0; font-family: var(--serif); font-size: 1.35rem; color: var(--white); line-height: 1.3; }
.footer__brand span { font-style: italic; color: var(--gold-light); }
.footer__nav { display: flex; flex-direction: column; gap: 8px; }
.footer__nav a {
  font-size: 12px; letter-spacing: .18em; text-transform: uppercase;
  transition: color .3s var(--ease);
}
.footer__contact { display: flex; flex-direction: column; gap: 10px; }
.footer__contact a { letter-spacing: .04em; font-size: 14px; word-break: break-word; transition: color .3s var(--ease); }
.footer__nav a:hover, .footer__contact a:hover { color: var(--gold-light); }
.footer__base {
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding-top: 26px; padding-bottom: 90px;
  font-size: 11px; letter-spacing: .1em;
}
.footer__flag { display: inline-flex; align-items: center; }
.footer__flag i {
  display: inline-block;
  width: 26px; height: 16px;
  background: linear-gradient(to bottom, var(--red) 50%, var(--white) 50%);
  box-shadow: 0 0 0 1px rgba(255,255,255,.35);
}

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed;
  right: 22px; bottom: 22px;
  z-index: 60;
  padding: 14px 22px 14px 20px;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red);
  color: var(--white);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .24em;
  text-transform: uppercase;
  border: 1px solid var(--gold-light);
  box-shadow: 0 14px 30px rgba(122, 10, 22, .3);
  transition: transform .35s var(--ease), background .35s var(--ease);
}
.wa-float::before {
  content: "";
  width: 7px; height: 7px;
  background: var(--gold-light);
  transform: rotate(45deg);
}
.wa-float:hover { transform: translateY(-4px); background: var(--burgundy); }

/* ==========================================================
   ANIMACIONES
   ========================================================== */

/* ---------- Pantalla de entrada ---------- */
.loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: var(--red);
  transition: transform 1s cubic-bezier(.76, 0, .24, 1);
}
.loader__inner { display: flex; flex-direction: column; align-items: center; gap: 26px; transition: opacity .3s; }
.loader img {
  width: 110px; height: 110px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px var(--gold-light);
  animation: loaderLogo 1.1s var(--ease) both;
}
.loader__line {
  display: block;
  width: 140px; height: 1px;
  background: rgba(255,255,255,.25);
  position: relative; overflow: hidden;
}
.loader__line::after {
  content: "";
  position: absolute; inset: 0;
  background: var(--gold-light);
  transform-origin: left;
  animation: loaderLine 1.1s var(--ease) .2s both;
}
@keyframes loaderLogo { from { opacity: 0; transform: scale(.85) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes loaderLine { from { transform: scaleX(0); } to { transform: scaleX(1); } }

body.is-loaded .loader { transform: translateY(-100%); pointer-events: none; }
body.is-loaded .loader__inner { opacity: 0; }
body.is-loading { overflow: hidden; }

/* ---------- Barra de progreso ---------- */
.progress {
  position: fixed; top: 0; left: 0; right: 0;
  height: 2px; z-index: 80;
  background: linear-gradient(to right, var(--red), var(--gold));
  transform-origin: left;
  transform: scaleX(0);
}

/* ---------- Intro de la portada ---------- */
.intro { opacity: 0; transform: translateY(24px); }
.intro--scale { transform: scale(.88) rotate(-8deg); }
body.is-loaded .intro {
  opacity: 1; transform: none;
  transition: opacity 1.1s var(--ease), transform 1.3s var(--ease);
  transition-delay: calc(var(--d, 0s) + .5s);
}

/* Líneas de títulos que suben desde una máscara */
.line { display: block; overflow: hidden; padding-bottom: .1em; margin-bottom: -.1em; }
.line > span {
  display: inline-block;
  transform: translateY(110%);
  transition: transform 1.2s cubic-bezier(.19, 1, .22, 1);
  transition-delay: var(--d, 0s);
}
body.is-loaded .hero__title .line > span { transform: none; transition-delay: calc(var(--d, 0s) + .5s); }
.is-visible .line > span { transform: none; }

/* Línea dorada que se dibuja */
.rule span { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) 1.2s; }
body.is-loaded .rule span { transform: scaleX(1); }
.rule span::after { opacity: 0; transition: opacity .4s ease 2.2s; }
body.is-loaded .rule span::after { opacity: 1; }

/* Emblema: flotación + parallax */
.emblem__inner {
  position: absolute; inset: 0;
  transition: transform .8s var(--ease);
  will-change: transform;
}
.hero__emblem { animation: emblemFloat 7s ease-in-out infinite; }
@keyframes emblemFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.emblem__line { stroke-dasharray: 1240; stroke-dashoffset: 1240; transition: stroke-dashoffset 2.4s var(--ease) 1s; }
body.is-loaded .emblem__line { stroke-dashoffset: 0; }

/* ---------- Encabezados de sección ---------- */
.numeral::before, .numeral::after { transform: scaleX(0); transition: transform 1s var(--ease) .2s; }
.numeral::before { transform-origin: right; }
.numeral::after { transform-origin: left; }
.is-visible .numeral::before, .is-visible .numeral::after { transform: scaleX(1); }

/* ---------- Tarjetas de servicios ---------- */
.card__list li { opacity: 0; transform: translateX(-12px); transition: opacity .6s var(--ease), transform .6s var(--ease), color .5s var(--ease); }
.card.is-visible .card__list li { opacity: 1; transform: none; }
.card.is-visible .card__list li:nth-child(1) { transition-delay: .35s, .35s, 0s; }
.card.is-visible .card__list li:nth-child(2) { transition-delay: .45s, .45s, 0s; }
.card.is-visible .card__list li:nth-child(3) { transition-delay: .55s, .55s, 0s; }
.card.is-visible .card__list li:nth-child(4) { transition-delay: .65s, .65s, 0s; }
.card__num { display: inline-block; transition: color .5s var(--ease), transform .6s var(--ease); }
.card:hover .card__num { transform: translateX(8px); }
.card h3 { transition: letter-spacing .6s var(--ease); }
.card:hover h3 { letter-spacing: .02em; }

/* ---------- Pilares ---------- */
.pillar__num { transition: transform .6s var(--ease), color .4s; }
.pillar:hover .pillar__num { transform: scale(1.12); color: var(--gold); }

/* ---------- Pasos: línea dorada que recorre ---------- */
.steps::before { transform: scaleX(0); transform-origin: left; transition: transform 1.8s var(--ease) .2s; }
.steps.is-visible::before { transform: scaleX(1); }
.step__num { transform: scale(.4); opacity: 0; transition: transform .7s cubic-bezier(.34, 1.56, .64, 1), opacity .5s, background .4s var(--ease), color .4s var(--ease), border-color .4s; }
.steps.is-visible .step__num { transform: none; opacity: 1; }
.steps.is-visible .step:nth-child(1) .step__num { transition-delay: .2s, .2s, 0s, 0s, 0s; }
.steps.is-visible .step:nth-child(2) .step__num { transition-delay: .6s, .6s, 0s, 0s, 0s; }
.steps.is-visible .step:nth-child(3) .step__num { transition-delay: 1s, 1s, 0s, 0s, 0s; }
.steps.is-visible .step:nth-child(4) .step__num { transition-delay: 1.4s, 1.4s, 0s, 0s, 0s; }

/* ---------- Lema ---------- */
.motto__logo.reveal { transform: rotate(-120deg) scale(.7); transition: opacity 1.2s var(--ease), transform 1.6s var(--ease); }
.motto__logo.reveal.is-visible { transform: none; }
.motto__rule { transform: scaleX(0); transform-origin: left; transition: transform 1.2s var(--ease) .8s; }
.motto__text.is-visible .motto__rule { transform: scaleX(1); }
.motto { background-size: 200% 200%; animation: mottoGlow 12s ease-in-out infinite; }
@keyframes mottoGlow { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ---------- Botones: brillo ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 40%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg);
  transition: left .8s var(--ease);
  z-index: -1;
  pointer-events: none;
}
.btn:hover::after { left: 130%; }

/* ---------- Marquesina: pausa al pasar el mouse ---------- */
.marquee:hover .marquee__track { animation-play-state: paused; }

/* ---------- FAQ ---------- */
.faq details[open] p { animation: faqIn .6s var(--ease); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* ---------- WhatsApp: pulso dorado ---------- */
.wa-float::after {
  content: "";
  position: absolute; inset: -1px;
  border: 1px solid var(--gold-light);
  animation: waPulse 2.8s var(--ease) infinite;
  pointer-events: none;
}
@keyframes waPulse { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.2, 1.6); } }
.wa-float { opacity: 0; translate: 0 20px; }
body.is-loaded .wa-float { opacity: 1; translate: 0 0; transition: opacity .8s var(--ease) 1.6s, translate .8s var(--ease) 1.6s, transform .35s var(--ease), background .35s var(--ease); }

/* ---------- Contacto ---------- */
.contact__logo { transition: transform 1.2s var(--ease); }
.contact:hover .contact__logo { transform: rotate(360deg); }

/* Sin JavaScript: todo el contenido visible, sin pantalla de entrada */
html:not(.js) .loader { display: none; }
html:not(.js) .reveal, html:not(.js) .intro, html:not(.js) .line > span,
html:not(.js) .card__list li, html:not(.js) .step__num, html:not(.js) .wa-float { opacity: 1; transform: none; translate: none; }
html:not(.js) .rule span, html:not(.js) .steps::before, html:not(.js) .motto__rule,
html:not(.js) .numeral::before, html:not(.js) .numeral::after { transform: none; }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  /* Con "reducir movimiento" se mantienen las apariciones suaves,
     pero se quitan los movimientos continuos */
  .hero__emblem, .motto, .wa-float::after { animation: none; }
  .emblem__ring { animation-duration: 120s; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .services { grid-template-columns: repeat(2, 1fr); }
  .card:nth-child(2) { border-right: 0; }
  .card:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 900px) {
  .nav__toggle { display: block; z-index: 2; }
  .brand { position: relative; z-index: 2; }
  .nav__links {
    position: fixed;
    inset: 0;
    flex-direction: column;
    justify-content: center;
    gap: 30px;
    background: var(--ivory);
    opacity: 0;
    pointer-events: none;
    transition: opacity .4s var(--ease);
  }
  .nav__links a:not(.btn) { font-size: 14px; }
  .nav__links.is-open { opacity: 1; pointer-events: auto; }

  .hero { padding-top: 130px; }
  .hero::before { width: 100%; height: 36%; border-left: 0; border-bottom: 1px solid var(--line); }
  .hero__grid { grid-template-columns: 1fr; gap: 60px; }
  .hero__emblem-wrap { max-width: 320px; margin: 0 auto; order: -1; }

  .about { grid-template-columns: 1fr; gap: 50px; }
  .motto__grid { grid-template-columns: 1fr; gap: 44px; text-align: center; }
  .motto__logo { width: 200px; height: 200px; margin: 0 auto; }
  .motto__rule { margin-left: auto; margin-right: auto; }
  .motto__tr { margin: 0 auto; }
  .motto .eyebrow { justify-content: center; }
  .contact { grid-template-columns: 1fr; }
  .steps { grid-template-columns: repeat(2, 1fr); row-gap: 56px; }
  .steps::before { display: none; }
  .footer__inner { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  body { font-size: 14px; }
  .container { padding: 0 16px; }
  .section { padding: 90px 0; }
  .section__head { margin-bottom: 54px; }
  .eyebrow { letter-spacing: .22em; flex-wrap: wrap; }
  .services { grid-template-columns: 1fr; }
  .card { border-right: 0; border-bottom: 1px solid var(--line); padding: 40px 24px; }
  .card:last-child { border-bottom: 0; }
  .steps { grid-template-columns: 1fr; }
  .contact__info, .form { padding: 38px 22px; }
  .hero__actions .btn { flex: 1 1 100%; }
  .hero__emblem-wrap { max-width: 270px; }
  .brand__name { font-size: 1.1rem; }
  .contact__item { font-size: 1.05rem; }
  .motto { padding: 90px 0; }
  .footer__base { flex-direction: column; text-align: center; }
  .numeral::before, .numeral::after { width: 22px; }
  .wa-float { right: 16px; bottom: 16px; padding: 12px 16px; }
}
