/* ==========================================================================
   Grupo La Vita — hoja de estilos
   Colores y tipografía de la marca La Vita (manual interno 2026)
   ========================================================================== */

@font-face {
  font-family: "Outfit";
  src: url("../fonts/outfit-latin.woff2") format("woff2");
  font-weight: 300 700;
  font-display: swap;
}

:root {
  --blue: #0018A8;
  --blue-dk: #000D6B;
  --blue-mid: #0020CC;
  --mint: #9ADCC6;
  --mint-dk: #5CC4A8;
  --text: #0A0F30;
  --muted: #4A4F7A;
  --off: #F5F6FC;
  --line: #E3E5F2;
  --white: #FFFFFF;

  --radius: 18px;
  --wrap: 1180px;
  --shadow: 0 10px 30px rgba(0, 13, 107, .08);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 84px; }

body {
  margin: 0;
  font-family: "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.12; margin: 0; font-weight: 600; letter-spacing: -.02em; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 10px 16px; border-radius: 8px; }

:focus-visible { outline: 3px solid var(--mint-dk); outline-offset: 3px; border-radius: 6px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55em;
  padding: .85em 1.4em;
  border-radius: 999px;
  font: inherit; font-weight: 600; font-size: .95rem;
  text-decoration: none;
  border: 2px solid transparent;
  transition: background-color .2s, color .2s, border-color .2s, transform .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 1.1em; height: 1.1em; flex: none; }
.btn--mint { background: var(--mint); color: var(--blue-dk); }
.btn--mint:hover { background: var(--white); }
.btn--ghost { border-color: rgba(255,255,255,.55); color: var(--white); }
.btn--ghost:hover { border-color: var(--white); background: rgba(255,255,255,.08); }
.btn--blue { background: var(--blue); color: var(--white); }
.btn--blue:hover { background: var(--blue-dk); }
.btn--outline { border-color: var(--blue); color: var(--blue); }
.btn--outline:hover { background: var(--blue); color: var(--white); }

/* ---------- Cabecera ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__in { display: flex; align-items: center; gap: 28px; height: 72px; }
.header__logo img { height: 26px; width: auto; }
.nav { display: flex; gap: 26px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s; }
.nav a:hover { color: var(--blue); }
.header .btn { padding: .65em 1.15em; }
.menu-toggle { display: none; margin-left: auto; background: none; border: 0; padding: 8px; cursor: pointer; color: var(--blue); }
.menu-toggle svg { width: 28px; height: 28px; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: var(--blue);
  color: var(--white);
  padding: 76px 0 96px;
}
.hero::after {
  /* símbolo "V" de la marca como elemento gráfico */
  content: ""; position: absolute; right: -10%; bottom: -22%;
  width: 46%; aspect-ratio: 1;
  background: url("../img/simbolo-v.svg") no-repeat center / contain;
  opacity: .16; pointer-events: none;
}
.hero__in { position: relative; z-index: 1; max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: .8rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--mint);
}
.hero h1 { font-size: clamp(2.6rem, 6vw, 4.5rem); margin: 16px 0 20px; }
.hero h1 span { color: var(--mint); }
.hero p { font-size: clamp(1.08rem, 1.6vw, 1.3rem); color: rgba(255,255,255,.86); max-width: 640px; font-weight: 300; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 38px; }

/* ---------- Cifras ---------- */
.stats { background: var(--blue-dk); color: var(--white); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 38px 24px; border-left: 1px solid rgba(255,255,255,.12); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-size: clamp(2rem, 3.6vw, 2.9rem); font-weight: 600; letter-spacing: -.02em; line-height: 1.1; }
.stat span { display: block; margin-top: 8px; font-size: .92rem; color: var(--mint); line-height: 1.35; }

/* ---------- Secciones ---------- */
.section { padding: 110px 0; }
.section--off { background: var(--off); }
.section__head { max-width: 720px; margin-bottom: 56px; }
.section__head h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.section__head p { margin-top: 18px; color: var(--muted); font-size: 1.1rem; }
.section .eyebrow { color: var(--blue-mid); }

