/* ============================================================
   T&C Global — Sitio institucional público
   Estilo: institucional, sobrio, corporativo.
   ============================================================ */

:root {
  --navy: #1b2a4a;
  --navy-dark: #14203a;
  --navy-light: #2c3e63;
  --ink: #22303f;
  --muted: #5a6b7c;
  --line: #dde4ec;
  --bg: #ffffff;
  --bg-soft: #f4f7fa;
  --gold: #d4af37;
  --accent: var(--gold);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 16px;
}

img { max-width: 100%; }

/* ---------- Header ---------- */
.site-header {
  background: var(--navy);
  color: #fff;
  border-bottom: 3px solid var(--gold);
}

.site-header__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #fff;
}

.brand__logo {
  width: 40px;
  height: auto;
  display: block;
}

.brand__name {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.4px;
}

.brand__name em { font-style: normal; color: var(--gold); }

.main-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.main-nav a {
  display: block;
  padding: 8px 14px;
  color: #d7deea;
  text-decoration: none;
  border-radius: 6px;
  font-size: 14.5px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

.main-nav a {
  position: relative;
}
.main-nav a::after {
  content: "";
  position: absolute;
  left: 14px; right: 14px; bottom: 5px;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s ease;
}
.main-nav a:hover::after,
.main-nav a.is-active::after {
  transform: scaleX(1);
}
.main-nav a:hover,
.main-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.main-nav a.nav-cta {
  margin-left: 8px;
  padding: 8px 18px;
  background: var(--gold);
  color: var(--navy-dark);
  border-radius: 999px;
  font-weight: 700;
}
.main-nav a.nav-cta::after { display: none; }
.main-nav a.nav-cta:hover {
  background: #e0be4e;
  color: var(--navy-dark);
  box-shadow: 0 6px 18px rgba(212,175,55,0.4);
}

/* Footer premium touch */
.site-footer { position: relative; }
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold) 30%, var(--gold) 70%, transparent);
  opacity: 0.8;
}
.site-footer a { transition: color 0.2s ease; }
.site-footer a:hover { color: var(--gold) !important; }

/* Contact strip: info cards */
.contact-strip__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 28px;
}
.contact-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 18px 16px;
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}
.contact-card:hover {
  transform: translateY(-4px);
  background: rgba(255,255,255,0.1);
  border-color: rgba(212,175,55,0.5);
}
.contact-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border-radius: 50%;
  background: rgba(212,175,55,0.18);
  color: var(--gold);
  margin-bottom: 10px;
}
.contact-card strong { display: block; color: #fff; font-size: 13px; margin-bottom: 4px; letter-spacing: 0.5px; }
.contact-card a, .contact-card span { color: #c6d0e0; font-size: 13.5px; text-decoration: none; }
.contact-card a:hover { color: var(--gold); }
.contact-card__dir { display: block; line-height: 1.5; }

/* Proceso: gold number chips */
.proceso-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px; height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), #b8922b);
  color: #fff;
  font-weight: 800;
  font-size: 18px;
  margin-bottom: 14px;
  box-shadow: 0 8px 18px rgba(212,175,55,0.35);
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
}

.hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 84px 24px 72px;
  text-align: center;
}

.hero__kicker {
  display: inline-block;
  font-size: 13px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 18px;
  font-weight: 600;
}

.hero h1 {
  font-size: clamp(30px, 5vw, 48px);
  line-height: 1.15;
  margin: 0 auto 18px;
  max-width: 820px;
  font-weight: 700;
}

.hero p.lead {
  font-size: 18px;
  color: #c6d0e0;
  max-width: 680px;
  margin: 0 auto 30px;
}

.hero__actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* web-landing-v4 PR1 — hero depth */
.hero--v3 { position: relative; overflow: hidden; }

.hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.hero__glow--1 {
  top: -120px; right: -80px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(212,175,55,0.5), transparent 65%);
  animation: glow-drift 14s ease-in-out infinite;
}
.hero__glow--2 {
  bottom: -140px; left: -100px;
  width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(44,62,99,0.9), transparent 65%);
  animation: glow-drift 18s ease-in-out 2s infinite;
}

@keyframes glow-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(24px, -18px) scale(1.08); }
}

.hero__scroll {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 34px;
  color: rgba(255,255,255,0.75);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  text-decoration: none;
  position: relative;
  z-index: 2;
  transition: color 0.2s;
}
.hero__scroll:hover { color: var(--gold); }
.hero__scroll .chevron {
  width: 18px; height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  animation: chevron-bounce 1.6s ease-in-out infinite;
}
@keyframes chevron-bounce {
  0%, 100% { transform: rotate(45deg) translate(0, 0); opacity: 0.7; }
  50%      { transform: rotate(45deg) translate(3px, 3px); opacity: 1; }
}

.hero__kicker .kicker-dot {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--gold);
  margin-right: 9px;
  vertical-align: 2px;
  animation: dot-pulse 2s ease-in-out infinite;
}
@keyframes dot-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(212,175,55,0.5); }
  50%      { box-shadow: 0 0 0 6px rgba(212,175,55,0); }
}

/* Buttons shine sweep */
.btn--gold, .btn--ghost { position: relative; overflow: hidden; }
.btn--gold::after, .btn--ghost::after {
  content: "";
  position: absolute;
  top: 0; left: -80%;
  width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg);
  transition: left 0.55s ease;
  pointer-events: none;
}
.btn--gold:hover::after, .btn--ghost:hover::after { left: 130%; }

