@import url('fonts.css');

:root {
  --navy: #040D20;
  --gold: #E09A5C;
  --plum: #3A244B;
  --ivory: #F2DAC3;
  --gold-deep: #9B5C28; /* dorado oscuro para texto e iconos sobre fondo claro (5.1:1 sobre blanco) */
  --white: #FFFFFF;
  --text: #040D20;
  --muted: #5C564E;
  --muted-dark: #CDBFAE;
  --line: rgba(224, 154, 92, 0.35);
  --shadow: 0 12px 40px rgba(4, 13, 32, 0.08);
  --shadow-hover: 0 16px 48px rgba(4, 13, 32, 0.12);
  --sans: 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --radius: 20px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 1.05rem;
  line-height: 1.65;
  background: var(--navy);
}
#sky {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); }
a:hover { color: #F7B97D; }
:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--gold);
  color: var(--navy);
  padding: .6rem 1rem;
  z-index: 99;
}
.skip:focus { left: 1rem; }
.wrap { width: min(1120px, 100% - 2.5rem); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

h1, h2, h3 {
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0 0 .6em;
}
h1 { color: var(--white); font-size: clamp(2.2rem, 6vw, 3.6rem); }
h2 { color: var(--navy); font-size: clamp(1.7rem, 4vw, 2.35rem); text-align: center; }
h3 { font-size: 1.12rem; color: var(--navy); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.2rem); color: var(--ivory); margin: 0 0 1.6rem; max-width: 540px; }
.section-lead {
  text-align: center;
  max-width: 560px;
  margin: -0.4rem auto 2.6rem;
  color: var(--muted);
}
.eyebrow {
  font-size: .78rem;
  letter-spacing: .22em;
  color: var(--plum);
  text-transform: uppercase;
  text-align: center;
  display: block;
  margin-bottom: .7rem;
  font-weight: 600;
}
.left { text-align: left !important; }
section { padding: 5.2rem 0; }
section[id] { scroll-margin-top: 80px; }

/* Header */
header.top {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(4, 13, 32, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(224, 154, 92, 0.16);
}
.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-decoration: none;
  font-family: var(--sans);
  color: var(--gold);
  letter-spacing: .16em;
  font-size: 1.05rem;
  font-weight: 600;
}
.brand img {
  width: 34px;
  height: 40px;
  object-fit: cover;
  border-radius: 6px;
}
.nav-toggle {
  background: none;
  border: 1px solid var(--line);
  color: var(--gold);
  border-radius: 10px;
  padding: .45rem .85rem;
  font: inherit;
  cursor: pointer;
  min-height: 44px;
  min-width: 64px;
}
#nav-menu {
  display: none;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  background: var(--navy);
  border-bottom: 1px solid var(--line);
  padding: 1rem 1.25rem 1.25rem;
}
#nav-menu.open { display: block; }
#nav-menu a {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: .35rem 0;
  color: var(--ivory);
  text-decoration: none;
  font-size: .98rem;
}
#nav-menu a:hover { color: var(--gold); }
.nav-cta { color: var(--gold) !important; font-weight: 600; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  #nav-menu {
    display: flex;
    position: static;
    padding: 0;
    background: none;
    border: 0;
    gap: 1.35rem;
    align-items: center;
  }
  #nav-menu a { display: inline-flex; font-size: .95rem; }
  #nav-menu .nav-cta {
    background: var(--gold);
    color: var(--navy) !important;
    border-radius: 999px;
    padding: 0 1.2rem;
    min-height: 42px;
  }
  #nav-menu .nav-cta:hover { filter: brightness(1.06); color: var(--navy) !important; }
}

/* Hero */
.hero {
  padding: 3.4rem 0 4.5rem;
  background: radial-gradient(ellipse at 70% -10%, #0B1534 0%, transparent 55%);
}
.hero .wrap {
  display: grid;
  gap: 2.8rem;
  align-items: center;
}
.hero-text { text-align: center; }
.hero .logo {
  width: min(110px, 34vw);
  margin: 0 auto 1.1rem;
  border-radius: 22px;
  box-shadow: 0 0 50px rgba(224, 154, 92, 0.16);
}
.hero .kicker {
  margin: 0 0 .55rem;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-size: .78rem;
  font-weight: 600;
  color: var(--gold);
}
.hero h1 { margin-bottom: .45em; }
.hero .value {
  font-size: clamp(1.12rem, 2.6vw, 1.35rem);
  color: var(--ivory);
  line-height: 1.45;
  max-width: 560px;
  margin: 0 auto 1rem;
  font-weight: 400;
}
.hero .lead { margin-left: auto; margin-right: auto; color: var(--muted-dark); }

.find-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem 1rem;
  width: min(100%, 560px);
  margin: 0 auto 1.6rem;
  padding: .55rem .55rem .55rem 1.1rem;
  background: var(--white);
  color: var(--navy);
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.18);
}
.find-cta:hover { color: var(--navy); }
.find-cta-icon { color: var(--gold); font-size: 1rem; }
.find-cta-text {
  flex: 1 1 180px;
  text-align: left;
  font-size: .95rem;
  color: var(--muted);
}
.find-cta-btn {
  background: var(--gold);
  color: var(--navy);
  font-weight: 600;
  border-radius: 999px;
  padding: .7rem 1.2rem;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
.find-cta:hover .find-cta-btn { filter: brightness(1.06); }

.download { margin-top: .2rem; }
.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  justify-content: center;
  align-items: center;
}
.badges a { display: inline-block; line-height: 0; }
.badges img { height: 48px; width: auto; }
.badges img.gp { height: 71px; margin: -11.5px -10px; }
.store {
  position: relative;
  display: inline-flex !important;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 48px;
  text-decoration: none;
  opacity: 1;
  filter: none;
  cursor: pointer;
}
.phone {
  max-width: 270px;
  margin: 0 auto;
  filter: drop-shadow(0 25px 50px rgba(0, 0, 0, .55));
}
.phone img { border-radius: 34px; }