/* ---------- El grupo ---------- */
.about { display: grid; grid-template-columns: 1.15fr .85fr; gap: 64px; align-items: start; }
.about__text p { color: var(--muted); font-size: 1.1rem; }
.about__text p + p { margin-top: 18px; }
.about__text strong { color: var(--text); font-weight: 600; }
.about__card {
  background: var(--blue); color: var(--white);
  border-radius: var(--radius); padding: 40px;
  box-shadow: var(--shadow);
}
.about__card .big { font-size: 4.2rem; font-weight: 600; line-height: 1; color: var(--mint); }
.about__card h3 { font-size: 1.45rem; margin: 14px 0 22px; font-weight: 500; }
.about__card ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.about__card li { display: flex; gap: 12px; align-items: flex-start; font-size: .98rem; color: rgba(255,255,255,.88); }
.about__card li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 9px; border-radius: 50%; background: var(--mint); }

/* ---------- Verticales ---------- */
.verticals { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.vertical {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px 30px 34px;
  display: flex; flex-direction: column;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.vertical:hover { border-color: var(--mint); box-shadow: var(--shadow); transform: translateY(-3px); }
.vertical__tag { font-size: .78rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #2A8F75; }
.vertical h3 { font-size: 1.5rem; margin: 10px 0 12px; color: var(--blue); }
.vertical p { color: var(--muted); font-size: .98rem; }
.vertical ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .93rem; }
.vertical li { padding-left: 20px; position: relative; }
.vertical li::before { content: ""; position: absolute; left: 0; top: .62em; width: 10px; height: 2px; background: var(--mint-dk); }
.vertical--wide { grid-column: span 2; }

.formats { margin-top: 48px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.formats p { margin-right: 8px; font-weight: 600; color: var(--blue); }
.chip { display: inline-block; padding: 7px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .9rem; color: var(--muted); }

/* ---------- Trayectoria ---------- */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 0; right: 0; top: 11px; height: 2px; background: var(--line); }
.timeline li { position: relative; padding: 40px 18px 0 0; }
.timeline li::before { content: ""; position: absolute; top: 3px; left: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--white); border: 4px solid var(--mint-dk); }
.timeline li:last-child::before { background: var(--blue); border-color: var(--blue); }
.timeline strong { display: block; font-size: 1.6rem; color: var(--blue); font-weight: 600; }
.timeline span { display: block; margin-top: 6px; color: var(--muted); font-size: .93rem; line-height: 1.45; }

/* ---------- Clientes ---------- */
.clients { background: var(--blue); color: var(--white); padding: 96px 0; }
.clients .section__head h2 { color: var(--white); }
.clients .section__head p { color: rgba(255,255,255,.75); }
.clients .eyebrow { color: var(--mint); }
.logo-group + .logo-group { margin-top: 64px; }
.logo-group__head { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; padding-bottom: 18px; margin-bottom: 8px; border-bottom: 1px solid rgba(255,255,255,.18); }
.logo-group__head h3 { font-size: 1.5rem; color: var(--mint); }
.logo-group__head p { color: rgba(255,255,255,.72); font-size: .98rem; }
.logo-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.logo-grid li { height: 112px; display: grid; place-items: center; padding: 16px 22px; border-bottom: 1px solid rgba(255,255,255,.08); }
.logo-grid img { max-width: 100%; max-height: 52px; width: auto; height: auto; opacity: .92; transition: opacity .2s, transform .2s; }
.logo-grid li:hover img { opacity: 1; transform: scale(1.05); }

/* ---------- Equipo y valores ---------- */
.team-layout { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.team-intro h2 { font-size: clamp(2rem, 4vw, 3rem); margin-top: 12px; }
.team-intro > p { margin-top: 20px; color: var(--muted); font-size: 1.1rem; }
.team-facts { margin-top: 36px; display: flex; gap: 36px; flex-wrap: wrap; }
.team-facts strong { display: block; font-size: 1.9rem; font-weight: 600; color: var(--blue); line-height: 1.1; }
.team-facts span { display: block; margin-top: 4px; font-size: .85rem; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }

.team-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.member {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0 28px 30px; text-align: center;
  transition: box-shadow .2s, transform .2s;
}
.member:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.member::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 104px;
  background: var(--blue) url("../img/simbolo-v.svg") no-repeat right -18px top -10px / 120px;
}
.member__photo { position: relative; width: 136px; height: 136px; margin: 36px auto 18px; border-radius: 50%; background: var(--white); box-shadow: 0 8px 24px rgba(0, 13, 107, .18); }
.member__photo img { width: 100%; height: 100%; border-radius: 50%; }
.member__role { display: inline-block; padding: 5px 12px; border-radius: 999px; background: var(--off); color: var(--blue-mid); font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.member h3 { margin-top: 14px; font-size: 1.3rem; }
.member p { margin-top: 10px; color: var(--muted); font-size: .95rem; }
.member a { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--blue); font-weight: 600; font-size: .9rem; text-decoration: none; }
.member a svg { width: 16px; height: 16px; }
.member a:hover { text-decoration: underline; }

.values-band { background: var(--blue-dk); color: var(--white); padding: 96px 0; }
.values-band .eyebrow { color: var(--mint); }
.values-band .section__head { margin-bottom: 44px; }
.values { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.value { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 26px 22px 28px; transition: background-color .2s; }
.value:hover { background: rgba(255,255,255,.1); }
.value__n { font-size: .85rem; font-weight: 600; color: var(--mint); letter-spacing: .1em; }
.value h3 { margin-top: 18px; font-size: 1.2rem; }
.value p { margin-top: 8px; color: rgba(255,255,255,.72); font-size: .93rem; }

/* ---------- Contacto ---------- */
.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.contact__main { background: var(--blue); color: var(--white); border-radius: var(--radius); padding: 48px; }
.contact__main h2 { font-size: clamp(2rem, 3.6vw, 2.8rem); margin: 12px 0 16px; }
.contact__main .eyebrow { color: var(--mint); }
.contact__main > p { color: rgba(255,255,255,.82); }
.contact__list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 14px; }
.contact__list a, .contact__list div {
  display: flex; align-items: center; gap: 16px;
  padding: 16px 18px; border-radius: 14px;
  background: rgba(255,255,255,.08);
  text-decoration: none; transition: background-color .2s;
}
.contact__list a:hover { background: rgba(255,255,255,.16); }
.contact__list svg { width: 22px; height: 22px; flex: none; color: var(--mint); }
.contact__list small { display: block; color: var(--mint); font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.contact__list b { font-weight: 500; overflow-wrap: anywhere; }
.contact__list span { min-width: 0; }

.contact__side { display: grid; gap: 28px; align-content: start; }
.b2b {
  border-radius: var(--radius); padding: 40px;
  background: var(--mint); color: var(--blue-dk);
}
.b2b h3 { font-size: 1.7rem; margin: 10px 0 12px; }
.b2b .eyebrow { color: var(--blue); }
.b2b p { margin-bottom: 24px; }
.offices { border: 1px solid var(--line); border-radius: var(--radius); padding: 36px 40px; }
.offices h3 { font-size: 1.1rem; color: var(--blue); }
.offices p { color: var(--muted); margin-top: 4px; font-size: .97rem; }
.offices div + div { margin-top: 20px; }

/* ---------- Pie ---------- */
.footer { background: var(--blue-dk); color: rgba(255,255,255,.75); padding: 72px 0 36px; font-size: .93rem; }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 48px; }
.footer__brand img { height: 28px; width: auto; }
.footer__brand p { margin-top: 18px; max-width: 360px; }
.footer h4 { margin: 0 0 14px; color: var(--white); font-size: .8rem; letter-spacing: .14em; text-transform: uppercase; font-weight: 600; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer a { text-decoration: none; }
.footer a:hover { color: var(--mint); }
.social { display: flex; gap: 10px; margin-top: 22px; }
.social a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.08); transition: background-color .2s; }
.social a:hover { background: var(--mint); color: var(--blue-dk); }
.social svg { width: 18px; height: 18px; }