/* Feature cards with icons */
.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.feature {
  position: relative;
  border-radius: 14px;
  padding: 24px 20px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.feature:hover { transform: translateY(-6px); }
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  margin-bottom: 14px;
  background: linear-gradient(135deg, var(--gold), #b8922b);
  box-shadow: 0 8px 18px rgba(212,175,55,0.35);
}
.feature__icon svg { width: 26px; height: 26px; }
.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); font-weight: 700; }
.feature p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.55; }

/* Dark mode: icons keep gold, cards keep soft bg */
html.dark .feature { box-shadow: 0 4px 20px rgba(0,0,0,0.35); }
html.dark .feature:hover { box-shadow: 0 12px 30px rgba(0,0,0,0.5); }


.btn {
  display: inline-block;
  padding: 12px 26px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  transition: background 0.15s, transform 0.1s, box-shadow 0.2s;
}
.btn:active { transform: translateY(1px) scale(0.99); }

.btn--gold { background: var(--gold); color: #fff; }
.btn--gold:hover { background: #a37f26; }

.btn--ghost { background: transparent; color: #fff; border-color: #5a6b8a; }
.btn--ghost:hover { border-color: var(--gold); color: var(--gold); }

/* ---------- Sections ---------- */
.section { padding: 64px 24px; }

.section--soft { background: var(--bg-soft); }

.section__inner { max-width: 1140px; margin: 0 auto; }

.section__kicker {
  font-size: 12.5px;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 600;
  margin: 0 0 8px;
}

.section h2 {
  font-size: clamp(24px, 3.4vw, 34px);
  margin: 0 0 14px;
  color: var(--navy);
  font-weight: 700;
}

.section__lead {
  font-size: 16.5px;
  color: var(--muted);
  max-width: 720px;
  margin: 0 0 34px;
}

/* ---------- Vertical cards ---------- */

/* ── Verticales: cards estáticas con logo + nombre ── */

/* Top accent stripe */

/* Shine sweep on hover */






/* Logo o ícono dentro del .v-card__icon — llena el box de 72×72 */



/* Stagger entrance for verticales */

@keyframes v-card-in {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
}

/* ---------- Generic content page ---------- */
.page-hero {
  background: var(--navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.page-hero .page-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.4;
  pointer-events: none;
  z-index: 0;
  will-change: transform;
}
.page-hero .page-hero__glow--1 {
  top: -100px; right: -60px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, rgba(212,175,55,0.45), transparent 65%);
  animation: glow-drift 14s ease-in-out infinite;
}
.page-hero .page-hero__glow--2 {
  bottom: -120px; left: -80px;
  width: 340px; height: 340px;
  background: radial-gradient(circle, rgba(255,255,255,0.25), transparent 65%);
  animation: glow-drift 18s ease-in-out 2s infinite;
}
.page-hero__inner { position: relative; z-index: 1; }

/* FAQ premium: open animation + accent bar */
.faq-item {
  position: relative;
  border: 1px solid var(--line);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.faq-item:hover { border-color: rgba(212,175,55,0.4); }
.faq-item[open] { border-color: rgba(212,175,55,0.55); box-shadow: 0 10px 30px rgba(27,42,74,0.08); }
.faq-item summary { transition: color 0.2s ease, padding 0.25s ease; }
.faq-item[open] summary { color: var(--navy); }
.faq-item__body { animation: faq-open 0.28s ease; }
@keyframes faq-open {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Social buttons glow */
.site-footer .flex a:hover { box-shadow: 0 6px 16px rgba(212,175,55,0.35); }

/* Dark mode FAQ adjustments */
html.dark .faq-item { border-color: var(--line); }
html.dark .faq-item[open] { box-shadow: 0 10px 30px rgba(0,0,0,0.4); }

.page-hero__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 56px 24px 48px;
  display: flex;
  align-items: center;
  gap: 20px;
}

.page-hero__badge {
  width: 62px;
  height: 62px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 26px;
  color: #fff;
  flex: 0 0 auto;
}

.page-hero h1 { margin: 0 0 4px; font-size: clamp(26px, 3.6vw, 38px); }

.page-hero p { margin: 0; color: #c6d0e0; font-size: 17px; }

.content { padding: 56px 24px 64px; }

.content__inner { max-width: 960px; margin: 0 auto; }

.content h2 {
  color: var(--navy);
  font-size: 24px;
  margin: 40px 0 14px;
}

.content h2:first-child { margin-top: 0; }

.content p { color: var(--ink); }

/* Service list */
.service-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
  margin: 20px 0 30px;
}

.service {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  padding: 20px 22px;
}

.service h3 { margin: 0 0 6px; font-size: 17px; color: var(--navy); }

.service p { margin: 0; font-size: 14.5px; color: var(--muted); }

/* Values / features */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-top: 20px;
}

.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.feature h3 { margin: 0 0 6px; font-size: 16px; color: var(--navy); }

.feature p { margin: 0; font-size: 14px; color: var(--muted); }

/* Indicators strip */
.indicators {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin: 26px 0 34px;
  background: var(--navy);
  border-radius: 12px;
  padding: 22px 18px;
}

.indicator { text-align: center; }

.indicator__value {
  display: block;
  font-size: 30px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
}

.indicator__label {
  display: block;
  margin-top: 4px;
  font-size: 12.5px;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #c6d0e0;
}

/* FAQ *//* Contact strip */
.contact-strip {
  background: var(--navy);
  color: #fff;
  text-align: center;
}

.contact-strip__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 52px 24px;
}

.contact-strip h2 { color: #fff; margin: 0 0 8px; }

.contact-strip p { color: #c6d0e0; margin: 0 0 24px; }

/* ---------- Contact form ---------- */
.contact-form-box {
  max-width: 720px;
  margin: 30px auto 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 28px;
  text-align: left;
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.08);
}

.form-msg {
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 18px;
  font-size: 14.5px;
}

.form-msg--ok { background: #e8f5e9; color: #2e7d32; border: 1px solid #c8e6c9; }
.form-msg--error { background: #fdecea; color: #c62828; border: 1px solid #f5c6cb; }

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.contact-form .form-field { margin-bottom: 14px; }

.contact-form label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 5px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
  outline: 2px solid var(--gold);
  outline-offset: -1px;
  border-color: var(--gold);
}

.form-hp {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- WhatsApp float ---------- */
.whatsapp-float {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #fff;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 999px;
  font-size: 14.5px;
  font-weight: 600;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.4);
  transition: transform 0.15s, box-shadow 0.15s;
}

.whatsapp-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(37, 211, 102, 0.5);
  color: #fff;
}

@media (max-width: 560px) {
  .contact-form .form-row { grid-template-columns: 1fr; }
  .whatsapp-float__text { display: none; }
  .whatsapp-float { padding: 13px; border-radius: 50%; }
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-dark);
  color: #a9b5c8;
  font-size: 14px;
}

.site-footer__inner {
  max-width: 1140px;
  margin: 0 auto;
  padding: 34px 24px;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.site-footer a { color: #d7deea; text-decoration: none; }
.site-footer a:hover { color: var(--gold); }

.site-footer__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.site-footer h4 {
  color: #fff;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin: 0 0 10px;
}

.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: 6px; }

.site-footer__legal {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 14px 24px;
  text-align: center;
  font-size: 12.5px;
  color: #7f8ba0;
}
/* ============================================================
   T&C Global — Interactivity additions (SDD interactividad-web)
   ============================================================ */

/* ─── Design tokens (additive) ─────────────────────────────── */
:root {
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --duration-base: 320ms;
}

/* ─── Scroll animation base state ──────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  [data-animate] {
    opacity: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ─── Keyframe definitions ─────────────────────────────────── */
@media (prefers-reduced-motion: no-preference) {
  @keyframes fade-up {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
  }

  @keyframes fade-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }

  @keyframes slide-left {
    from { opacity: 0; transform: translateX(-30px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  @keyframes slide-right {
    from { opacity: 0; transform: translateX(30px); }
    to   { opacity: 1; transform: translateX(0); }
  }

  /* Triggered animation — .is-visible added by IntersectionObserver */
  .is-visible[data-animate="fade-up"] {
    animation: fade-up var(--duration-base) var(--ease-out) both;
  }

  .is-visible[data-animate="fade-in"] {
    animation: fade-in var(--duration-base) ease both;
  }

  .is-visible[data-animate="slide-left"] {
    animation: slide-left var(--duration-base) var(--ease-out) both;
  }

  .is-visible[data-animate="slide-right"] {
    animation: slide-right var(--duration-base) var(--ease-out) both;
  }
}

/* ─── Mobile hamburger ─────────────────────────────────────── */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 6px;
  flex-direction: column;
  gap: 5px;
  width: 44px;
  height: 44px;
  justify-content: center;
  align-items: center;
}

.hamburger:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ── Global :focus-visible (WCAG 2.4.7) — web-landing-v2 PR3 ── */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.hamburger__line {
  display: block;
  width: 22px;
  height: 2px;
  background: #fff;
  border-radius: 2px;
  transition: transform var(--duration-base) var(--ease-out),
              opacity var(--duration-base) var(--ease-out);
}

/* Hamburger → X when open */
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(2) {
  opacity: 0;
}
.hamburger[aria-expanded="true"] .hamburger__line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 768px) {
  .hamburger { display: flex; }
  .main-nav   { display: none; }
}

/* ─── Mobile drawer ─────────────────────────────────────────── */
#mobile-nav {
  position: fixed;
  top: 0;
  right: 0;
  width: 280px;
  height: 100vh;
  background: var(--navy-dark, #14203a);
  z-index: 200;
  padding: 24px 16px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--duration-base) var(--ease-out);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

[data-open] #mobile-nav {
  transform: translateX(0);
}

/* Overlay behind drawer */
[data-open] .site-header::after {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 199;
}

#mobile-nav a {
  display: block;
  padding: 12px 16px;
  color: #d7deea;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.15s, color 0.15s;
}

#mobile-nav a:hover,
#mobile-nav a.is-active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

#mobile-nav a:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

/* Close button inside drawer */
#mobile-nav .nav-close {
  align-self: flex-end;
  background: none;
  border: none;
  color: #d7deea;
  cursor: pointer;
  font-size: 24px;
  line-height: 1;
  padding: 8px;
  border-radius: 6px;
  margin-bottom: 8px;
}

