/* ==========================================================================
   Desafiarte · Landing page
   ========================================================================== */

/* ---------- Tokens (manual de marca) ---------- */
:root {
  --azul: #0B2D5B;
  --azul-2: #133E78;
  --naranjo: #FF8A00;
  --naranjo-osc: #E06A00;      /* naranjo para texto grande sobre fondo claro (AA ≥ 3:1) */
  --naranjo-texto: #B85A00;    /* naranjo para texto pequeño sobre fondo claro (AA ≥ 4.5:1) */
  --blanco: #FFFFFF;
  --gris: #F2F4F7;
  --gris-2: #E3E8EF;
  --texto: #0B2D5B;
  --texto-2: #4A5A75;

  --font: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-marker: "Permanent Marker", "Comic Sans MS", cursive;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 18px;
  --shadow: 0 10px 30px rgba(11, 45, 91, .10);
  --shadow-lg: 0 18px 50px rgba(11, 45, 91, .18);
  --shadow-soft: 0 2px 8px rgba(11, 45, 91, .10);   /* sombra neutra para elementos naranjos (nunca sombras de color) */

  --header-h: 84px;
  --container: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

/* ---------- Reset / base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--header-h); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--texto-2);
  background: var(--blanco);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
h1, h2, h3, h4 { margin: 0; color: var(--texto); line-height: 1.15; font-weight: 800; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--naranjo); outline-offset: 3px; border-radius: 4px; }

[hidden] { display: none !important; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--azul); color: #fff; padding: 10px 16px; border-radius: 8px; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.accent { color: var(--naranjo); }
.section { padding-block: clamp(56px, 8vw, 96px); }

/* ---------- Etiqueta de sección ---------- */
.eyebrow {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 14px;
  font-size: .82rem; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--naranjo-texto);
}
.eyebrow::before {
  content: ""; flex: none; width: 32px; height: 3px; border-radius: 3px; background: var(--naranjo);
}
.eyebrow-light { color: var(--naranjo); }