.funding { margin-top: 56px; padding: 28px; background: var(--white); border-radius: 14px; color: var(--text); display: grid; grid-template-columns: 1fr auto; gap: 28px; align-items: center; font-size: .85rem; }
.funding p + p { margin-top: 4px; }
.funding__logos { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.funding__logos img { height: 44px; width: auto; }

.footer__bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.12); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; }

/* ---------- Páginas legales ---------- */
.legal { padding: 80px 0 110px; }
.legal .wrap { max-width: 860px; }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); color: var(--blue); margin-bottom: 32px; }
.legal h2 { font-size: 1.25rem; margin: 36px 0 12px; color: var(--blue); }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; }
.legal a { color: var(--blue); }
.back { display: inline-block; margin-bottom: 28px; color: var(--blue); font-weight: 600; text-decoration: none; }

/* ---------- Animación de entrada (respeta "reducir movimiento") ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .verticals { grid-template-columns: repeat(2, 1fr); }
  .vertical--wide { grid-column: span 2; }
  .timeline { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .timeline::before { display: none; }
  .values { grid-template-columns: repeat(3, 1fr); row-gap: 16px; }
}

/* Menú desplegable en pantallas estrechas */
@media (max-width: 900px) {
  .nav, .header .btn--header { display: none; }
  .menu-toggle { display: block; }
  .header.is-open .nav {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: 8px 24px 20px;
  }
  .header.is-open .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .header.is-open .nav .nav__b2b { display: block; color: var(--blue); font-weight: 600; border-bottom: 0; }
}