@media (min-width: 900px) {
  .hero .wrap { grid-template-columns: 1.15fr .85fr; }
  .hero-text { text-align: left; }
  .hero .logo { margin-left: 0; width: 132px; }
  .hero .value, .hero .lead, .find-cta { margin-left: 0; }
  .badges { justify-content: flex-start; }
  .phone { max-width: 320px; }
}
@media (max-width: 899px) {
  .phone { max-width: 230px; }
}

/* Promo banner */
.promo {
  padding: 0;
  background: var(--plum);
  border-block: 1px solid rgba(224, 154, 92, 0.22);
}
.promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.4rem 2rem;
  padding: 2.1rem 0;
}
.promo h2 {
  color: var(--ivory);
  text-align: left;
  font-size: clamp(1.35rem, 3vw, 1.85rem);
  margin: 0 0 .35rem;
}
.promo p { margin: 0; color: var(--muted-dark); max-width: 520px; }
.promo-kicker {
  letter-spacing: .2em;
  text-transform: uppercase;
  font-size: .72rem;
  font-weight: 600;
  color: var(--gold);
  margin-bottom: .45rem !important;
}

.btn {
  font-family: var(--sans);
  letter-spacing: .01em;
  font-size: .95rem;
  background: var(--gold);
  color: var(--navy);
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.55rem;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  min-height: 46px;
}
.btn:hover { filter: brightness(1.06); color: var(--navy); }
.btn.ghost {
  background: none;
  border: 1px solid var(--gold);
  color: var(--gold);
}

/* Light sections */
.on-light {
  background: var(--white);
  color: var(--text);
}
.on-light.alt { background: var(--ivory); }
.on-light a { color: var(--plum); }
.on-light a:hover { color: var(--navy); }