#mobile-nav .nav-close:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ─── Form AJAX states ──────────────────────────────────────── */
.btn-loading {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}

.btn-loading::after {
  content: '';
  position: absolute;
  width: 16px;
  height: 16px;
  top: 50%;
  left: 50%;
  margin: -8px 0 0 -8px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.form-success,
.form-error {
  padding: 16px 20px;
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 15px;
}

.form-success {
  background: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
}

.form-error {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.form-success[role="alert"],
.form-error[role="alert"] {
  /* Ensure role=alert is visually announced */
}

/* ============================================================
   T&C Global — web-landing-v2 PR1: Animated gradient hero + logo grid
   (prefers-reduced-motion guard extends existing interactividad-web guard)
   ============================================================ */

@media (prefers-reduced-motion: no-preference) {
  /* ── Animated gradient hero ──────────────────────────────── */
  @keyframes gradient-pan {
    0%, 100% { background-position: 0% 50%; }
    50%       { background-position: 100% 50%; }
  }

  .animate-gradient {
    background: linear-gradient(
      120deg,
      var(--navy-dark) 0%,
      var(--navy)       35%,
      var(--navy-light) 65%,
      var(--gold-soft) 100%
    );
    background-size: 300% 300%;
    animation: gradient-pan 12s ease-in-out infinite;
  }

  /* ── Reveal: fade-up-loud (dramatic scroll reveal) ─────── */
  @keyframes fade-up-loud {
    from { opacity: 0; transform: translateY(40px); }
    to   { opacity: 1; transform: translateY(0);    }
  }

  [data-animate="fade-up-loud"] {
    opacity: 0;
    transform: translateY(40px);
    transition:
      opacity  0.8s cubic-bezier(0.16, 1, 0.3, 1),
      transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
  }

  [data-animate="fade-up-loud"].is-visible {
    opacity: 1;
    transform: none;
  }

  /* ── Scale hover ────────────────────────────────────────── */
  .animate-scale {
    transition: transform 0.3s ease;
  }
  .animate-scale:hover {
    transform: scale(1.05);
  }

  /* ── WhatsApp glow pulse ───────────────────────────────── */
  @keyframes glow-pulse {
    0%, 100% { box-shadow: 0 0 0 0   rgba(212, 175, 55, 0.5); }
    50%       { box-shadow: 0 0 0 14px rgba(212, 175, 55, 0);   }
  }

  .animate-glow {
    animation: glow-pulse 2.4s ease-out infinite;
  }
}

/* ── Global reduced-motion guard for all new animations ─── */
@media (prefers-reduced-motion: reduce) {
  .animate-gradient,
  [data-animate],
  [data-animate="fade-up-loud"],
  .animate-scale,
  .animate-glow {
    animation: none !important;
    transition: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── Logo grid layout ────────────────────────────────────── */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (min-width: 768px) {
  .logo-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1024px) {
  .logo-grid {
    grid-template-columns: repeat(6, 1fr);
  }
}

.logo-grid__item {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  aspect-ratio: 1;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.logo-grid__item:hover,
.logo-grid__item:focus-within {
  transform: scale(1.05);
  box-shadow: 0 8px 24px rgba(27, 42, 74, 0.12);
}

.logo-grid__item svg {
  width: 48px;
  height: 48px;
  display: block;
}

/* ============================================================
   T&C Global — web-landing-v3 PR1: Foundation
   (hero upgrade, scroll effects, dividers/textures)
   ============================================================ */

/* ── Hero upgrade: floating shapes + richer gradient ─────── */
.hero--v3 {
  position: relative;
  overflow: hidden;
}
.hero--v3 .hero__inner { position: relative; z-index: 2; }

.hero--v3.animate-gradient {
  background:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(212,175,55,0.18), transparent 60%),
    linear-gradient(120deg, var(--navy-dark) 0%, var(--navy) 35%, var(--navy-light) 65%, var(--gold-soft) 100%);
  background-size: 100% 100%, 300% 300%;
  animation: gradient-pan 12s ease-in-out infinite;
}

.hero__shape {
  position: absolute;
  z-index: 1;
  border-radius: 20%;
  pointer-events: none;
  will-change: transform;
}
.hero__shape--1 {
  top: 14%; left: 6%;
  width: 90px; height: 90px;
  background: linear-gradient(135deg, rgba(212,175,55,0.85), rgba(212,175,55,0.05));
  transform: rotate(18deg);
  animation: float-shape 9s ease-in-out infinite;
}
.hero__shape--2 {
  top: 22%; right: 9%;
  width: 54px; height: 54px;
  border: 2px solid rgba(212,175,55,0.75);
  animation: float-shape 7s ease-in-out 1.2s infinite;
}
.hero__shape--3 {
  bottom: 18%; left: 16%;
  width: 42px; height: 42px;
  background: rgba(255,255,255,0.16);
  animation: float-shape 8s ease-in-out 2.1s infinite;
}
.hero__shape--4 {
  bottom: 24%; right: 16%;
  width: 66px; height: 66px;
  border: 2px solid rgba(255,255,255,0.35);
  border-radius: 50%;
  animation: float-shape 10s ease-in-out 0.6s infinite;
}

@keyframes float-shape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-18px) rotate(8deg); }
}

/* ── Scroll effects: sticky header, progress bar, back-to-top ── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
}
.site-header.is-scrolled {
  background: rgba(27, 42, 74, 0.88);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  box-shadow: 0 6px 18px rgba(20, 32, 58, 0.3);
}

#reading-progress {
  position: fixed;
  top: 0; left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--gold), #f0d878, var(--gold-soft));
  z-index: 120;
  transition: width 0.08s linear;
  pointer-events: none;
}

#back-to-top {
  position: fixed;
  right: 22px;
  bottom: 96px;
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--navy);
  color: var(--gold);
  border: 1px solid var(--gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  z-index: 95;
}
#back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
#back-to-top:hover {
  background: var(--gold);
  color: var(--navy);
  box-shadow: 0 0 0 6px rgba(212,175,55,0.18), 0 8px 22px rgba(212,175,55,0.35);
}
#back-to-top:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
#back-to-top svg { transition: transform 0.2s ease; }
#back-to-top:hover svg { transform: translateY(-2px); }

/* ── Dividers & textures ─────────────────────────────────── */
.section-divider {
  display: block;
  width: 100%;
  height: 60px;
  line-height: 0;
  pointer-events: none;
}
.section-divider svg { width: 100%; height: 100%; }

.gradient-text {
  background: linear-gradient(90deg, var(--gold), #f0d878 45%, var(--gold-soft) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline-block;
}

.glass {
  background: rgba(255, 255, 255, 0.62);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.4);
}

/* reduced-motion: freeze new PR1 animations */
@media (prefers-reduced-motion: reduce) {
  .hero__shape,
  .hero--v3.animate-gradient {
    animation: none !important;
  }
}

/* ============================================================
   T&C Global — web-landing-v3 PR2: Dark Mode
   Toggle via <html class="dark"> (Tailwind darkMode: class)
   Persistencia: localStorage 'tc-theme'
   ============================================================ */

/* ── Theme toggle button ──────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 6px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.theme-toggle:hover {
  border-color: var(--gold);
  color: var(--gold);
  transform: translateY(-1px);
}
.theme-toggle__icon { display: block; }
.theme-toggle__moon { display: none; }
html.dark .theme-toggle__sun { display: none; }
html.dark .theme-toggle__moon { display: block; }

/* ── Dark tokens: surfaces, text, borders ─────────────────── */
html.dark {
  --bg: #0f1626;
  --bg-soft: #131c30;
  --line: #24314f;
  --ink: #dbe3ef;
  --muted: #8fa0b8;
  color-scheme: dark;
}
html.dark body {
  background: var(--bg);
  color: var(--ink);
}

/* ── Dark overrides: web.css legacy components ─────────────── */
html.dark .section--soft { background: var(--bg-soft); }
html.dark .section h2 { color: #e8edf5; }
html.dark .section__lead { color: var(--muted); }

html.dark .feature {
  background: var(--bg-soft);
  border-color: var(--line);
}
html.dark .feature h3 { color: #e8edf5; }
html.dark .feature p { color: var(--muted); }

html.dark .v-card {
  background: var(--bg-soft);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
html.dark .v-card:hover { border-color: var(--gold); }
html.dark .v-card h3 { color: #e8edf5; }
html.dark .v-card p { color: var(--muted); }
html.dark .v-card__more { color: var(--gold); }

html.dark .glass {
  background: rgba(19, 28, 48, 0.72);
  border-color: rgba(255, 255, 255, 0.12);
}

/* ── Dark overrides: Tailwind utility classes used in markup ── */
html.dark .bg-white { background-color: var(--bg-soft); }
html.dark .text-navy { color: #e8edf5; }
html.dark .text-ink { color: var(--ink); }
html.dark .text-muted { color: var(--muted); }
html.dark .text-slate-800 { color: #dbe3ef; }
html.dark .border-gray-100 { border-color: var(--line); }
html.dark .border-slate-300 { border-color: var(--line); }
html.dark .hover\:border-gray-200:hover { border-color: var(--line); }

/* ── Dark overrides: contact form ──────────────────────────── */
html.dark .contact-form-box {
  background: var(--bg-soft);
  border-color: var(--line);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}
html.dark .contact-form label { color: #c6d2e4; }
html.dark .contact-form input,
html.dark .contact-form select,
html.dark .contact-form textarea {
  background: #0f1626;
  border-color: var(--line);
  color: var(--ink);
}
html.dark .contact-form input::placeholder,
html.dark .contact-form textarea::placeholder { color: #5c6b82; }

/* ── Dark overrides: vertical page inline-style surfaces ───── */
html.dark .indicators-strip { background: var(--bg-soft); }

/* ── Dark overrides: FAQ details ───────────────────────────── */
html.dark details {
  background: var(--bg-soft);
}
html.dark summary { color: #e8edf5; }
html.dark details .border-t { border-color: var(--line); }

/* ── Header actions group (PR2): toggle + hamburger aligned right ── */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

/* ============================================================
   T&C Global — web-landing-v3 PR3: Interactions
   (logo marquee, card tilt + gradient borders, animated counters)
   ============================================================ */

/* ── Logo marquee (infinite scroll) ───────────────────────── */
.marquee {
  overflow: hidden;
  padding: 6px 0;
}
.marquee__slider {
  display: flex;
  width: max-content;
  animation: marquee-scroll 32s linear infinite;
  will-change: transform;
}
.marquee:hover .marquee__slider,
.marquee:focus-within .marquee__slider {
  animation-play-state: paused;
}
.marquee__track {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 8px 14px;
}
.marquee__item {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 20px;
  border-radius: 14px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  text-decoration: none;
  transition: transform 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}
.marquee__item:hover {
  transform: translateY(-4px) scale(1.05);
  border-color: var(--gold);
  box-shadow: 0 10px 24px rgba(212, 175, 55, 0.22);
}
.marquee__item svg { width: 52px; height: 52px; display: block; }

@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Card micro-interactions: 3D tilt + gradient border ───── */
.tilt-card {
  transition: transform 0.18s ease-out, box-shadow 0.25s ease, border-color 0.25s ease;
  transform-style: preserve-3d;
  will-change: transform;
}
.tilt-card.is-tilting {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 18px 40px rgba(27, 42, 74, 0.16), 0 0 0 1px rgba(212, 175, 55, 0.25);
}
html.dark .tilt-card.is-tilting {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(212, 175, 55, 0.35);
}

/* Gradient gold border on service cards (hover) */
.gradient-border {
  position: relative;
}
.gradient-border::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, var(--gold), rgba(212, 175, 55, 0.25), var(--gold));
  background-size: 200% 200%;
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  animation: gradient-border-pan 3s ease infinite;
}
.gradient-border:hover::before {
  opacity: 1;
}
@keyframes gradient-border-pan {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* ── Testimonios: quote icon (apóstrofe) ── */
.t-card__quote {
  width: 1.5rem;
  height: 1.5rem;
  color: var(--gold);
  display: block;
  margin-bottom: 0.5rem;
}

/* ── Animated counters (initial value shown until JS animates) ── */
.counter-value {
  font-variant-numeric: tabular-nums;
}

/* ── web-landing-v4 PR2 — stats band ── */
.stats-band {
  background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy) 55%, var(--navy-light) 100%);
  color: #fff;
  padding: 44px 24px;
  position: relative;
  overflow: hidden;
}
.stats-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 70% at 85% 20%, rgba(212,175,55,0.14), transparent 60%);
  pointer-events: none;
}
.stats-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 26px;
  max-width: 1140px;
  margin: 0 auto;
  text-align: center;
}
.stat__value {
  font-size: clamp(34px, 5vw, 46px);
  font-weight: 800;
  line-height: 1;
  color: var(--gold);
  font-variant-numeric: tabular-nums;
}
.stat__label {
  display: block;
  margin-top: 10px;
  font-size: 13px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.72);
}
html.dark .stats-band { background: linear-gradient(135deg, #0d1526 0%, #101c33 55%, #16243f 100%); }

/* ── web-landing-v4 PR2 — v-card arrow reveal ── */


/* ── PR3 reduced-motion guards ─────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .hero__glow { animation: none; opacity: 0.35; }
  .hero__scroll .chevron { animation: none; }
  .hero__kicker .kicker-dot { animation: none; box-shadow: none; }
  .btn--gold::after, .btn--ghost::after { display: none; }
  .feature { transform: none !important; }
  .contact-card { transform: none !important; }
  .page-hero .page-hero__glow { animation: none; opacity: 0.25; }
  .t-card { transform: none !important; }
  .work-card:hover .work-card__bg { transform: none; }
  .work-card__arrow { display: none; }
  .faq-item__body { animation: none; }
  .main-nav a::after { transition: none; }
  .proceso-num { box-shadow: none; }
  .feature__icon { box-shadow: none; }
  .stat__value { animation: none; }
  .marquee__slider {
    animation: none;
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
  }
  .marquee__track--clone { display: none; }
  .tilt-card { transform: none !important; }
  .gradient-border::before { animation: none; opacity: 0; }
}

/* ============================================================
   SPLASH — main logo + 6 verticales que se "abren" al click
   (queda como frame principal: header + splash + footer)
   ============================================================ */

/* The splash itself */
.hero-splash {
  min-height: calc(100vh - 80px);
  min-height: calc(100dvh - 80px);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 30% 20%, rgba(212, 175, 55, 0.18) 0%, transparent 45%),
    radial-gradient(ellipse at 75% 80%, rgba(212, 175, 55, 0.10) 0%, transparent 50%),
    linear-gradient(135deg, #14203a 0%, #1b2a4a 50%, #0c1426 100%);
}

.hero-splash::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212, 175, 55, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 175, 55, 0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

/* Inner container: logo + icons */
.hero-splash__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(2rem, 5vw, 3rem);
  padding: 2rem 1.5rem;
  max-width: 1100px;
  width: 100%;
}

/* Main logo (clickable trigger) */
.hero-splash__btn {
  background: transparent;
  border: none;
  cursor: pointer;
  padding: clamp(1rem, 2.5vw, 2rem);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  font-family: inherit;
  -webkit-tap-highlight-color: transparent;
}

.hero-splash__btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 8px;
  border-radius: 12px;
}

.hero-splash__logo {
  width: clamp(160px, 24vw, 280px);
  height: auto;
  filter: drop-shadow(0 12px 40px rgba(212, 175, 55, 0.25))
          drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: hero-splash-float 5s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.hero-splash__btn:hover .hero-splash__logo,
.hero-splash__btn:focus-visible .hero-splash__logo {
  transform: scale(1.06);
}

.hero-splash__hint {
  color: rgba(255, 255, 255, 0.75);
  font-size: 11px;
  letter-spacing: 3.5px;
  text-transform: uppercase;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  animation: hero-splash-pulse 2.4s ease-in-out infinite;
}

.hero-splash__chevron {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  margin-top: -4px;
}

/* 6 vertical icons — initially hidden, reveal on click (stay visible) */
.hero-splash__icons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.25rem, 3vw, 2.25rem);
  width: 100%;
  max-width: 900px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(30px) scale(0.9);
  transition: opacity 0.5s ease, transform 0.5s ease, visibility 0s linear 0.5s;
}

.hero-splash__icons.is-revealed {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  transition: opacity 0.4s ease, transform 0.4s ease, visibility 0s linear 0s;
}

.hero-splash__icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  padding: 1.75rem 1.25rem 1.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  text-decoration: none;
  color: #fff;
  transition: transform 0.25s ease,
              background 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  opacity: 0;
  transform: translateY(20px);
}

.hero-splash__icons.is-revealed .hero-splash__icon {
  opacity: 1;
  transform: translateY(0);
  /* Stagger using CSS custom property --delay set inline by PHP */
  transition-delay: var(--delay, 0ms);
}

.hero-splash__icon:hover {
  transform: translateY(-8px);
  background: rgba(255, 255, 255, 0.08);
  border-color: var(--accent);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.5),
              0 0 0 1px var(--accent);
}