@media (max-width: 900px) {
  .about, .contact, .team-layout { grid-template-columns: 1fr; gap: 32px; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-left: 0; padding-left: 0; border-top: 1px solid rgba(255,255,255,.12); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: span 2; }
  .funding { grid-template-columns: 1fr; }
}


@media (max-width: 640px) {
  body { font-size: 16px; }
  .section { padding: 76px 0; }
  .hero { padding: 76px 0 84px; }
  .hero::after { width: 90%; right: -30%; bottom: -10%; }
  .hero__ctas .btn { width: 100%; justify-content: center; }
  .verticals, .team-cards { grid-template-columns: 1fr; }
  .vertical--wide { grid-column: auto; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .values { grid-template-columns: 1fr 1fr; gap: 12px; }
  .value { min-width: 0; padding: 20px 16px 22px; }
  .value h3 { font-size: 1.02rem; hyphens: auto; }
  .value:last-child { grid-column: span 2; }
  .values-band { padding: 72px 0; }
  .contact__main, .b2b, .offices { padding: 30px 24px; }
  .footer__top { grid-template-columns: 1fr; }
  .footer__brand { grid-column: auto; }
  .logo-grid { grid-template-columns: repeat(2, 1fr); }
  .logo-grid li { height: 92px; padding: 12px 14px; }
  .logo-grid img { max-height: 42px; }
}

/* ==========================================================================
   Accesos rápidos (portada)
   ========================================================================== */
.access-wrap { position: relative; z-index: 1; margin-top: 44px; }
.access { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.access__item {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  padding: 22px 22px 24px; border-radius: 16px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.18);
  color: var(--white); text-decoration: none;
  transition: background-color .2s, border-color .2s, transform .2s;
}
.access__item:hover { background: rgba(255,255,255,.14); border-color: var(--mint); transform: translateY(-3px); }
.access__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--mint); color: var(--blue-dk); margin-bottom: 10px; }
.access__icon svg { width: 22px; height: 22px; }
.access__item small { font-size: .74rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--mint); }
.access__item strong { font-size: 1.12rem; font-weight: 600; line-height: 1.25; }
.access__desc { font-size: .9rem; color: rgba(255,255,255,.75); line-height: 1.4; }
.access__arrow { position: absolute; top: 22px; right: 22px; width: 20px; height: 20px; color: rgba(255,255,255,.6); transition: transform .2s, color .2s; }
.access__item:hover .access__arrow { color: var(--mint); transform: translate(2px, -2px); }
.access__item--main { background: var(--mint); border-color: var(--mint); color: var(--blue-dk); }
.access__item--main:hover { background: var(--white); border-color: var(--white); }
.access__item--main .access__icon { background: var(--blue); color: var(--white); }
.access__item--main small { color: var(--blue); }
.access__item--main .access__desc { color: rgba(0,13,107,.75); }
.access__item--main .access__arrow, .access__item--main:hover .access__arrow { color: var(--blue); }