.grid {
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.card {
  background: var(--white);
  border: 1px solid rgba(4, 13, 32, 0.06);
  border-radius: var(--radius);
  padding: 1.7rem 1.55rem;
  box-shadow: var(--shadow);
}
.on-light.alt .card,
.experts .form-card { box-shadow: var(--shadow); }
.card:hover { box-shadow: var(--shadow-hover); }
.ico-wrap {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(224, 154, 92, 0.18);
  color: var(--plum);
  margin-bottom: 1rem;
}
.card .ico { width: 28px; height: 28px; }
.card p { margin: 0; color: var(--muted); }

.steps {
  counter-reset: s;
  display: grid;
  gap: 1.35rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  list-style: none;
  padding: 0;
  margin: 0;
}
.steps li {
  counter-increment: s;
  position: relative;
  padding: 1.7rem 1.5rem 1.7rem 1.5rem;
  background: var(--white);
  border: 1px solid rgba(4, 13, 32, 0.06);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.steps li::before {
  content: counter(s);
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  margin-bottom: 1rem;
  border-radius: 50%;
  background: rgba(224, 154, 92, 0.22);
  color: var(--plum);
  font-weight: 600;
}
.steps p { margin: 0; color: var(--muted); }

ul.why { list-style: none; padding: 0; margin: 0; }
ul.why h3 { font-size: 1.05rem; }

@media (min-width: 700px) {
  #servicios .grid,
  ul.why { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 699px) {
  #servicios .grid { grid-template-columns: 1fr; }
  section { padding: 3.8rem 0; }
}

/* Experts */
.experts {
  background: linear-gradient(180deg, #F6E3D0 0%, var(--ivory) 100%);
  color: var(--text);
  border-block: 1px solid rgba(58, 36, 75, 0.08);
}
.experts h2 { color: var(--navy); }
.experts .eyebrow { color: var(--plum); }
.experts .lead { color: var(--muted); max-width: none; }
.experts .wrap { display: grid; gap: 2.2rem; }
@media (min-width: 900px) {
  .experts .wrap { grid-template-columns: 1fr 1fr; align-items: start; }
}
.experts ul { padding-left: 1.15rem; color: var(--muted); }
.experts li { margin: .45rem 0; }
.experts a { color: var(--plum); }
.experts form { display: grid; gap: .7rem; }
.form-card { padding: 1.8rem; }

input, select, textarea {
  font: inherit;
  color: var(--navy);
  background: var(--white);
  border: 1px solid rgba(4, 13, 32, 0.14);
  border-radius: 12px;
  padding: .8rem .95rem;
  width: 100%;
}
input::placeholder, textarea::placeholder { color: #8A8278; }
.check {
  display: flex;
  gap: .55rem;
  align-items: flex-start;
  font-size: .9rem;
  color: var(--muted);
  margin-top: .4rem;
}
.check input {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-top: .15rem;
  accent-color: var(--gold);
}
.form-status { font-size: .9rem; color: var(--plum); min-height: 1.2em; margin: .4rem 0 0; }

/* FAQ */
.faq { max-width: 820px; }
details {
  background: var(--white);
  border: 1px solid rgba(4, 13, 32, 0.06);
  border-radius: 16px;
  padding: 1rem 1.25rem;
  margin-bottom: .85rem;
  box-shadow: var(--shadow);
}
summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  list-style: none;
  position: relative;
  padding: .35rem 2rem .35rem 0;
  min-height: 44px;
  display: block;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: .35rem;
  color: var(--plum);
  font-size: 1.3rem;
  line-height: 1;
}
details[open] summary::after { content: "–"; }
details p { color: var(--muted); margin: .7rem 0 0; }

/* Footer */
footer {
  border-top: 1px solid rgba(224, 154, 92, 0.18);
  padding: 3.2rem 0 2rem;
  background: var(--navy);
  color: var(--ivory);
}
footer .wrap { display: grid; gap: 2rem; }
@media (min-width: 800px) {
  footer .wrap { grid-template-columns: 1.3fr 1fr 1fr; }
}
footer h3 { font-size: .95rem; color: var(--gold); }
footer ul { list-style: none; padding: 0; margin: 0; }
footer li { margin: .4rem 0; }
footer a { color: var(--ivory); text-decoration: none; }
footer a:hover { color: var(--gold); }
.foot-tag { color: var(--muted-dark); margin: .7rem 0 1.1rem; }
.badges.start { justify-content: flex-start; }
.legal {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(224, 154, 92, 0.18);
  padding-top: 1.2rem;
  font-size: .8rem;
  color: #B9AB9C;
}

/* Help */
.help-btn {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 30;
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  background: var(--plum);
  color: var(--ivory);
  text-decoration: none;
  border-radius: 999px;
  padding: .7rem 1.05rem;
  min-height: 46px;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(4, 13, 32, 0.28);
}
.help-btn:hover { color: var(--ivory); filter: brightness(1.08); }
footer { padding-bottom: 4.8rem; }
@media (max-width: 699px) {
  .help-btn {
    left: auto;
    right: 1rem;
    padding: .65rem;
    width: 46px;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .help-btn span { font-size: .95rem; }
  .hero { padding: 1.5rem 0 4.5rem; }
  .hero .logo { width: 86px; margin-bottom: .65rem; }
  .hero h1 { margin-bottom: .28em; }
  .hero .value { margin-bottom: .65rem; }
  .hero .lead { margin-bottom: 1.05rem; }
  .find-cta {
    border-radius: 24px;
    padding: 1rem 1.15rem;
    flex-direction: column;
    align-items: stretch;
    gap: .85rem;
  }
  .find-cta-text { flex: none; }
  .find-cta-btn { justify-content: center; width: 100%; }
}
.help-btn span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: grid;
  place-items: center;
  font-size: .85rem;
}

/* Legal pages */
.doc { max-width: 820px; padding: 3rem 0; color: var(--ivory); }
.doc h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); color: var(--gold); }
.doc h2 { text-align: left; font-size: 1.25rem; margin-top: 2rem; color: var(--gold); }
.doc p, .doc li { color: var(--muted-dark); }
.draft {
  border: 2px dashed var(--gold);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: rgba(224, 154, 92, .08);
  color: var(--ivory);
}
header.top .back {
  color: var(--ivory);
  text-decoration: none;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}
header.top .back:hover { color: var(--gold); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

/* ================= v4 ================= */
.center { text-align: center; }
.btn-lg { font-size: 1.05rem; padding: 1rem 2rem; min-height: 54px; }

/* Portada con oferta de bienvenida */
.offer-hero { position: relative; padding: 0 0 2.5rem; overflow: hidden; background: var(--navy); }
.offer-photo { display: block; }
.offer-photo img { width: 100%; height: 340px; object-fit: cover; object-position: 30% 30%; }
.offer-hero::after { content: ""; position: absolute; left: 0; right: 0; top: 240px; height: 100px; background: linear-gradient(180deg, rgba(4, 13, 32,0), var(--navy)); pointer-events: none; }
.offer-grid { position: relative; z-index: 2; }
.offer-text { text-align: center; padding-top: .5rem; }
.offer-kicker { display: inline-flex; gap: .45rem; align-items: center; margin: 0 0 .8rem; padding: .4rem .9rem; border-radius: 999px; background: rgba(224, 154, 92,.16); border: 1px solid rgba(224, 154, 92,.45); color: var(--gold); font-weight: 600; font-size: .85rem; letter-spacing: .04em; }
.offer-text h1 { font-size: clamp(2rem, 6.5vw, 3.5rem); margin-bottom: .4em; }
.offer-text .value { font-size: clamp(1.08rem, 2.4vw, 1.3rem); color: var(--ivory); line-height: 1.45; margin: 0 auto .5rem; max-width: 560px; }
.offer-slogan { color: var(--muted-dark); font-size: .95rem; margin: 0 0 1.5rem; letter-spacing: .02em; }
.offer-text .btn-lg { margin-bottom: 1.4rem; box-shadow: 0 12px 30px rgba(224, 154, 92,.28); }
.attrs { position: relative; z-index: 2; list-style: none; padding: 0; margin: 2.2rem 0 0; display: grid; gap: .8rem; grid-template-columns: 1fr; }
.attrs li { display: flex; align-items: center; gap: .8rem; padding: .95rem 1.1rem; border-radius: 16px; background: rgba(242, 218, 195,.07); border: 1px solid rgba(224, 154, 92,.22); color: var(--ivory); font-weight: 600; }
.attr-ico { width: 42px; height: 42px; flex: 0 0 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(224, 154, 92,.18); color: var(--gold); }
.attr-ico svg { width: 22px; height: 22px; }
@media (min-width: 700px) {
  .offer-hero { min-height: 640px; padding: 0 0 2.4rem; display: flex; flex-direction: column; justify-content: flex-end; }
  .offer-photo { position: absolute; inset: 0; }
  .offer-photo img { height: 100%; object-position: left center; }
  .offer-hero::after { top: 0; bottom: 0; left: 0; right: 0; height: auto; background: linear-gradient(90deg, rgba(4, 13, 32,0) 25%, rgba(4, 13, 32,.55) 55%, rgba(4, 13, 32,.85) 100%), linear-gradient(180deg, rgba(4, 13, 32,0) 70%, rgba(4, 13, 32,.9) 100%); }
  .offer-grid { display: grid; grid-template-columns: 1fr 1fr; padding-top: 5rem; flex: 1; align-items: center; }
  .offer-text { grid-column: 2; text-align: left; }
  .offer-text .value { margin-left: 0; }
  .offer-text .badges { justify-content: flex-start; }
  .attrs { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1100px) { .offer-hero { min-height: 700px; } }

/* Banner bienvenida */
.welcome-banner { padding: 0; background: linear-gradient(110deg, var(--plum) 0%, #492E5C 55%, var(--plum) 100%); border-block: 1px solid rgba(224, 154, 92,.3); }
.wb-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem 2rem; padding: 2.2rem 0; }
.wb-gift { width: 64px; height: 64px; color: var(--gold); flex: 0 0 64px; }
.wb-text { flex: 1 1 320px; }
.wb-text h2 { color: var(--ivory); text-align: left; font-size: clamp(1.35rem, 3vw, 1.9rem); margin: 0 0 .35rem; }
.wb-text p { margin: 0; color: var(--muted-dark); }
.promo-kicker { letter-spacing: .2em; text-transform: uppercase; font-size: .72rem; font-weight: 600; color: var(--gold); margin: 0 0 .45rem !important; }

/* Pasos grandes */
.big-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .big-steps { grid-template-columns: repeat(3, 1fr); } }
.big-steps li { background: var(--white); border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow); text-align: center; border: 1px solid rgba(4, 13, 32,.06); }
.big-num { display: grid; place-items: center; width: 72px; height: 72px; margin: 0 auto 1.1rem; border-radius: 50%; background: var(--navy); color: var(--gold); font-size: 2rem; font-weight: 600; box-shadow: 0 0 0 6px rgba(224, 154, 92,.22); }
.big-steps p { margin: 0; color: var(--muted); }
.steps-note { text-align: center; margin: 2rem auto 1.4rem; max-width: 620px; color: var(--plum); font-weight: 600; background: rgba(58, 36, 75,.08); border-radius: 14px; padding: .9rem 1.2rem; }

/* Video */
.video-sec { background: var(--navy); }
.on-dark { color: var(--gold) !important; }
.on-dark-title { color: var(--white); }
.on-dark-lead { color: var(--muted-dark) !important; }
.video-frame { max-width: 900px; margin: 0 auto; border-radius: 22px; overflow: hidden; border: 1px solid rgba(224, 154, 92,.3); box-shadow: 0 25px 60px rgba(0, 0, 0,.45); background: #000; aspect-ratio: 16 / 9; }
.video-frame video { width: 100%; height: 100%; display: block; object-fit: cover; }

/* Pop-up de salida */
.exit-popup { padding: 0; border: 0; background: transparent; max-width: min(440px, calc(100% - 2rem)); width: 100%; }
.exit-popup::backdrop { background: rgba(4, 13, 32,.72); backdrop-filter: blur(3px); }
.ep-card { position: relative; background: var(--white); color: var(--navy); border-radius: 22px; overflow: hidden; text-align: center; padding: 0 1.5rem 1.6rem; box-shadow: 0 30px 80px rgba(0, 0, 0,.4); }
.ep-head { display: flex; align-items: center; justify-content: center; gap: .5rem; margin: 0 -1.5rem 1.2rem; padding: .9rem; background: var(--navy); color: var(--gold); font-weight: 600; letter-spacing: .16em; font-size: .95rem; }
.ep-head img { border-radius: 5px; object-fit: cover; }
.ep-close { position: absolute; top: .45rem; right: .55rem; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(242, 218, 195,.12); color: var(--ivory); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.ep-close:hover { background: rgba(242, 218, 195,.25); }
.exit-popup h2 { color: var(--plum); font-size: 1.6rem; margin: 0 0 .25rem; }
.ep-sub { font-weight: 600; margin: 0 0 1rem; color: var(--navy); }
.ep-img { width: 200px; height: 200px; object-fit: cover; border-radius: 18px; margin: 0 auto 1rem; }
.ep-text { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.ep-badges { justify-content: center !important; }
.ep-form { display: grid; gap: .6rem; margin-top: 1rem; }

/* Centro de ayuda */
.help-hero { position: relative; text-align: center; padding: 4rem 0 6.5rem; background: radial-gradient(ellipse at 50% -20%, #0C1741 0%, transparent 60%); }
.help-hero h1 { font-size: clamp(2rem, 5.5vw, 3rem); margin-bottom: 1.4rem; }
.help-search { position: relative; max-width: 620px; margin: 0 auto; }
.help-search svg { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); width: 20px; height: 20px; color: #8A8278; pointer-events: none; }
.help-search input { border-radius: 999px; padding: 1rem 1.2rem 1rem 3rem; font-size: 1.02rem; border: 0; box-shadow: 0 12px 30px rgba(0, 0, 0,.25); }
.help-cards { position: relative; z-index: 2; display: grid; gap: 1.3rem; grid-template-columns: 1fr; max-width: 860px; margin: -4rem auto 0; }
@media (min-width: 700px) { .help-cards { grid-template-columns: 1fr 1fr; } }
.help-card { display: block; text-align: center; text-decoration: none; color: var(--navy) !important; padding: 2rem 1.5rem; }
.help-card .ico-wrap { margin: 0 auto 1rem; width: 64px; height: 64px; background: var(--plum); color: var(--gold); }
.help-card h2 { font-size: 1.35rem; margin: 0 0 .4rem; }
.help-card p { color: var(--muted); }
.help-body { background: var(--white); color: var(--text); padding: 0 0 5rem; }
.help-body .wrap { padding-top: 4.5rem; }
.help-layout { display: grid; gap: 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 960px) { .help-layout { grid-template-columns: 260px 1fr; } .help-aside { position: sticky; top: 92px; align-self: start; } }
.help-aside h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); text-align: left; margin: 0 0 .8rem; }
.help-aside ul { list-style: none; padding: 0; margin: 0; }
.help-aside a { display: flex; align-items: center; min-height: 44px; padding: .2rem .8rem; border-radius: 10px; color: var(--navy); text-decoration: none; }
.help-aside a:hover, .help-aside a[aria-current="true"] { background: var(--ivory); color: var(--plum); }
.help-cat { padding: 0; margin-bottom: 2.8rem; scroll-margin-top: 92px; }
.help-cat > h2 { text-align: left; font-size: 1.5rem; display: flex; align-items: center; gap: .7rem; }
.help-cat > h2 .ico-wrap { width: 44px; height: 44px; margin: 0; }
.help-cat > h2 .ico-wrap svg { width: 22px; height: 22px; }
.help-cat .cat-lead { color: var(--muted); margin: -.3rem 0 1.2rem; }
.help-empty { text-align: center; color: var(--muted); padding: 2rem; background: var(--ivory); border-radius: 16px; }
.help-contact { text-align: center; background: var(--ivory); border-radius: var(--radius); padding: 2.2rem 1.5rem; }
.help-contact h2 { margin-bottom: .4rem; }
.help-contact p { color: var(--muted); }
mark { background: rgba(224, 154, 92,.4); color: inherit; border-radius: 3px; padding: 0 .1em; }
[hidden] { display: none !important; }
@media (max-width: 699px) {
  .help-btn { transition: opacity .2s, transform .2s; }
  body.has-hero .help-btn:not(.show) { opacity: 0; visibility: hidden; transform: translateY(12px); }
}

/* ================= v5 · Centro de ayuda estilo artículos ================= */
.help-hero.slim { padding: 2.2rem 0 2.4rem; text-align: left; }
.help-search.small { max-width: 520px; margin: 1rem 0 0; }
.help-search.small input { padding-top: .8rem; padding-bottom: .8rem; }
.crumbs { font-size: .92rem; color: var(--muted-dark); }
.crumbs a { color: var(--ivory); text-decoration: none; }
.crumbs a:hover { color: var(--gold); text-decoration: underline; }
.help-sec { padding: 0; margin-bottom: 3.4rem; scroll-margin-top: 92px; }
.help-sec h2, .help-results h2 { text-align: left; font-size: 1.6rem; margin-bottom: .3rem; }
.sec-lead { color: var(--muted); margin: 0 0 1.2rem; }
.art-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid rgba(4, 13, 32,.1); }
.art-list li { border-bottom: 1px solid rgba(4, 13, 32,.1); }
.art-list a { display: flex; gap: .9rem; align-items: flex-start; padding: 1.15rem .4rem; color: var(--navy) !important; text-decoration: none; font-size: 1.05rem; min-height: 44px; }
.art-list a:hover span, .art-list a:focus-visible span { color: var(--plum); text-decoration: underline; text-underline-offset: 3px; }
.doc-ico { width: 22px; height: 22px; flex: 0 0 22px; color: var(--gold); margin-top: .1rem; }
.res-text { display: grid; gap: .2rem; }
.res-text small { color: var(--muted); font-size: .88rem; }
.help-results { padding: 0; margin-bottom: 3rem; }
.help-aside h2 { margin-top: 0; }
/* artículo */
.art-layout { display: grid; gap: 3rem; grid-template-columns: 1fr; padding-top: 3.2rem; }
@media (min-width: 960px) { .art-layout { grid-template-columns: minmax(0, 1fr) 300px; } .art-aside { position: sticky; top: 92px; align-self: start; } }
.art { max-width: 760px; }
.art h1 { color: var(--navy); font-size: clamp(1.9rem, 4.5vw, 2.6rem); margin-bottom: 1rem; }
.art-meta { display: flex; align-items: center; gap: .8rem; margin-bottom: 2rem; }
.art-meta img { width: 40px; height: 47px; object-fit: cover; border-radius: 50%; background: var(--navy); }
.art-meta div { display: grid; line-height: 1.35; }
.art-meta strong { color: var(--navy); font-size: .98rem; }
.art-meta span { color: var(--muted); font-size: .88rem; }
.art p { color: #3C3832; font-size: 1.06rem; line-height: 1.75; margin: 0 0 1.2rem; }
.art .art-summary { font-weight: 600; color: var(--navy); font-size: 1.12rem; }
.art h2 { text-align: left; font-size: 1.35rem; margin: 2rem 0 .8rem; }
.art-bullets { padding-left: 1.3rem; margin: 0 0 1.6rem; color: #3C3832; font-size: 1.06rem; line-height: 1.7; }
.art-bullets li { margin: .55rem 0; }
.art-bullets strong { color: var(--navy); }
.art a { color: var(--plum); }
.art-closing { font-style: normal; }
.art-share { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin: 2rem 0; padding-top: 1.4rem; border-top: 1px solid rgba(4, 13, 32,.1); color: var(--muted); font-size: .95rem; }
.art-share a, .art-share button { display: inline-flex; align-items: center; min-height: 40px; padding: 0 1rem; border-radius: 999px; border: 1px solid rgba(58, 36, 75,.3); background: var(--white); color: var(--plum) !important; font: inherit; font-weight: 600; text-decoration: none; cursor: pointer; }
.art-share a:hover, .art-share button:hover { background: var(--ivory); }
.share-status { color: var(--plum); font-weight: 600; }
.art-nav { display: grid; gap: 1rem; grid-template-columns: 1fr; border-top: 1px solid rgba(4, 13, 32,.1); padding-top: 1.4rem; }
@media (min-width: 700px) { .art-nav { grid-template-columns: 1fr 1fr; } }
.art-nav a { display: grid; gap: .25rem; padding: 1rem 1.1rem; border-radius: 14px; background: var(--ivory); text-decoration: none; color: var(--navy) !important; }
.art-nav a span { font-size: .85rem; color: var(--plum); font-weight: 600; }
.art-nav a strong { font-weight: 600; line-height: 1.35; }
.art-nav a:hover { box-shadow: var(--shadow); }
.art-nav .next { text-align: right; }
.art-aside h2 { font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; color: var(--plum); text-align: left; margin: 0 0 .9rem; }
.art-aside ul { list-style: none; padding: 0; margin: 0; border-left: 2px solid rgba(224, 154, 92,.35); }
.art-aside a { display: block; padding: .55rem .9rem; color: var(--navy); text-decoration: none; line-height: 1.4; font-size: .96rem; }
.art-aside a:hover { color: var(--plum); text-decoration: underline; }
.art-aside a[aria-current="page"] { color: var(--plum); font-weight: 600; border-left: 2px solid var(--gold); margin-left: -2px; background: rgba(242, 218, 195,.6); }

/* v5 · confianza + bienvenida SEO */
.trust { background: var(--white); color: var(--text); }
.trust-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: 2rem; grid-template-columns: 1fr; text-align: center; }
@media (min-width: 800px) { .trust-grid { grid-template-columns: repeat(3, 1fr); } }
.trust-grid .ico-wrap { width: 72px; height: 72px; margin: 0 auto 1rem; background: var(--navy); color: var(--gold); }
.trust-grid .ico { width: 34px; height: 34px; }
.trust-grid h3 { font-size: 1.2rem; }
.trust-grid p { color: var(--muted); margin: 0 auto; max-width: 300px; }
.seo { background: var(--ivory); color: var(--text); }
.seo-card { background: var(--white); border-radius: 24px; box-shadow: var(--shadow); padding: clamp(1.6rem, 4vw, 3.2rem); max-width: 960px; margin: 0 auto; }
.seo-card h2 { margin-bottom: 1rem; }
.seo-card h3 { font-size: 1.3rem; margin: 2rem 0 .6rem; color: var(--plum); }
.seo-card p { color: #3C3832; line-height: 1.75; margin: 0 0 1rem; }
.seo-card strong { color: var(--navy); }
.seo-card a { color: var(--plum); }
.seo-cta { text-align: center; margin: 1.4rem 0 .4rem; }
.faq-links { list-style: none; padding: 0; margin: 0 auto; max-width: 820px; border-top: 1px solid rgba(4, 13, 32,.1); }
.faq-links li { border-bottom: 1px solid rgba(4, 13, 32,.1); }

/* ===== v6 · identidad visual nueva (logotipo en trazos, isotipo transparente, hero con nebulosa) ===== */
.brand .brand-logo { width: auto; height: 44px; border-radius: 0; object-fit: contain; display: block; }
footer .brand .foot-logo { height: 56px; }
.ep-head .ep-logo { height: 38px; width: auto; border-radius: 0; object-fit: contain; }
.art-meta img { width: 44px; height: 44px; object-fit: contain; padding: 4px; box-sizing: border-box; }

.offer-hero {
  background:
    radial-gradient(55% 65% at 88% 18%, rgba(58, 36, 75,.78), rgba(58, 36, 75,0) 70%),
    radial-gradient(45% 55% at 66% 100%, rgba(58, 36, 75,.55), rgba(58, 36, 75,0) 72%),
    radial-gradient(35% 45% at 4% 92%, rgba(58, 36, 75,.45), rgba(58, 36, 75,0) 70%),
    radial-gradient(80% 90% at 62% 45%, #081536 0%, #040D20 70%);
}
.offer-hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background: url("../assets/img/estrellas.svg") repeat; background-size: 480px 480px; opacity: .7;
}
.offer-photo { position: relative; z-index: 1; }
.offer-photo img {
  -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
}
.offer-hero::after { display: none; }
.offer-hero > .wrap { position: relative; z-index: 2; }
.hero-logo { margin: -1.2rem auto 1.1rem; display: flex; flex-direction: column; align-items: center; }
.hero-logo img { width: 170px; height: auto; display: block; filter: drop-shadow(0 6px 22px rgba(4, 13, 32,.6)); }
.hero-slogan { margin: .55rem 0 0; color: var(--ivory); font-size: .7rem; font-weight: 600; letter-spacing: .34em; text-transform: uppercase; opacity: .9; padding-left: .34em; }

#servicios .grid.grid-5 .card { height: 100%; }
@media (min-width: 700px) and (max-width: 1099px) {
  #servicios .grid.grid-5 { grid-template-columns: repeat(6, 1fr); }
  #servicios .grid.grid-5 .card { grid-column: span 2; }
  #servicios .grid.grid-5 .card:nth-child(4) { grid-column: 2 / span 2; }
  #servicios .grid.grid-5 .card:nth-child(5) { grid-column: 4 / span 2; }
}
@media (min-width: 1100px) {
  #servicios .grid.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 1.1rem; }
}

@media (min-width: 700px) {
  .offer-photo { position: absolute; inset: 0 auto 0 0; width: 66%; }
  .offer-photo img {
    height: 100%; object-position: left center;
    -webkit-mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0,.55) 68%, transparent 96%);
            mask-image: linear-gradient(90deg, #000 40%, rgba(0, 0, 0,.55) 68%, transparent 96%);
  }
  .offer-hero > .wrap:last-child::before { content: none; }
  .offer-grid { padding-top: 3rem; }
  .hero-logo { margin: 0 0 1.2rem; align-items: flex-start; }
  .hero-logo img { width: 200px; }
  .hero-slogan { padding-left: 0; }
}
@media (min-width: 700px) {
  /* bottom fade so the attribute strip sits on the nebula */
  .offer-hero .attrs { position: relative; z-index: 2; }
  .offer-photo::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 30%; background: linear-gradient(180deg, rgba(4, 13, 32,0), rgba(4, 13, 32,.85)); }
}
.hero-logo { width: max-content; max-width: 100%; }
@media (min-width: 700px) { .hero-logo { align-items: center; } }
@media (max-width: 699px) {
  .offer-photo img { height: 290px; }
  .hero-logo { margin-top: -2.2rem; }
  .hero-logo img { width: 132px; }
}

/* ===== v7 · paleta oficial (Paleta_Velunia.pdf): #040D20 #E09A5C #3A244B #F2DAC3 ===== */
/* el dorado #E09A5C solo llega a 2.35:1 sobre blanco: en fondos claros se usa --gold-deep */
.help-body .doc-ico, .on-light .doc-ico, .art .doc-ico { color: var(--gold-deep); }

/* ===== v8.2 · más aire entre la foto y el texto de bienvenida ===== */
@media (min-width: 700px) {
  .offer-grid {
    grid-template-columns: 1.15fr 0.85fr;
    column-gap: 1.25rem;
  }
  .offer-text { padding-left: 2.5rem; }
}
@media (min-width: 1100px) {
  .offer-text { padding-left: 3.5rem; }
}
@media (max-width: 699px) {
  .hero-logo { margin-top: 0.55rem; }
  .offer-text { padding-top: 0.85rem; }
}

/* nota de condiciones de la oferta */
.offer-note {
  margin: .15rem auto 1.15rem;
  font-size: .85rem;
  line-height: 1.45;
  color: var(--muted-dark);
  max-width: 28rem;
}
.offer-text .btn-lg { margin-bottom: .65rem; }
@media (min-width: 700px) {
  .offer-text .offer-note { margin-left: 0; margin-right: 0; }
}
.wb-text .offer-note { margin: .4rem 0 0; }

/* Oferta para clientes existentes: bloque sobrio, no en el hero */
.clients-offer {
  background: var(--navy);
  padding: 1.6rem 0;
  border-block: 1px solid rgba(224, 154, 92, .22);
}
.clients-inner { text-align: center; }
.clients-offer h2 {
  color: var(--gold);
  font-family: var(--sans);
  font-size: .78rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 .55rem;
}
.clients-offer-text {
  color: var(--ivory);
  font-size: clamp(1.15rem, 2.4vw, 1.45rem);
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}
.clients-offer .offer-note { margin: .45rem auto 0; }

/* Accesos flotantes apilados: volver arriba, WhatsApp, Ayuda */
.float-dock {
  position: fixed;
  left: 1.1rem;
  bottom: 1.1rem;
  z-index: 30;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
}
.float-dock .help-btn,
.float-dock .wa-btn,
.float-dock .to-top-btn {
  position: static;
  left: auto;
  right: auto;
  bottom: auto;
}
.wa-btn,
.to-top-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  min-height: 46px;
  font: inherit;
  font-weight: 600;
  box-shadow: 0 10px 28px rgba(4, 13, 32, 0.28);
}
.wa-btn {
  background: var(--plum);
  color: var(--ivory);
  padding: .7rem 1.05rem;
}
.wa-btn:hover { color: var(--ivory); filter: brightness(1.08); }
.wa-btn svg,
.to-top-btn svg { width: 22px; height: 22px; display: block; flex: 0 0 22px; }
.to-top-btn {
  background: var(--navy);
  color: var(--gold);
  width: 46px;
  padding: 0;
  border: 1px solid rgba(224, 154, 92, .45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity .2s, transform .2s, visibility .2s, filter .2s;
}
.to-top-btn.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.to-top-btn:hover { filter: brightness(1.12); }
footer { padding-bottom: 11.5rem; }
@media (max-width: 699px) {
  .float-dock {
    left: auto;
    right: 1rem;
    bottom: 1rem;
    align-items: flex-end;
  }
  .float-dock .wa-btn,
  .float-dock .help-btn {
    padding: .65rem;
    width: 46px;
    justify-content: center;
    font-size: 0;
    gap: 0;
  }
  .float-dock .wa-btn .float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }
  .float-dock .help-btn span { font-size: .95rem; }
  .float-dock { transition: opacity .2s, transform .2s, visibility .2s; }
  /* Oculto en la portada hasta que hay scroll, aunque el JS aún no agregue .has-hero */
  body.has-hero .float-dock:not(.show),
  body:has(.offer-hero) .float-dock:not(.show) {
    opacity: 0;
    visibility: hidden;
    transform: translateY(12px);
    pointer-events: none;
  }
  footer { padding-bottom: 13rem; }
}

/* v8.2b · botones flotantes a la derecha; WhatsApp solo con logo */
.float-dock { left: auto; right: 1.1rem; align-items: flex-end; }
.float-dock .wa-btn {
  width: 52px; height: 52px; min-height: 52px; padding: 0;
  border-radius: 50%; background: #25D366; color: #fff;
  font-size: 0; gap: 0; justify-content: center;
}
.float-dock .wa-btn:hover { color: #fff; filter: brightness(1.05); }
.float-dock .wa-btn svg { width: 28px; height: 28px; flex-basis: 28px; }
.float-dock .wa-btn .float-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); }

/* v8.2c · sin botón flotante de Ayuda (ya está en el menú) */
.float-dock .help-btn, .help-btn { display: none !important; }