.hero-splash__icon:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}

.hero-splash__icon img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.4));
}

.hero-splash__icon-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
  text-align: center;
  color: rgba(255, 255, 255, 0.92);
}

@keyframes hero-splash-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-14px); }
}

@keyframes hero-splash-pulse {
  0%, 100% { opacity: 0.45; }
  50%      { opacity: 1; }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-splash,
  .hero-splash__logo,
  .hero-splash__hint,
  .hero-splash__icons,
  .hero-splash__icon {
    transition: none !important;
    animation: none !important;
  }
  .hero-splash__btn:hover .hero-splash__logo,
  .hero-splash__btn:focus-visible .hero-splash__logo {
    transform: none;
  }
  .hero-splash__icons.is-revealed .hero-splash__icon {
    transition-delay: 0ms !important;
  }
}

/* ============================================================
   VERTICAL PAGE — visual redesign
   ============================================================ */

/* Page hero refinements */
.page-hero__pattern {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}







/* Stats grid */







/* Generic section */





/* Carruseles (scroll-snap horizontal) */








@media (max-width: 900px) {
}
@media (max-width: 600px) {
}




/* Servicios: card compact (icon + title only, desc expandible on hover) */

/* Botón de acceso al sistema interno (esquina inferior izquierda del splash) */
.hero-splash__system {
  position: absolute;
  bottom: clamp(1rem, 3vw, 1.75rem);
  left: clamp(1rem, 3vw, 1.75rem);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 1rem 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.85);
  text-decoration: none;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