/* ==========================================================================
   Páginas interiores (nuevos clientes, proveedores, gracias)
   ========================================================================== */
.nav a[aria-current="page"] { color: var(--blue); font-weight: 600; }
.page-hero { position: relative; overflow: hidden; background: var(--blue); color: var(--white); padding: 84px 0 92px; }
.page-hero::after {
  content: ""; position: absolute; right: -8%; bottom: -40%; width: 38%; aspect-ratio: 1;
  background: url("../img/simbolo-v.svg") no-repeat center / contain; opacity: .14; pointer-events: none;
}
.page-hero .wrap { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 16px 0 20px; max-width: 820px; }
.page-hero h1 span { color: var(--mint); }
.page-hero p { font-size: clamp(1.05rem, 1.5vw, 1.22rem); color: rgba(255,255,255,.86); max-width: 680px; font-weight: 300; }

.page-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: start; }
.page-aside { position: sticky; top: 104px; }
.page-aside h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); margin-top: 12px; }
.page-aside > p { margin-top: 14px; color: var(--muted); }

.steps { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 18px; counter-reset: paso; }
.steps li { position: relative; padding-left: 52px; counter-increment: paso; }
.steps li::before {
  content: counter(paso); position: absolute; left: 0; top: 0;
  width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: var(--white); font-weight: 600; font-size: .95rem;
}
.steps strong { display: block; color: var(--text); font-weight: 600; }
.steps span { display: block; color: var(--muted); font-size: .95rem; margin-top: 2px; }

.aside-contact { margin-top: 32px; padding: 22px 24px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); font-size: .95rem; color: var(--muted); }
.aside-contact strong { color: var(--text); }
.aside-contact a { color: var(--blue); font-weight: 600; text-decoration: none; }
.aside-contact a:hover { text-decoration: underline; }
.aside-contact p + p { margin-top: 6px; }

/* ---------- Formularios ---------- */
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); }
.form-card > h2 { font-size: 1.6rem; color: var(--blue); }
.form-card > p { margin-top: 8px; color: var(--muted); }
.form-section { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--line); }
.form-section > h3 { font-size: 1.05rem; color: var(--blue); margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.form-section > h3 .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--blue-dk); font-size: .8rem; flex: none; }
.form-section > p.hint { margin: -8px 0 18px; color: var(--muted); font-size: .92rem; }