/* ---------- Texto manuscrito ---------- */
.marker {
  font-family: var(--font-marker);
  font-weight: 400;
  text-transform: uppercase;
  line-height: 1.25;
  letter-spacing: .02em;
}
.marker-underline::after {
  content: ""; display: block; height: 5px; width: 70%; margin-top: 8px;
  border-radius: 5px; background: var(--naranjo); transform: rotate(-4deg);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 28px;
  border: 2px solid transparent; border-radius: 999px;
  font-weight: 600; font-size: .95rem; line-height: 1.2; text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color .2s, color .2s, box-shadow .2s, transform .2s;
}
.btn-primary { background: var(--naranjo); color: var(--azul); box-shadow: var(--shadow-soft); }
.btn-primary:hover { background: #FF9D2E; transform: translateY(-1px); }
.btn-white { background: #fff; color: var(--naranjo-texto); }
.btn-white:hover { background: var(--azul); color: #fff; }
.btn-icon { width: 20px; height: 20px; }

/* ---------- Íconos circulares ---------- */
.icon-circle {
  display: inline-grid; place-items: center; flex: none;
  width: 60px; height: 60px; border-radius: 50%;
  background: #fff; color: var(--azul);
  box-shadow: 0 4px 12px rgba(11, 45, 91, .22);
}
.icon-circle svg { width: 28px; height: 28px; }
.icon-circle--orange { background: var(--naranjo); color: #fff; }

/* ==========================================================================
   HEADER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: #fff;
  box-shadow: 0 1px 0 var(--gris-2);
  transition: box-shadow .2s;
}
.site-header.is-scrolled { box-shadow: 0 6px 24px rgba(11, 45, 91, .08); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: var(--header-h); }
.brand img { width: 172px; }

.main-nav { display: flex; align-items: center; gap: 40px; flex: 1; justify-content: space-between; margin-left: 48px; }
.main-nav ul { display: flex; gap: 32px; }
.main-nav ul a {
  position: relative; display: block; padding: 8px 0;
  font-size: .9rem; font-weight: 500; color: var(--azul); text-decoration: none; white-space: nowrap;
}
.main-nav ul a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px;
  background: var(--naranjo); transform: scaleX(0); transition: transform .2s;
}
.main-nav ul a:hover::after, .main-nav ul a.is-active::after { transform: scaleX(1); }
.btn-header { padding-inline: 34px; }

.nav-toggle {
  display: none;
  width: 44px; height: 44px; padding: 10px;
  background: none; border: 0; border-radius: 8px; cursor: pointer;
}
.nav-toggle span { display: block; height: 2.5px; margin: 5px 0; border-radius: 2px; background: var(--azul); transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

@media (max-width: 1180px) {
  :root { --header-h: 72px; }
  .brand img { width: 148px; }
  .nav-toggle { display: block; }
  .main-nav {
    position: absolute; top: 100%; left: 0; right: 0; margin: 0;
    flex-direction: column; align-items: stretch; gap: 16px;
    padding: 16px var(--gutter) 24px;
    background: #fff; box-shadow: 0 12px 24px rgba(11, 45, 91, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .2s, transform .2s, visibility 0s .2s;
  }
  .main-nav.is-open { visibility: visible; opacity: 1; transform: none; transition: opacity .2s, transform .2s; }
  .main-nav ul { flex-direction: column; gap: 0; }
  .main-nav ul a { padding: 14px 0; font-size: 1rem; border-bottom: 1px solid var(--gris-2); }
  .main-nav ul a::after { display: none; }
  .main-nav ul a.is-active { color: var(--naranjo-texto); }
}

/* ==========================================================================
   HERO
   ========================================================================== */
.hero {
  position: relative; isolation: isolate; overflow: hidden; color: #fff;
  /* Resplandor cálido de atardecer arriba a la derecha (detrás del formulario): continúa el cielo
     de la foto donde su borde derecho se desvanece y se funde con el azul hacia abajo. */
  background:
    radial-gradient(ellipse 760px 560px at calc(50% + 330px) -80px,
      rgba(249, 226, 198, .80) 0%,
      rgba(247, 199, 148, .50) 38%,
      rgba(205, 140, 105, .20) 64%,
      rgba(11, 45, 91, 0) 100%),
    var(--azul);
}

/* Foto: del centro hacia la derecha. Se ubica respecto del centro de la página para que el
   rostro quede entre el texto y el formulario; su borde derecho (bajo el formulario) se funde con el azul. */
.hero-photo {
  position: absolute; z-index: -2; top: 0; bottom: 0;
  left: calc(50% - 445px); width: 865px;
  -webkit-mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
  mask-image: linear-gradient(90deg, #000 72%, transparent 100%);
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }

/* Degradado: azul sólido hasta cerca de la mitad, luego transparente (texto sobre azul, rostro limpio) */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg,
    var(--azul) 0,
    var(--azul) calc(50% - 360px),
    rgba(11, 45, 91, .75) calc(50% - 230px),
    rgba(11, 45, 91, 0) calc(50% - 90px));
}
.hero-inner {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 40px; align-items: center;
  padding-block: clamp(40px, 5vw, 48px);
  min-height: 660px;
}
.hero-content { max-width: 600px; }
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.2vw, 3.3rem); line-height: 1.08; margin-bottom: 20px; }
.hero-lead { font-size: clamp(1rem, 1.4vw, 1.15rem); line-height: 1.55; margin-bottom: 30px; max-width: 520px; }
.hero-points { display: grid; gap: 16px; }
.hero-points li { display: flex; align-items: center; gap: 22px; font-weight: 600; font-size: 1.05rem; line-height: 1.3; max-width: 380px; }

/* Frase manuscrita sobre el cielo, arriba a la derecha de la cabeza (azul sobre cielo claro, como en el diseño) */
.hero-marker {
  position: absolute; top: 14px; left: 48.5%;
  font-size: 1.02rem; line-height: 1.3; color: var(--azul);
  transform: rotate(-8deg); transform-origin: left top;
  text-shadow: 0 1px 8px rgba(255, 255, 255, .55);
}
.hero-marker::after {
  content: ""; display: block; width: 110px; height: 4px; margin: 10px 0 0 22px;
  border-radius: 4px; background: var(--naranjo); transform: rotate(-6deg);
}

/* ---------- Formulario ---------- */
.form-card {
  scroll-margin-top: calc(var(--header-h) + 16px);
  background: #fff; color: var(--texto-2);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 28px 28px 22px;
}
.form-title { font-size: 1.45rem; line-height: 1.1; text-transform: uppercase; margin-bottom: 10px; }
.form-title .accent { display: block; font-size: 1.15em; color: var(--naranjo-osc); }
.form-intro { font-size: .92rem; line-height: 1.5; margin-bottom: 18px; }

.contact-form { display: grid; gap: 12px; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form select,
.contact-form textarea {
  width: 100%; min-height: 46px; padding: 11px 14px;
  border: 1.5px solid var(--gris-2); border-radius: 10px;
  background: #fff; color: var(--azul); font-size: .92rem;
  transition: border-color .2s, box-shadow .2s;
}
.contact-form ::placeholder { color: #6B7A93; opacity: 1; }
.contact-form select {
  appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B2D5B' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 16px;
}
.contact-form select:invalid, .contact-form select.is-placeholder { color: #6B7A93; }
.contact-form textarea { resize: vertical; min-height: 84px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--azul); box-shadow: 0 0 0 3px rgba(11, 45, 91, .15);
}
.contact-form [aria-invalid="true"] { border-color: #C62828 !important; }

.field-phone {
  border: 1.5px solid var(--gris-2); border-radius: 10px; padding: 6px 0 0;
}
.field-phone legend {
  float: left; width: 100%; padding: 0 14px 4px;
  font-size: .82rem; color: #6B7A93;
}
.phone-row { clear: both; display: grid; grid-template-columns: 112px 1fr; border-top: 1.5px solid var(--gris-2); }
.contact-form .phone-row select,
.contact-form .phone-row input { border: 0; border-radius: 0 0 0 10px; min-height: 44px; }
.contact-form .phone-row input { border-left: 1.5px solid var(--gris-2); border-radius: 0 0 10px 0; }
.field-phone:focus-within { border-color: var(--azul); box-shadow: 0 0 0 3px rgba(11, 45, 91, .15); }
.contact-form .phone-row :focus { box-shadow: none; }
.field-phone.has-error { border-color: #C62828; }
.field-phone .field-error { padding: 0 14px 8px; }

.field-check { display: grid; grid-template-columns: 20px 1fr; gap: 10px; align-items: start; font-size: .8rem; line-height: 1.45; }
.field-check input { width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--naranjo); cursor: pointer; }
.field-check a { color: var(--azul); font-weight: 600; }
.field-check .field-error { grid-column: 2; }

.field-error { margin-top: 5px; font-size: .78rem; font-weight: 500; color: #C62828; }

.btn-submit { width: 100%; min-height: 54px; margin-top: 4px; text-transform: uppercase; letter-spacing: .02em; font-weight: 700; }
.btn-submit[disabled] { opacity: .7; cursor: progress; transform: none; }
.form-note { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .78rem; }
.form-note svg { width: 14px; height: 14px; color: var(--azul); }

.form-status { padding: 12px 14px; border-radius: 10px; font-size: .88rem; font-weight: 500; line-height: 1.45; }
.form-status.is-success { background: #E8F5E9; color: #1B5E20; }
.form-status.is-error { background: #FDECEA; color: #8E1C1C; }

.hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Hero responsive ---------- */
/* Tablet y móvil: foto arriba con degradado azul hacia abajo; texto y formulario debajo
   (bajo 1180 px no cabe el rostro entre las dos columnas sin que el formulario lo tape) */
@media (max-width: 1280px) {
  .hero-photo { left: calc(50% - 445px - (1280px - 100vw) * .3); }  /* aleja el rostro del formulario en pantallas angostas */
}
@media (max-width: 1180px) {
  .hero { background: var(--azul); }
  .hero::before { display: none; }
  .hero-photo {
    position: relative; z-index: 0; left: auto; width: 100%;
    height: clamp(300px, 72vw, 520px);
    -webkit-mask-image: none; mask-image: none;
  }
  .hero-photo img { object-position: 50% 18%; }
  .hero-photo::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(11, 45, 91, 0) 45%, rgba(11, 45, 91, .65) 78%, var(--azul) 100%);
  }
  .hero-marker {
    z-index: 1; top: 5%; left: auto; right: 5%;
    font-size: clamp(.82rem, 2.6vw, 1.15rem);
  }
  .hero-marker::after { width: 70%; margin-left: 12%; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; min-height: 0; margin-top: -40px; padding-block: 0 48px; }
  .hero-content { max-width: none; }
  .form-card { max-width: 560px; width: 100%; justify-self: center; }
}
@media (max-width: 480px) {
  .hero-points li { font-size: .98rem; gap: 16px; }
  .icon-circle { width: 52px; height: 52px; }
  .icon-circle svg { width: 24px; height: 24px; }
  .form-card { padding: 22px 18px 18px; }
  .phone-row { grid-template-columns: 104px 1fr; }
  .contact-form .phone-row select { padding-left: 12px; padding-right: 30px; background-position: right 10px center; }
  .btn-submit { font-size: .88rem; letter-spacing: 0; padding-inline: 18px; }
}

/* ==========================================================================
   PILARES
   ========================================================================== */
.pillars { background: #F7F9FC; padding-block: clamp(36px, 4vw, 48px); }
.pillars-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.pillar { display: flex; gap: 24px; align-items: flex-start; padding: 8px 28px; }
.pillar + .pillar { border-left: 1px solid #D5DDE8; }
.pillar:first-child { padding-left: 0; }
.pillar-icon {
  display: grid; place-items: center; flex: none;
  width: 92px; height: 92px; border-radius: 50%;
  background: #E9EFF7; color: var(--azul);
}
.pillar-icon svg { width: 44px; height: 44px; stroke-width: 1.6; }
.pillar h3 { font-size: 1.05rem; font-weight: 700; margin: 8px 0 8px; }
.pillar p { font-size: .86rem; line-height: 1.55; }

@media (max-width: 960px) {
  .pillars-grid { grid-template-columns: 1fr; gap: 8px; }
  .pillar { padding: 18px 0; }
  .pillar + .pillar { border-left: 0; border-top: 1px solid #D5DDE8; }
  .pillar-icon { width: 72px; height: 72px; }
  .pillar-icon svg { width: 34px; height: 34px; }
}

/* ==========================================================================
   ¿POR QUÉ DESAFIARTE?
   ========================================================================== */
.why {
  display: grid; grid-template-columns: minmax(0, 44fr) minmax(0, 56fr); align-items: center;
  background: linear-gradient(90deg, var(--gris) 0%, #fff 100%);
}
/* La foto es un PNG/WebP con transparencia que ya trae el borde curvo naranjo:
   sin bordes, radios ni recortes extra; pegada al borde izquierdo. */
.why-media {
  position: relative; margin: 0;
  container-type: inline-size;   /* las unidades cqw de la frase son relativas al ancho de la imagen */
}
.why-media img { width: 100%; height: auto; }
/* Posición obligatoria: tapa una zona retocada de la foto (sobre el suéter del hombre). */
.why-marker {
  position: absolute; z-index: 1; left: 62%; top: 58%;
  font-size: 3.9cqw; line-height: 1.22; color: #fff; white-space: nowrap;
  transform: rotate(-8deg); transform-origin: left top;
  text-shadow: 0 .15cqw 1.2cqw rgba(0, 0, 0, .45);
}
.why-marker::after {
  content: ""; display: block; width: 72%; height: .7cqw; min-height: 3px; margin-top: 1.2cqw;
  border-radius: 1cqw; background: var(--naranjo); transform: rotate(-4deg);
}
.why-content { padding: clamp(40px, 4vw, 56px) var(--gutter) clamp(40px, 4vw, 56px) clamp(32px, 5vw, 72px); max-width: 760px; }
.why-content h2 { font-size: clamp(1.45rem, 2.1vw, 1.8rem); line-height: 1.25; margin-bottom: 28px; }

/* Lista vertical con el mismo estilo de tarjeta y círculo numerado de la sección Diego */
.facts.facts--stack { grid-template-columns: 1fr; gap: 12px; margin: 0; padding: 0; list-style: none; }
.facts--stack .fact { padding: 14px 20px; }
.facts--stack .fact-num { width: 46px; height: 46px; font-size: 1.1rem; }
.facts--stack .fact strong { font-size: 1.05rem; }
/* 7 características: 2 columnas (4 + 3) en escritorio */
.facts.facts--why { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, auto); grid-auto-flow: column; }

.check-list { display: grid; gap: 16px; }
.check-list li { position: relative; padding-left: 46px; font-size: 1.02rem; line-height: 1.45; color: var(--azul); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: -2px;
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--naranjo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 15px no-repeat;
}

@media (max-width: 860px) {
  .why { grid-template-columns: 1fr; background: linear-gradient(180deg, var(--gris) 0%, #fff 100%); }
  .why-media { max-width: 640px; }
  .why-content { padding: 32px var(--gutter) 56px; }
}
@media (max-width: 560px) {
  .facts.facts--why { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
}

/* ==========================================================================
   METODOLOGÍA Y PROCESO
   ========================================================================== */
.method { padding-block: clamp(32px, 4vw, 44px) clamp(48px, 6vw, 64px); }
.method-grid { display: grid; grid-template-columns: minmax(280px, 31%) 1fr; gap: 32px; align-items: start; }
.method-card {
  background: var(--azul); color: #fff;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 3vw, 36px);
  box-shadow: var(--shadow);
}
.method-card h2 { color: #fff; font-size: clamp(1.8rem, 2.8vw, 2.25rem); line-height: 1.12; margin-bottom: 16px; }
.method-card p:not(.eyebrow) { font-size: 1rem; margin-bottom: 24px; }
.method-card .btn { width: 100%; padding-inline: 18px; font-size: .9rem; }

.process .eyebrow { margin-top: 18px; }
.process-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.step {
  position: relative; text-align: center;
  background: #F2F6FB; border-radius: var(--radius-lg);
  padding: 44px 16px 26px;
}
.step-num {
  position: absolute; top: -14px; left: 16px;
  display: grid; place-items: center;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--naranjo-osc); color: #fff;
  font-weight: 800; font-size: 1.2rem;  /* texto grande: AA con blanco sobre naranjo oscuro */
  box-shadow: var(--shadow-soft);
}
.step-icon { width: 56px; height: 56px; margin: 0 auto 16px; color: var(--azul); stroke-width: 1.6; }
.step h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 10px; }
.step p { font-size: .9rem; line-height: 1.5; }

@media (max-width: 1080px) {
  .method-grid { grid-template-columns: 1fr; }
  .method-card .btn { width: auto; }
}
@media (max-width: 860px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
}
@media (max-width: 480px) {
  .process-grid { grid-template-columns: 1fr; }
  .method-card .btn { width: 100%; }
}

/* ==========================================================================
   TESTIMONIOS · CARRUSEL
   ========================================================================== */
.testimonials { background: #F5F8FC; }
.section-head {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 48px;
  margin-bottom: 40px;
}
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-lead { max-width: 460px; font-size: 1rem; line-height: 1.6; }

.carousel { --visible: 3; --gap: 24px; position: relative; }
.carousel-track {
  display: flex; gap: var(--gap);
  margin: 0; padding: 4px 0 24px; list-style: none;
  overflow-x: auto; overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus-visible { outline-offset: 6px; border-radius: var(--radius-lg); }
.carousel-slide {
  flex: 0 0 calc((100% - (var(--visible) - 1) * var(--gap)) / var(--visible));
  scroll-snap-align: start;
}
.carousel-slide img {
  width: 100%; aspect-ratio: 3 / 4; object-fit: cover;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 30px rgba(11, 45, 91, .18);
  background: var(--azul);
}

.carousel-arrow {
  position: absolute; top: calc(50% - 12px); z-index: 2;
  display: grid; place-items: center;
  width: 58px; height: 58px; padding: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  border: 1.5px solid rgba(255, 255, 255, .85);
  color: #fff; cursor: pointer;
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
  box-shadow: 0 4px 16px rgba(11, 45, 91, .25);
  transform: translateY(-50%);
  transition: background-color .2s, opacity .2s;
}
.carousel-arrow svg { width: 26px; height: 26px; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .35)); }
.carousel-arrow:hover { background: rgba(255, 255, 255, .32); }
.carousel-arrow[aria-disabled="true"] { opacity: .35; cursor: default; }
.carousel-arrow--prev { left: -20px; }
.carousel-arrow--next { right: -20px; }

.carousel-dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.carousel-dots button {
  width: 24px; height: 24px; padding: 0; border: 0; background: none; cursor: pointer;
  display: grid; place-items: center;
}
.carousel-dots button::before {
  content: ""; width: 10px; height: 10px; border-radius: 10px;
  background: #C3CDDB; transition: width .25s, background-color .25s;
}
.carousel-dots button[aria-current="true"] { width: 44px; }
.carousel-dots button[aria-current="true"]::before { width: 36px; background: var(--naranjo); }

@media (max-width: 1023px) { .carousel { --visible: 2; --gap: 20px; } }
@media (max-width: 639px) {
  .carousel { --visible: 1; --gap: 16px; }
  .carousel-arrow { width: 48px; height: 48px; }
  .carousel-arrow--prev { left: 8px; }
  .carousel-arrow--next { right: 8px; }
}
@media (max-width: 860px) {
  .section-head { flex-direction: column; align-items: flex-start; margin-bottom: 28px; }
  .br-desk { display: none; }
}

/* ==========================================================================
   DIEGO
   ========================================================================== */
.diego-top { display: grid; grid-template-columns: minmax(0, 43%) 1fr; gap: clamp(28px, 4vw, 48px); align-items: start; }

.diego-photo {
  position: relative; margin: 0; overflow: hidden;
  aspect-ratio: 590 / 720;
  border-radius: var(--radius-lg);
  background: var(--azul);
  box-shadow: var(--shadow-lg);
}
.diego-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; }
.diego-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11, 45, 91, 0) 55%, rgba(11, 45, 91, .85) 100%);
}
.diego-marker {
  position: absolute; z-index: 1; right: 7%; bottom: 8%;
  max-width: 250px; text-align: right;
  font-size: clamp(1.1rem, 2vw, 1.55rem); color: #fff;
  transform: rotate(-8deg);
  text-shadow: 0 2px 10px rgba(0, 0, 0, .45);
}
.diego-marker::after {
  content: ""; display: block; width: 120px; height: 5px; margin: 8px 0 0 auto;
  border-radius: 5px; background: var(--naranjo); transform: rotate(-4deg);
}

.diego-bio h2 { font-size: clamp(2rem, 3.4vw, 2.6rem); margin-bottom: 8px; }
.diego-role { font-weight: 600; font-size: 1.08rem; color: var(--azul); margin-bottom: 18px; }
.diego-role span[aria-hidden] { color: var(--naranjo); margin-inline: 6px; }
.diego-role::after { content: ""; display: block; width: 80px; height: 4px; margin-top: 16px; border-radius: 4px; background: var(--naranjo); }
.diego-bio > p:not(.eyebrow):not(.diego-role) { margin-bottom: 16px; line-height: 1.75; }
.diego-bio strong { color: var(--azul); }
.diego-quote {
  margin: 24px 0 22px; padding: 18px 24px;
  border-left: 5px solid var(--naranjo); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--gris);
  font-weight: 600; font-size: 1.05rem; line-height: 1.5; color: var(--azul);
}
.diego-quote:last-child { margin-bottom: 0; }

/* Fila de datos */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 36px 0 0; }
.fact { display: flex; align-items: center; gap: 18px; padding: 22px 20px; border-radius: var(--radius); background: #F5F8FC; }
.fact strong { display: block; font-size: 1.12rem; font-weight: 700; color: var(--azul); line-height: 1.3; }
.fact div span { display: block; font-size: .84rem; line-height: 1.45; }
.fact-num {
  display: grid; place-items: center; flex: none;
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--azul); color: #fff;
  font-weight: 800; font-size: 1.2rem;
}
.fact-num--orange { background: var(--naranjo-osc); }

/* Áreas de apoyo */
.areas {
  display: grid; grid-template-columns: 1fr 1.1fr minmax(260px, .8fr); gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 64px); padding-top: clamp(40px, 5vw, 56px);
  border-top: 1px solid var(--gris-2);
}
.areas-intro h3 { font-size: clamp(2rem, 3.6vw, 2.8rem); line-height: 1.08; margin-bottom: 20px; }
.areas-intro p:not(.eyebrow) { margin-bottom: 28px; }

.areas-list { position: relative; display: grid; gap: 20px; align-self: start; }
.areas-list::before {
  content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 2px; background: var(--gris-2);
}
.areas-list li { position: relative; display: flex; gap: 22px; align-items: flex-start; }
.areas-icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 50%;
  background: #FFF4E6; color: var(--naranjo-texto);
  box-shadow: 0 0 0 4px #fff;
}
.areas-icon svg { width: 22px; height: 22px; }
.areas-list h4 { font-size: 1.05rem; font-weight: 700; margin: 2px 0 2px; }
.areas-list p { font-size: .9rem; }

.brand-card {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; flex-direction: column; justify-content: space-between; gap: 28px;
  min-height: 460px; padding: 32px 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--azul) url("../assets/img/collage-fondo.webp") center / cover no-repeat;
  color: #fff;
  box-shadow: var(--shadow-lg);
}
.brand-card::before { content: ""; position: absolute; inset: 0; z-index: -1; background: rgba(11, 45, 91, .86); }
.brand-card-marker { font-size: 1.55rem; transform: rotate(-6deg); transform-origin: left; max-width: 230px; }
.brand-card-marker::after { width: 60%; }
.brand-card-logo { width: 210px; margin-top: auto; }
.contact-list { display: grid; gap: 12px; padding-top: 18px; border-top: 1px solid rgba(255, 255, 255, .22); }
.contact-list li { display: flex; align-items: center; gap: 12px; font-size: .92rem; }
.contact-list svg { width: 18px; height: 18px; flex: none; color: var(--naranjo); }
.contact-list a { text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { text-decoration: underline; }

@media (max-width: 1080px) {
  .facts { grid-template-columns: repeat(2, 1fr); }
  .areas { grid-template-columns: 1fr 1fr; }
  .brand-card { grid-column: 1 / -1; min-height: 0; }
}
/* 3 columnas: misma altura que la tarjeta azul; botón alineado con su base y áreas centradas */
@media (min-width: 1081px) {
  .areas-intro { display: flex; flex-direction: column; align-items: flex-start; }
  .areas-intro .btn { margin-top: auto; }
  .areas-list { align-self: center; }
}
@media (max-width: 860px) {
  .diego-top { grid-template-columns: 1fr; }
  .diego-photo { max-width: 480px; width: 100%; justify-self: center; }
  .areas { grid-template-columns: 1fr; }
}
@media (max-width: 520px) {
  .facts { grid-template-columns: 1fr; }
}

.eyebrow--center { justify-content: center; }

/* ==========================================================================
   EL PROGRAMA
   ========================================================================== */
/* Franja breve: solo la fila de posts */
.program { padding-top: 0; }
.posts { padding-top: clamp(48px, 6vw, 72px); border-top: 1px solid var(--gris-2); }

/* Fila de posts: misma altura, ancho natural (no se recortan para no cortar el texto de las piezas) */
.posts-track { display: flex; justify-content: center; gap: 24px; margin: 22px 0 0; padding: 4px 0 16px; list-style: none; }
.posts-track li { flex: none; }
.posts-track img {
  width: clamp(240px, 25vw, 360px); height: auto;
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(11, 45, 91, .14);
}
/* Móvil: posts apilados en 1 columna, a ancho completo hasta 420px y centrados */
@media (max-width: 760px) {
  .posts-track { flex-direction: column; align-items: center; }
  .posts-track li { width: 100%; max-width: 420px; }
  .posts-track img { width: 100%; }
}

/* ==========================================================================
   LO QUE SOLUCIONA
   ========================================================================== */
.solves { background: var(--gris); }
.solves-head { text-align: center; margin-bottom: clamp(32px, 4vw, 48px); }
.solves-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.solves-grid {
  display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 24px; align-items: stretch;
  max-width: 1080px; margin-inline: auto;
}
.solves-card {
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: 0 8px 24px rgba(11, 45, 91, .06);
}
.solves-card h3 { font-size: 1.25rem; font-weight: 700; margin-bottom: 22px; }
.solves-card--dark { background: var(--azul); }
.solves-card--dark h3 { color: #fff; }
.solves-arrow {
  align-self: center;
  display: grid; place-items: center;
  width: 56px; height: 56px; border-radius: 50%;
  background: #fff; color: var(--naranjo);
  box-shadow: var(--shadow-soft);
}
.solves-arrow svg { width: 26px; height: 26px; }

.dash-list { display: grid; gap: 12px; }
.dash-list li { position: relative; padding-left: 30px; line-height: 1.45; color: var(--azul); }
.dash-list li::before {
  content: ""; position: absolute; left: 0; top: .65em;
  width: 16px; height: 3px; border-radius: 3px; background: var(--naranjo);
}
.solves-card .check-list { gap: 12px; }
.solves-card .check-list li { font-size: 1rem; padding-left: 40px; }
.solves-card .check-list li::before { width: 24px; height: 24px; top: -1px; background-size: 13px; }
.check-list--light li { color: #fff; }

/* Escritorio: el ítem N de cada tarjeta comparte fila (título + 9 ítems + relleno inferior = 11 filas).
   Las 9 filas de ítems son 1fr: todas toman la altura de la más alta. El relleno inferior de la tarjeta
   va en su propia fila para que no infle la última fila de ítems. */
@media (min-width: 861px) {
  .solves-grid { grid-template-rows: auto repeat(9, 1fr) calc(clamp(24px, 3vw, 36px) - 12px); row-gap: 12px; }
  .solves-card { display: grid; grid-row: 1 / span 11; grid-template-rows: subgrid; padding-bottom: 0; }
  .solves-card h3 { margin-bottom: 10px; }
  .solves-card ul { grid-row: 2 / span 9; display: grid; grid-template-rows: subgrid; }
  .solves-card li { align-self: center; }
  .solves-arrow { grid-row: 1 / span 11; grid-column: 2; }
  /* Respaldo sin subgrid: filas de altura mínima de 2 líneas en ambas tarjetas */
  @supports not (grid-template-rows: subgrid) {
    .solves-card { display: block; padding-bottom: clamp(24px, 3vw, 36px); }
    .solves-card ul { display: grid; gap: 12px; }
    .solves-card li { display: flex; align-items: center; min-height: 2.9em; }
    .solves-card li::before { top: 50%; transform: translateY(-50%); }
  }
}

@media (max-width: 860px) {
  .solves-grid { grid-template-columns: 1fr; gap: 16px; }
  .solves-arrow { justify-self: center; }
  .solves-arrow svg { transform: rotate(90deg); }   /* en móvil la flecha apunta hacia abajo */
}

/* ==========================================================================
   EL MÉTODO PROMEHAL
   ========================================================================== */
.promehal-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: clamp(32px, 5vw, 72px); align-items: center; }
.promehal-content h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); letter-spacing: .02em; margin-bottom: 14px; }
.promehal-lead { font-size: 1.05rem; line-height: 1.7; max-width: 580px; margin-bottom: 22px; }
.promehal-sigla {
  margin-bottom: 24px;
  font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 1.9rem); letter-spacing: .08em; line-height: 1;
  color: #B4C0D1;
}
.promehal-sigla span { color: var(--naranjo-osc); margin-inline: .12em; }  /* texto grande: AA ≥ 3:1 */
.promehal-sigla span:first-child { margin-left: 0; }