.hero-splash__system:hover,
.hero-splash__system:focus-visible {
  background: rgba(212, 175, 55, 0.18);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-1px);
  outline: none;
}
.hero-splash__system:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.hero-splash__system svg {
  flex-shrink: 0;
  opacity: 0.85;
}

/* Progress bar para autoplay */

/* Tabs */



@keyframes v-tab-fade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Showcase: agregamos icon */

@media (prefers-reduced-motion: reduce) {
}

/* Highlights */

/* Details collapsibles */

/* Beneficios grid */

/* Process steps */

/* Showcase (carousel más grande) */


@media (max-width: 900px) {
}
@media (max-width: 600px) {
}

/* FAQ collapsibles */

/* CTA */

@media (prefers-reduced-motion: reduce) {
  .v-carousel__track,
  .v-stat-card,
  .v-benefit,
  .v-process__step,
  .v-showcase__card,
  .v-stat-card:hover,
  .v-benefit:hover,
  .v-process__step:hover,
  .v-carousel__card:hover,
}


/* ============================================================
   UNIFIED VERTICAL PAGE STYLES
   Reemplaza el sistema v-* anterior con un sistema unificado.
   ============================================================ */

.page-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0c1426 0%, #1b2a4a 50%, var(--accent-soft, rgba(212,175,55,0.2)) 100%);
  padding: 0;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.06) 0%, transparent 40%), radial-gradient(circle at 80% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
  pointer-events: none;
}