.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 20px; }
.field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.field--full { grid-column: 1 / -1; }
.field > label, .field > .label { font-size: .9rem; font-weight: 600; color: var(--text); }
.field .req { color: #C2185B; margin-left: 2px; }
.field .opt { color: var(--muted); font-weight: 400; font-size: .85rem; }
.field small { color: var(--muted); font-size: .82rem; line-height: 1.4; }
.field input[type="text"], .field input[type="email"], .field input[type="tel"], .field input[type="url"], .field input[type="number"],
.field select, .field textarea {
  width: 100%; font: inherit; font-size: .98rem; color: var(--text);
  padding: 12px 14px; border: 1.5px solid #CDD1E6; border-radius: 12px; background: var(--white);
  transition: border-color .2s, box-shadow .2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230018A8' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center / 16px;
}
.field input:hover, .field select:hover, .field textarea:hover { border-color: #9EA5CC; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,24,168,.12); }
.was-validated .field :invalid { border-color: #C2185B; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choice { position: relative; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  border: 1.5px solid #CDD1E6; font-size: .92rem; color: var(--muted); cursor: pointer; transition: all .2s;
}
.choice span::before { content: ""; width: 14px; height: 14px; border-radius: 4px; border: 1.5px solid currentColor; flex: none; }
.choice input:checked + span { border-color: var(--blue); background: var(--blue); color: var(--white); }
.choice input:checked + span::before { background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000D6B' stroke-width='4'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") no-repeat center / 10px; border-color: var(--mint); }
.choice input:focus-visible + span { outline: 3px solid var(--mint-dk); outline-offset: 2px; }
.choice:hover span { border-color: var(--blue); }
.form-section > h3 .req { color: #C2185B; margin-left: -6px; }

.vcards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.vcard { position: relative; display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border: 1.5px solid #CDD1E6; border-radius: 14px; cursor: pointer; transition: border-color .2s, background-color .2s, box-shadow .2s; }
.vcard:hover { border-color: var(--blue); }
.vcard input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.vcard:has(input:checked) { border-color: var(--blue); background: #F2F4FD; box-shadow: 0 0 0 1px var(--blue); }
.vcard__body strong { display: block; color: var(--blue); font-size: 1rem; }
.vcard__desc { display: block; margin-top: 2px; font-size: .86rem; color: var(--muted); line-height: 1.4; }
.vcard__when { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; padding: 4px 10px; border-radius: 999px; background: #E6F6F0; color: #1F7A62; font-size: .78rem; font-weight: 600; line-height: 1.3; }
.vcard__when svg { width: 14px; height: 14px; flex: none; }

.drop {
  position: relative; display: flex; align-items: center; gap: 16px;
  padding: 20px 22px; border: 2px dashed #B9BFDD; border-radius: 14px; background: var(--off);
  transition: border-color .2s, background-color .2s; cursor: pointer;
}
.drop:hover, .drop.is-over { border-color: var(--blue); background: #ECEFFB; }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; }
.drop:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(0,24,168,.12); }
.drop__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--white); color: var(--blue); }
.drop__icon svg { width: 22px; height: 22px; }
.drop__text strong { display: block; color: var(--blue); font-size: .97rem; }
.drop__text span { display: block; color: var(--muted); font-size: .85rem; }
.drop.has-files { border-style: solid; border-color: var(--mint-dk); background: #EEF9F5; }
.files { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 6px; }
.files:empty { display: none; }
.files li { display: flex; justify-content: space-between; gap: 12px; font-size: .88rem; padding: 8px 12px; border-radius: 10px; background: var(--off); }
.files li span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.files li span:last-child { color: var(--muted); flex: none; }
.files li.is-error { background: #FDECF2; color: #A3154A; }
.files li.is-error span:last-child { color: #A3154A; }

.consent { display: flex; gap: 12px; align-items: flex-start; margin-top: 28px; font-size: .9rem; color: var(--muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--blue); cursor: pointer; }
.consent a { color: var(--blue); }
.legal-note { margin-top: 14px; font-size: .78rem; line-height: 1.5; color: #6B7099; }
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

.form-actions { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.form-actions .btn { font-size: 1rem; padding: .95em 1.8em; }
.form-actions small { color: var(--muted); font-size: .85rem; }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.btn .spinner { width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: giro .8s linear infinite; display: none; }
.btn.is-loading .spinner { display: inline-block; }
@keyframes giro { to { transform: rotate(360deg); } }
.form-error { display: none; margin-top: 18px; padding: 14px 18px; border-radius: 12px; background: #FDECF2; color: #A3154A; font-size: .93rem; }
.form-error.is-visible { display: block; }

.form-done { text-align: center; padding: 28px 8px 12px; }
.form-done__icon { width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center; background: var(--mint); color: var(--blue-dk); }
.form-done__icon svg { width: 34px; height: 34px; }
.form-done h2 { font-size: 1.8rem; color: var(--blue); }
.form-done p { margin: 12px auto 0; max-width: 460px; color: var(--muted); }
.form-done .btn { margin-top: 26px; }

/* ---------- Proveedores: selector y plantilla ---------- */
.tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 36px; }
.tab {
  display: flex; gap: 16px; align-items: flex-start; text-align: left;
  padding: 22px 24px; border-radius: 16px; border: 2px solid var(--line); background: var(--white);
  font: inherit; color: var(--text); cursor: pointer; transition: border-color .2s, box-shadow .2s;
}
.tab:hover { border-color: #9EA5CC; }
.tab[aria-selected="true"] { border-color: var(--blue); box-shadow: var(--shadow); }
.tab__icon { width: 46px; height: 46px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--off); color: var(--blue); }
.tab[aria-selected="true"] .tab__icon { background: var(--blue); color: var(--white); }
.tab__icon svg { width: 22px; height: 22px; }
.tab strong { display: block; font-size: 1.1rem; color: var(--blue); }
.tab__desc { display: block; margin-top: 2px; font-size: .92rem; color: var(--muted); }
.tab-panel + .tab-panel { margin-top: 56px; }

.campaign {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  margin: -16px 0 36px; padding: 18px 22px; border-radius: 16px;
  background: var(--mint); color: var(--blue-dk); text-decoration: none;
  transition: background-color .2s, transform .2s;
}
.campaign:hover { background: #B2E6D5; transform: translateY(-2px); }
.campaign__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--blue); color: var(--white); }
.campaign__icon svg { width: 22px; height: 22px; }
.campaign__text strong { display: block; font-size: 1.02rem; }
.campaign__text span { display: block; font-size: .9rem; color: rgba(0,13,107,.78); margin-top: 2px; }
.campaign__cta { font-weight: 600; white-space: nowrap; padding: .6em 1.1em; border-radius: 999px; background: var(--blue); color: var(--white); font-size: .92rem; }
.js .tab-panel + .tab-panel { margin-top: 0; }

.template-box {
  display: grid; grid-template-columns: auto 1fr auto; gap: 22px; align-items: center;
  padding: 26px 28px; border-radius: 16px; background: var(--blue); color: var(--white); margin-bottom: 18px;
}
.template-box__icon { width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center; background: var(--mint); color: var(--blue-dk); }
.template-box__icon svg { width: 28px; height: 28px; }
.template-box h3 { font-size: 1.2rem; }
.template-box p { margin-top: 4px; color: rgba(255,255,255,.8); font-size: .93rem; }
.template-cols { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.template-cols span { font-size: .76rem; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.12); color: var(--white); }

.photo-rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 36px; }
.photo-rules div { padding: 16px 18px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); }
.photo-rules strong { display: block; color: var(--blue); font-size: .95rem; }
.photo-rules span { display: block; margin-top: 2px; font-size: .85rem; color: var(--muted); line-height: 1.4; }

.page-foot { background: var(--blue-dk); color: rgba(255,255,255,.75); padding: 36px 0; font-size: .88rem; }
.page-foot .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-foot a { text-decoration: none; }
.page-foot a:hover { color: var(--mint); }

@media (max-width: 1080px) {
  .access { grid-template-columns: repeat(2, 1fr); }
  .photo-rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .page-layout { grid-template-columns: 1fr; gap: 36px; }
  .page-aside { position: static; }
  .template-box { grid-template-columns: auto 1fr; }
  .template-box .btn { grid-column: 1 / -1; justify-self: start; }
}
@media (max-width: 640px) {
  .access-wrap { margin-top: 36px; }
  .access { grid-template-columns: 1fr; gap: 10px; }
  .access__item { display: grid; grid-template-columns: 40px 1fr; column-gap: 14px; row-gap: 0; align-items: center; padding: 14px 44px 14px 14px; }
  .access__icon { margin-bottom: 0; width: 40px; height: 40px; grid-row: span 2; }
  .access__item small { display: none; }
  .access__item strong { font-size: 1.02rem; }
  .access__desc { font-size: .84rem; }
  .access__arrow { top: 50%; right: 16px; margin-top: -10px; }
  .page-hero { padding: 64px 0 70px; }
  .form-card { padding: 26px 20px; border-radius: 16px; }
  .fields, .vcards { grid-template-columns: 1fr; }
  .tabs { grid-template-columns: 1fr; gap: 10px; margin-bottom: 28px; }
  .tab { padding: 16px 18px; }
  .campaign { grid-template-columns: 1fr; gap: 12px; margin: -12px 0 28px; }
  .campaign__icon { display: none; }
  .campaign__cta { justify-self: start; }
  .template-box { grid-template-columns: 1fr; padding: 22px; }
  .template-box__icon { display: none; }
  .photo-rules { grid-template-columns: 1fr 1fr; }
  .form-actions .btn { width: 100%; justify-content: center; }
}