/* Secuencia de 5 pasos con línea vertical, como la línea de las áreas de apoyo */
.promehal-steps { position: relative; display: grid; gap: 16px; margin: 0 0 32px; padding: 0; list-style: none; }
.promehal-steps::before {
  content: ""; position: absolute; left: 20px; top: 20px; bottom: 20px; width: 2px; background: var(--gris-2);
}
.promehal-steps li { position: relative; display: flex; align-items: center; gap: 18px; }
.promehal-num {
  display: grid; place-items: center; flex: none;
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--naranjo-osc); color: #fff;
  font-weight: 800; font-size: 1.2rem;   /* texto grande: AA con blanco sobre naranjo oscuro */
  box-shadow: 0 0 0 4px #fff;
}
.promehal-steps p { font-size: 1.05rem; font-weight: 500; line-height: 1.4; color: var(--azul); }
.promehal-steps b { font-weight: 800; color: var(--naranjo-texto); }

/* Dos imágenes apiladas; la segunda levemente desplazada a la izquierda */
.promehal-media { display: grid; }
.promehal-media img {
  width: 80%; max-width: 400px;
  border-radius: var(--radius-lg);
  box-shadow: 0 14px 32px rgba(11, 45, 91, .16);
}
.promehal-media img:first-child { justify-self: end; }
.promehal-media img:last-child { justify-self: start; position: relative; margin-top: -36px; border: 6px solid #fff; }

@media (max-width: 960px) {
  .promehal-grid { grid-template-columns: 1fr; }
  .promehal-media { max-width: 520px; width: 100%; justify-self: center; }
}
@media (max-width: 480px) {
  .promehal-steps p { font-size: 1rem; }
  .promehal-content .btn { width: 100%; }
}

/* ==========================================================================
   CTA FINAL
   ========================================================================== */
.cta { padding-block: 8px clamp(40px, 5vw, 56px); }
.cta-band {
  position: relative; isolation: isolate; overflow: hidden;
  display: grid; grid-template-columns: 1fr auto; gap: 32px 48px; align-items: center;
  padding: clamp(32px, 4vw, 44px) clamp(24px, 5vw, 64px);
  border-radius: 24px;
  /* Lado izquierdo más oscuro para que el texto blanco cumpla contraste AA */
  background: linear-gradient(100deg, #B54200 0%, #C44C00 52%, #E06A00 78%, #FF8A00 100%);
  color: #fff;
  box-shadow: 0 8px 24px rgba(11, 45, 91, .08);
}
.cta-silhouette {
  position: absolute; right: -10px; bottom: -40px; z-index: -1;
  width: auto; height: 125%; opacity: .28; filter: brightness(1.6) saturate(.6);
}
.eyebrow-white { color: #fff; }
.eyebrow-white::before { background: #FFD08A; }
.cta h2 { color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.4rem); line-height: 1.15; margin-bottom: 14px; max-width: 640px; text-wrap: balance; }
.cta-text p:not(.eyebrow) { font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 500; max-width: 600px; }
.cta-list { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.cta-list li { position: relative; padding-left: 28px; font-size: clamp(1rem, 1.5vw, 1.15rem); font-weight: 500; line-height: 1.4; }
.cta-list li::before { content: ""; position: absolute; left: 0; top: .65em; width: 14px; height: 3px; border-radius: 3px; background: #fff; }
/* Columna derecha agrupada abajo: la base de Instagram coincide con la base del último estado */
.cta-actions { display: grid; gap: 22px; justify-items: center; align-self: end; }
.cta-logo { width: 260px; height: auto; }
/* El ícono (44px) es más alto que el texto: se compensa para que @desafiartecl comparta línea base con el último estado */
@media (min-width: 861px) { .cta-social { margin-bottom: -.5rem; } }
.btn-lg { min-height: 58px; padding-inline: 44px; font-size: 1.05rem; font-weight: 700; }
.cta-social { display: flex; align-items: center; gap: 16px; }
.social-link {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  color: #fff; transition: background-color .2s, color .2s;
}
.social-link svg { width: 32px; height: 32px; }
.social-link:hover { background: rgba(255, 255, 255, .18); }
.cta-handle { font-weight: 700; font-size: 1.2rem; text-decoration: none; }
.cta-handle:hover { text-decoration: underline; }

@media (max-width: 860px) {
  .cta-band { grid-template-columns: 1fr; background: linear-gradient(160deg, #B54200 0%, #C44C00 70%, #D45600 100%); }
  .cta-silhouette { height: 70%; opacity: .2; }
  .cta-actions { justify-items: start; }
  .cta-logo { width: 200px; }
}
@media (max-width: 480px) {
  .cta-actions, .cta-actions .btn { width: 100%; }
  .btn-lg { padding-inline: 20px; }
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer { background: #F7F9FC; padding-block: 28px 24px; font-size: .88rem; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--gris-2); }
.site-footer .brand img { width: 172px; }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 8px 32px; }
.footer-nav a, .footer-legal a { color: var(--azul); text-decoration: none; }
.footer-nav a:hover, .footer-legal a:hover { text-decoration: underline; }
.footer-social { display: flex; gap: 8px; padding-left: 24px; border-left: 1px solid var(--gris-2); }
.social-link--dark { color: var(--azul); }
.social-link--dark svg { width: 26px; height: 26px; }
.social-link--dark:hover { background: var(--gris-2); }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 18px; }
.footer-legal { display: flex; gap: 10px; }

@media (max-width: 960px) {
  .footer-top { flex-direction: column; align-items: flex-start; }
  .footer-nav ul { gap: 4px 20px; }
  .footer-nav a { display: inline-block; padding-block: 8px; }
  .footer-social { padding-left: 0; border-left: 0; margin-left: -10px; }
  .footer-bottom { flex-direction: column; }
}

/* ==========================================================================
   PÁGINAS LEGALES
   ========================================================================== */
.legal-header .header-inner { min-height: 76px; }
.legal-back { font-weight: 600; font-size: .9rem; color: var(--azul); text-decoration: none; }
.legal-back:hover { text-decoration: underline; }
.legal { padding-block: clamp(40px, 6vw, 72px); }
.legal .container { max-width: 820px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); margin-bottom: 12px; }
.legal h2 { font-size: 1.2rem; margin: 32px 0 10px; }
.legal p, .legal li { margin-bottom: 10px; }
.legal ul { list-style: disc; padding-left: 22px; }
.legal-meta { font-size: .88rem; }
.pending-box {
  margin: 24px 0; padding: 16px 20px;
  border-left: 5px solid var(--naranjo); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: #FFF4E6; color: #6B3A00; font-weight: 500;
}
.pending { background: #FFF4E6; color: #6B3A00; padding: 0 4px; border-radius: 4px; font-weight: 600; }

/* ---------- Movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