.page-hero__inner {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
  padding: clamp(3rem, 6vw, 5rem) 0;
}

.page-hero__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  height: 120px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: transform 0.3s ease;
}

.page-hero__icon:hover { transform: scale(1.05); }

.page-hero__logo-img {
  width: 100px;
  height: auto;
  border-radius: 12px;
}

.page-hero__title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.5px;
  margin: 0;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.4);
}

.page-hero__tagline {
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  color: rgba(219, 230, 247, 0.9);
  max-width: 36rem;
  line-height: 1.55;
  margin: 0;
}

.page-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 0.5rem;
}

.indicators-strip {
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(2rem, 4vw, 3rem) 0;
}

html.dark .indicators-strip { background: var(--bg-soft); }

.section { padding: clamp(3rem, 6vw, 5rem) 0; }
.section--soft { background: #fafbfc; }
html.dark .section--soft { background: var(--bg-soft); }
.section--dark { background: linear-gradient(135deg, #0c1426 0%, #1b2a4a 100%); color: #fff; }

.section__header { margin-bottom: 2.5rem; }
.section__title { display: flex; align-items: center; gap: 0.75rem; font-size: clamp(1.5rem, 3vw, 2.25rem); font-weight: 700; color: var(--navy); margin: 0 0 0.5rem; letter-spacing: -0.3px; }
.section__title--light { color: #fff; }
.section__lead { font-size: 1.05rem; color: var(--muted); max-width: 38rem; line-height: 1.55; margin: 0; }
.section__lead--light { color: rgba(219, 230, 247, 0.85); }
html.dark .section__title { color: #e8edf5; }
html.dark .section__lead { color: var(--muted); }

.section__bar { display: inline-block; width: 5px; height: 32px; border-radius: 4px; flex-shrink: 0; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 1.5rem; }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }

.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1.75rem; box-shadow: 0 4px 12px rgba(27, 42, 74, 0.06); transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(27, 42, 74, 0.12); border-color: var(--gold); }
html.dark .card { background: var(--bg-soft); border-color: var(--line); }
.card--highlight { border-color: var(--gold); background: linear-gradient(135deg, rgba(212, 175, 55, 0.05) 0%, transparent 100%); }
html.dark .card--highlight { background: linear-gradient(135deg, rgba(212, 175, 55, 0.1) 0%, transparent 100%); }
.card--service { display: flex; flex-direction: column; gap: 0.75rem; }
.card__title { font-size: 1.15rem; font-weight: 700; color: var(--navy); margin: 0; }
html.dark .card__title { color: #e8edf5; }
.card__text { font-size: 0.95rem; color: var(--muted); line-height: 1.6; margin: 0; }
html.dark .card__text { color: var(--muted); }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 1.5rem; text-align: center; }
.stat-card { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.5rem 1rem; background: #fff; border-radius: 14px; border: 1px solid var(--line); transition: transform 0.25s ease, border-color 0.25s ease; }
.stat-card:hover { transform: translateY(-3px); border-color: var(--gold); }
html.dark .stat-card { background: var(--bg-soft); border-color: var(--line); }
.stat-card__value { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat-card__label { font-size: 0.8rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; text-align: center; }
html.dark .stat-card__label { color: var(--muted); }

.benefits-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.benefit-item { display: flex; align-items: flex-start; gap: 0.75rem; padding: 1rem 1.25rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: transform 0.2s ease, border-color 0.2s ease; }
.benefit-item:hover { transform: translateY(-2px); border-color: var(--accent, var(--gold)); }
html.dark .benefit-item { background: var(--bg-soft); border-color: var(--line); }
.benefit-item__check { flex-shrink: 0; width: 28px; height: 28px; border-radius: 999px; background: var(--accent, var(--gold)); color: #fff; display: flex; align-items: center; justify-content: center; }
.benefit-item__text { font-size: 0.95rem; font-weight: 500; color: var(--ink); line-height: 1.45; align-self: center; }
html.dark .benefit-item__text { color: var(--ink); }

.faq-list { display: flex; flex-direction: column; gap: 0.75rem; max-width: 800px; }
.disclosure { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: border-color 0.2s ease; }
.disclosure[open] { border-color: var(--gold); }
html.dark .disclosure { background: var(--bg-soft); border-color: var(--line); }
html.dark .disclosure[open] { border-color: var(--gold); }
.disclosure__summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.5rem; cursor: pointer; list-style: none; user-select: none; font-weight: 600; color: var(--navy); transition: color 0.2s ease; }
.disclosure__summary::-webkit-details-marker { display: none; }
.disclosure__summary:hover { color: var(--gold); }
html.dark .disclosure__summary { color: #e8edf5; }
html.dark .disclosure__summary:hover { color: var(--gold); }
.disclosure__question { flex: 1; font-size: 0.98rem; }
.disclosure__chevron { flex-shrink: 0; color: var(--muted); transition: transform 0.3s ease; }
.disclosure[open] .disclosure__chevron { transform: rotate(180deg); }
.disclosure__answer { padding: 0 1.5rem 1.25rem; border-top: 1px solid var(--line); color: var(--ink); font-size: 0.95rem; line-height: 1.6; }
html.dark .disclosure__answer { color: var(--ink); border-color: var(--line); }
.disclosure__answer p { margin: 1rem 0 0; }

.cta-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.cta-card { display: flex; flex-direction: column; gap: 0.4rem; padding: 1.25rem 1.5rem; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 14px; color: #fff; text-decoration: none; transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease; }
.cta-card:hover { background: rgba(255, 255, 255, 0.12); border-color: rgba(212, 175, 55, 0.5); transform: translateY(-2px); }
.cta-card__label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 1.4px; color: rgba(219, 230, 247, 0.6); }
.cta-card__value { font-size: 1.05rem; font-weight: 600; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.85rem 1.75rem; border-radius: 12px; font-weight: 600; font-size: 0.95rem; text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.btn:hover { transform: translateY(-2px); }
.btn--gold { background: linear-gradient(135deg, #d4af37, #b8912f); color: #1b2a4a; box-shadow: 0 8px 24px -8px rgba(212, 175, 55, 0.5); }
.btn--gold:hover { box-shadow: 0 12px 28px -8px rgba(212, 175, 55, 0.6); }
.btn--ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255, 255, 255, 0.18); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: rgba(255, 255, 255, 0.3); }

.container { max-width: 1140px; margin: 0 auto; }
.container-narrow { max-width: 800px; margin: 0 auto; }

@media (max-width: 768px) {
  .card-grid, .card-grid--3 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .benefits-list { grid-template-columns: 1fr; }
  .cta-cards { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .card:hover, .stat-card:hover, .benefit-item:hover, .cta-card:hover, .btn:hover, .page-hero__icon:hover { transform: none !important; }
  .disclosure__chevron, .disclosure[open] .disclosure__chevron { transition: none; transform: none; }
  [data-animate] { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ════════════════════════════════════════════════════════════════════
   3-COLUMN LAYOUT (landing index.php)
   20% ads | 60% content | 20% ads
   Ads hidden on mobile (<=768px).
   ════════════════════════════════════════════════════════════════════ */

.layout-3col {
  display: grid;
  grid-template-columns: 1fr 3fr 1fr;
  gap: 1.5rem;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 1rem;
  align-items: start;
}

.layout-3col__main {
  min-width: 0; /* prevent grid blowout from wide children */
}

.layout-3col__ad {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  position: sticky;
  top: 96px; /* below sticky header */
  max-height: calc(100vh - 120px);
  overflow-y: auto;
}

.ad-slot {
  background: linear-gradient(135deg, #f5f1e8 0%, #ede4d0 100%);
  border: 2px dashed #b8912f;
  border-radius: 8px;
  padding: 1.25rem 1rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ad-slot--secondary {
  background: linear-gradient(135deg, #f0f4f8 0%, #e0e8f0 100%);
  border-color: #4a6b8a;
}

.ad-slot__label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: #8a6d2c;
  font-weight: 700;
}

.ad-slot--secondary .ad-slot__label {
  color: #2c4a6b;
}

.ad-slot__size {
  font-size: 0.75rem;
  color: #5a4a2a;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
}

.ad-slot--secondary .ad-slot__size {
  color: #3a5a7a;
}

.ad-slot__brand {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1b2a4a;
  margin-top: 0.25rem;
}

.ad-slot__copy {
  font-size: 0.85rem;
  color: #22303f;
  line-height: 1.4;
  margin: 0.25rem 0 0.5rem;
}

.ad-slot__cta {
  display: inline-block;
  background: #d4af37;
  color: #1b2a4a;
  padding: 0.5rem 1rem;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.85rem;
  transition: background 0.2s;
}

.ad-slot__cta:hover {
  background: #b8912f;
}

@media (max-width: 1024px) {
  .layout-3col {
    grid-template-columns: 200px 1fr 200px;
    gap: 1rem;
  }
}

@media (max-width: 768px) {
  .layout-3col {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 0;
  }
  .layout-3col__ad {
    display: none;
  }
}
