/* =========================================================
   CRLead | Crecimiento Digital
   Estilos propios sobre Bootstrap 5.3. Nomenclatura BEM.
   ========================================================= */

:root {
  --red: #E30613;
  --red-dark: #B8000C;
  --red-hot: #FF2A35;
  --red-soft: #FDECEC;
  --ink: #000;
  --ink-2: #2B2B2B;
  --mute: #616161;
  --line: #E6E6E6;
  --fog: #F6F6F6;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --sec: clamp(80px, 11vw, 140px);

  /* Bootstrap */
  --bs-body-font-family: "Poppins", system-ui, -apple-system, "Segoe UI", sans-serif;
  --bs-body-color: var(--ink-2);
  --bs-body-font-size: 1.0625rem;
  --bs-body-line-height: 1.65;
  --bs-link-color-rgb: 227, 6, 19;
  --bs-link-hover-color-rgb: 184, 0, 12;
  --bs-border-color: var(--line);
  --bs-primary: var(--red);
  --bs-primary-rgb: 227, 6, 19;
  --bs-focus-ring-color: rgba(227, 6, 19, .3);
}

html { scroll-padding-top: 90px; }
html, body { overflow-x: clip; }
body { -webkit-font-smoothing: antialiased; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 3px; }
.skip { position: absolute; top: 8px; left: 8px; z-index: 2000; background: var(--ink); color: #fff; padding: 8px 14px; }

/* ---------- Botones ---------- */
.crl-btn {
  --bs-btn-padding-x: 1.9rem; --bs-btn-padding-y: 1rem;
  --bs-btn-font-weight: 600; --bs-btn-border-radius: 999px; --bs-btn-border-width: 2px;
  position: relative; overflow: hidden; isolation: isolate;
  transition: transform .25s var(--ease), background-color .2s, color .2s, border-color .2s, box-shadow .25s;
}
.crl-btn--red {
  --bs-btn-bg: var(--red); --bs-btn-color: #fff; --bs-btn-border-color: var(--red);
  --bs-btn-hover-bg: var(--red); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--red);
  --bs-btn-active-bg: var(--red-dark); --bs-btn-active-border-color: var(--red-dark); --bs-btn-active-color: #fff;
  box-shadow: 0 10px 24px -10px rgba(227, 6, 19, .7);
}
/* Brillo que cruza el botón al pasar el cursor */
.crl-btn--red::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .6s var(--ease);
}
.crl-btn--red:hover::after { transform: translateX(120%); }
.crl-btn--red:hover { box-shadow: 0 16px 34px -12px rgba(227, 6, 19, .85); }
.crl-btn--line {
  --bs-btn-color: var(--ink); --bs-btn-border-color: var(--ink);
  --bs-btn-hover-bg: var(--ink); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: var(--ink);
  --bs-btn-active-bg: var(--ink); --bs-btn-active-color: #fff;
}
.crl-btn--sm { --bs-btn-padding-x: 1.3rem; --bs-btn-padding-y: .65rem; --bs-btn-font-size: .9375rem; }

/* ---------- Barra de progreso de lectura ---------- */
.scroll-progress {
  position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 1100;
  background: linear-gradient(90deg, var(--red-dark), var(--red-hot));
  transform-origin: left; transform: scaleX(0);
}

/* ---------- Navbar ---------- */
.crl-nav {
  padding: 18px 0; background: transparent;
  transition: padding .3s var(--ease), background-color .3s, box-shadow .3s;
}
.crl-nav.is-scrolled { padding: 8px 0; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 6px 24px -14px rgba(0,0,0,.35); }
.crl-nav .navbar-brand img { height: 52px; width: auto; transition: height .3s var(--ease); }
.crl-nav.is-scrolled .navbar-brand img { height: 44px; }
.crl-nav .nav-link { color: var(--ink); font-weight: 500; font-size: .9375rem; position: relative; padding: .4rem 0 !important; }
.crl-nav .nav-link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--red);
  transform: scaleX(0); transform-origin: right; transition: transform .35s var(--ease);
}
.crl-nav .nav-link:hover::after, .crl-nav .nav-link.active::after { transform: scaleX(1); transform-origin: left; }
.crl-nav .nav-link.active { color: var(--red); }

.crl-toggler { border: 0; padding: 10px; display: grid; gap: 5px; box-shadow: none !important; }
.crl-toggler span { display: block; width: 26px; height: 2.5px; background: var(--ink); border-radius: 2px; }
.crl-toggler span:nth-child(2) { width: 18px; justify-self: end; }

@media (max-width: 991.98px) {
  .crl-offcanvas { --bs-offcanvas-width: min(340px, 86vw); }
  .crl-offcanvas .nav-link { font-size: 1.25rem; font-weight: 600; padding: .85rem 0 !important; border-bottom: 1px solid var(--line); }
  .crl-offcanvas .nav-link::after { display: none; }
  .crl-offcanvas .btn { width: 100%; }
}

/* ---------- Apariciones al hacer scroll (RevealManager) ---------- */
.reveal {
  opacity: 0; transform: var(--reveal-from);
  transition: opacity .8s var(--ease), transform .9s var(--ease);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(130px, 16vw, 180px) 0 clamp(80px, 10vw, 120px); overflow: hidden; }
.hero__bg { position: absolute; inset: 0; pointer-events: none; }
.hero__ring {
  position: absolute; right: -14vw; top: -18vw; width: 62vw; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(227, 6, 19, .18);
}
.hero__ring--2 { right: -6vw; top: -10vw; width: 46vw; border: 1.5px solid rgba(0,0,0,.06); }
.hero__title { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1.02; }
.hero__line { display: block; }
.hero__word { color: var(--red); }
.hero__word-wrap { min-height: 1.02em; white-space: nowrap; }
.hero__caret { display: inline-block; width: .08em; height: .85em; margin-left: .06em; background: var(--red); vertical-align: -0.06em; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero__lead { margin-top: 28px; font-size: clamp(1.0625rem, 1.5vw, 1.25rem); font-weight: 300; max-width: 34rem; }
.hero__cta { margin-top: 38px; }

.growth { margin: 0; }
.growth svg { width: 100%; height: auto; overflow: visible; }
.growth [data-depth] { transition: transform .4s var(--ease); }
.growth__base { stroke: var(--line); stroke-width: 2; }
.bar { fill: var(--ink); transform-box: fill-box; transform-origin: bottom; }
.b4 { fill: var(--ink); }
.growth__labels text { font: 500 15px "Poppins", sans-serif; fill: var(--mute); text-anchor: middle; }
.growth figcaption { margin-top: 10px; font-size: .9375rem; color: var(--mute); text-align: right; }

.hero__scroll {
  position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px;
  border: 2px solid var(--ink); border-radius: 14px;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; background: var(--red); border-radius: 2px; }

@media (prefers-reduced-motion: no-preference) {
  /* Secuencia de entrada del hero: una sola coreografía */
  .hero__line { opacity: 0; transform: translateY(.5em); animation: lineIn .9s var(--ease) forwards; }
  .hero__line:nth-child(2) { animation-delay: .12s; }
  .hero__line:nth-child(3) { animation-delay: .24s; }
  .hero__lead, .hero__cta { opacity: 0; animation: fadeUp .9s var(--ease) forwards; }
  .hero__lead { animation-delay: .45s; }
  .hero__cta { animation-delay: .6s; }
  .bar { animation: rise .9s var(--ease) both; }
  .b1 { animation-delay: .5s; } .b2 { animation-delay: .62s; } .b3 { animation-delay: .74s; } .b4 { animation-delay: .86s; }
  .growth__arrow { stroke-dasharray: 640; stroke-dashoffset: 640; animation: draw 1.2s 1.1s cubic-bezier(.6,0,.2,1) forwards; }
  .growth__head { opacity: 0; transform-box: fill-box; transform-origin: center; animation: pop .4s 2.1s var(--ease) forwards; }
  .hero__ring { animation: spin 60s linear infinite; }
  .hero__ring--2 { animation-duration: 90s; animation-direction: reverse; }
  .hero__scroll span { animation: wheel 1.8s ease-in-out infinite; }
}
@keyframes lineIn { to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes rise { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: scale(.3); } 70% { transform: scale(1.15); } to { opacity: 1; transform: scale(1); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes wheel { 0% { transform: translateY(0); opacity: 1; } 80% { transform: translateY(14px); opacity: 0; } 100% { opacity: 0; } }

/* ---------- Cinta de sectores ---------- */
.marquee { background: var(--red); color: #fff; overflow: hidden; padding: 18px 0; transform: rotate(-1.2deg); margin: 0 -2vw; position: relative; z-index: 2; }
.marquee__track { display: flex; width: max-content; list-style: none; margin: 0; padding: 0; animation: marquee 38s linear infinite; }
.marquee:hover .marquee__track { animation-play-state: paused; }
.marquee__item { font-weight: 700; font-size: clamp(1.1rem, 2vw, 1.5rem); white-space: nowrap; padding: 0 28px; display: flex; align-items: center; gap: 56px; }
.marquee__item::after { content: ""; width: 12px; height: 12px; background: #fff; border-radius: 3px; transform: rotate(45deg); margin-left: 28px; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .marquee__track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; } }

/* ---------- Qué es + cifras ---------- */
.intro { background: var(--ink); color: #fff; padding: calc(var(--sec) + 20px) 0 var(--sec); margin-top: -14px; }
.intro__big { font-size: clamp(1.5rem, 2.8vw, 2.25rem); font-weight: 500; line-height: 1.3; letter-spacing: -0.015em; }
.intro__small { color: #BDBDBD; font-weight: 300; border-left: 4px solid var(--red); padding-left: 22px; }
.stats { margin-top: clamp(56px, 8vw, 96px); border-top: 1px solid #2E2E2E; }
.stats__item { padding: 32px 20px 8px 0; display: flex; flex-direction: column; }
.stats__n { font-size: clamp(3.4rem, 7vw, 5.5rem); font-weight: 900; line-height: 1; color: #fff; letter-spacing: -0.05em; }
.stats__item:nth-child(4) .stats__n { color: var(--red); }
.stats__l { margin-top: 10px; color: #BDBDBD; font-size: .9375rem; }

/* ---------- Encabezados de sección ---------- */
.sec { padding: var(--sec) 0; }
.sec-head { max-width: 42rem; margin-bottom: clamp(44px, 6vw, 68px); }
.sec-head h2, .why__title { font-size: clamp(2.1rem, 4.4vw, 3.4rem); font-weight: 800; letter-spacing: -0.035em; }
.sec-head p { margin-top: 14px; color: var(--mute); font-size: 1.125rem; }
.sec-head--light h2 { color: #fff; }
.sec-head--light p { color: rgba(255,255,255,.85); }

/* ---------- Servicios ---------- */
.svc-card {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%;
  position: relative; height: 100%; padding: clamp(28px, 3.5vw, 44px);
  background: var(--fog); border-radius: 24px; overflow: hidden;
  transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .25s ease-out, background-color .3s, box-shadow .3s;
  will-change: transform;
}
/* Luz roja que sigue al cursor */
.svc-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s;
  background: radial-gradient(420px circle at var(--mx) var(--my), rgba(227, 6, 19, .14), transparent 60%);
}
.svc-card:hover { background: #fff; box-shadow: 0 30px 60px -30px rgba(0,0,0,.35), inset 0 0 0 1.5px var(--ink); }
.svc-card:hover::before { opacity: 1; }
.svc-card__icon { width: 64px; height: 64px; border-radius: 18px; background: #fff; display: grid; place-items: center; margin-bottom: 26px; transition: background-color .3s, transform .4s var(--ease); }
.svc-card__icon svg { width: 34px; height: 34px; fill: none; stroke: var(--red); stroke-width: 3.2; stroke-linecap: round; stroke-linejoin: round; transition: stroke .3s; }
.svc-card:hover .svc-card__icon { background: var(--red); transform: rotate(-8deg) scale(1.06); }
.svc-card:hover .svc-card__icon svg { stroke: #fff; }
.svc-card h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); font-weight: 700; }
.svc-card p { margin-top: 12px; color: var(--mute); }
.svc-card__more {
  margin-top: 26px; background: none; border: 0; padding: 0; font-weight: 600; color: var(--red);
  display: inline-flex; align-items: center; gap: 10px; position: relative; z-index: 1;
}
.svc-card__more::after { content: ""; width: 22px; height: 2px; background: currentColor; transition: width .3s var(--ease); }
.svc-card__more:hover::after { width: 40px; }

/* Modal */
.crl-modal .modal-content { border: 0; border-radius: 24px; overflow: hidden; }
.crl-modal .modal-header { border: 0; padding: 32px 36px 8px; border-top: 6px solid var(--red); }
.crl-modal .modal-title { font-size: 1.6rem; font-weight: 800; }
.crl-modal .modal-body { padding: 8px 36px 12px; }
.crl-modal .modal-footer { border: 0; padding: 12px 36px 32px; justify-content: flex-start; }
.svc-modal__summary { font-size: 1.125rem; }
.svc-modal__h { font-size: 1rem; font-weight: 700; margin: 24px 0 10px; }
.svc-modal__list { list-style: none; padding: 0; margin: 0; }
.svc-modal__list li { padding: 10px 0 10px 30px; border-bottom: 1px solid var(--line); position: relative; font-weight: 500; color: var(--ink); }
.svc-modal__list li::before { content: ""; position: absolute; left: 4px; top: 50%; width: 12px; height: 7px; border-left: 2.5px solid var(--red); border-bottom: 2.5px solid var(--red); transform: translateY(-70%) rotate(-45deg); }
.svc-modal__meta { margin-top: 18px; }
.svc-modal__box { background: var(--fog); border-radius: 14px; padding: 16px 18px; height: 100%; display: grid; gap: 4px; font-size: .9375rem; }
.svc-modal__box strong { color: var(--ink); }
.modal-backdrop.show { opacity: .7; }

/* ---------- Problemas ---------- */
.problems { background: var(--red); padding: var(--sec) 0; color: #fff; position: relative; overflow: hidden; }
.problems::before {
  content: ""; position: absolute; width: 60vw; aspect-ratio: 1; right: -25vw; bottom: -30vw; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.12), transparent 65%); pointer-events: none;
}
.pb-tabs { border-top: 1px solid rgba(255,255,255,.35); }
.pb-tabs button {
  text-align: left; font: 500 1.0625rem/1.4 "Poppins", sans-serif; color: rgba(255,255,255,.85);
  background: none; border: 0; border-bottom: 1px solid rgba(255,255,255,.35);
  padding: 17px 44px 17px 0; position: relative; transition: color .2s, padding-left .35s var(--ease);
}
.pb-tabs button::before {
  content: ""; position: absolute; left: 0; top: 50%; width: 0; height: 3px; background: #fff;
  transform: translateY(-50%); transition: width .35s var(--ease);
}
.pb-tabs button::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px;
  border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: translate(-6px, -50%) rotate(45deg); opacity: 0; transition: opacity .2s, transform .35s var(--ease);
}
.pb-tabs button:hover { color: #fff; }
.pb-tabs button.active { color: #fff; font-weight: 700; padding-left: 34px; }
.pb-tabs button.active::before { width: 22px; }
.pb-tabs button.active::after { opacity: 1; transform: translate(0, -50%) rotate(45deg); }
.pb-tabs button:focus-visible { outline-color: #fff; }
.pb-panels { position: sticky; top: 110px; }
.pb-panel { background: #fff; color: var(--ink-2); border-radius: 24px; padding: clamp(28px, 4vw, 52px); box-shadow: 0 40px 80px -40px rgba(0,0,0,.5); }
.pb-panel.fade { transition: opacity .25s linear, transform .35s var(--ease); transform: translateY(10px); }
.pb-panel.fade.show { transform: none; }
.pb-now { color: var(--mute); padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.pb-now::before { content: "Lo que pasa hoy"; display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; font-size: .9375rem; }
.pb-fix { padding-top: 22px; font-size: clamp(1.25rem, 2.3vw, 1.75rem); font-weight: 700; color: var(--ink); line-height: 1.3; letter-spacing: -0.015em; }
.pb-fix::before { content: "Lo que hacemos"; display: block; font-weight: 600; color: var(--red); margin-bottom: 8px; font-size: .9375rem; letter-spacing: 0; }
.pb-link { display: inline-block; margin-top: 26px; font-weight: 600; color: var(--red); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 2px; }
.pb-link:hover { color: var(--red-dark); }

/* ---------- Para quién ---------- */
.aud { background: var(--fog); border-radius: 24px; padding: 34px 30px 38px; height: 100%; transition: transform .4s var(--ease), box-shadow .4s; }
.aud:hover { transform: translateY(-8px); box-shadow: 0 30px 50px -30px rgba(0,0,0,.35); }
.aud__size { display: flex; align-items: flex-end; gap: 6px; height: 48px; margin-bottom: 26px; }
.aud__size i { display: block; width: 20px; background: var(--ink); border-radius: 5px; transition: height .5s var(--ease); }
.aud__size i:nth-child(1) { height: 18px; }
.aud__size i:nth-child(2) { height: 32px; }
.aud__size i:nth-child(3) { height: 48px; }
.aud__size i.on { background: var(--red); }
.aud:hover .aud__size i.on { height: 48px; }
.aud h3 { font-size: 1.3rem; font-weight: 700; }
.aud > p { margin-top: 8px; color: var(--mute); }
.aud ul { list-style: none; padding: 0; margin: 22px 0 0; border-top: 1px solid #DCDCDC; }
.aud li { padding: 11px 0; border-bottom: 1px solid #DCDCDC; font-weight: 500; color: var(--ink); }

/* ---------- Proceso ---------- */
.process { background: var(--fog); }
.steps-wrap { position: relative; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.steps__rail { position: absolute; left: 28px; right: 28px; top: 27px; height: 4px; background: #DADADA; border-radius: 2px; }
.steps__fill { --p: 0; position: absolute; inset: 0; background: linear-gradient(90deg, var(--ink), var(--red)); transform-origin: left; transform: scaleX(var(--p)); border-radius: 2px; }
.steps__item { position: relative; padding-right: 22px; }
.steps__n {
  display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: #fff; border: 3px solid #DADADA; font-weight: 800; font-size: 1.25rem; color: var(--mute);
  position: relative; transition: border-color .3s, background-color .3s, color .3s, transform .4s var(--ease);
}
.steps__item.is-active .steps__n { border-color: var(--ink); color: var(--ink); transform: scale(1.06); }
.steps__item.is-active:last-child .steps__n { background: var(--red); border-color: var(--red); color: #fff; box-shadow: 0 0 0 8px rgba(227,6,19,.15); }
.steps h3 { margin-top: 22px; font-size: 1.15rem; font-weight: 700; }
.steps p { margin-top: 8px; font-size: .9375rem; color: var(--mute); }

/* ---------- Por qué ---------- */
.why { margin: 0; }
.why__item { padding: 24px 32px 24px 0; border-top: 1px solid var(--line); }
.why__item dt { font-weight: 700; color: var(--ink); font-size: 1.15rem; display: flex; align-items: center; gap: 12px; }
.why__item dt::before { content: ""; width: 10px; height: 10px; background: var(--red); border-radius: 3px; transform: rotate(45deg); transition: transform .4s var(--ease); }
.why__item:hover dt::before { transform: rotate(225deg) scale(1.3); }
.why__item dd { margin: 6px 0 0 22px; color: var(--mute); }

/* ---------- Nosotros ---------- */
.about { background: var(--ink); color: #D6D6D6; padding: var(--sec) 0; overflow: hidden; }
.about__word { font-size: clamp(4rem, 9vw, 8rem); font-weight: 900; font-style: italic; letter-spacing: -0.05em; line-height: .9; margin: 0; }
.about__word .k { color: transparent; -webkit-text-stroke: 2px #fff; transition: color .5s var(--ease); }
.about__word .r { color: var(--red); }
.about__word:hover .k { color: #fff; }
.about__def { margin: 40px 0 0; }
.about__def > div { display: grid; grid-template-columns: 70px 1fr; gap: 16px; padding: 16px 0; border-top: 1px solid #333; }
.about__def dt { font-weight: 800; color: #fff; }
.about__def dd { margin: 0; font-weight: 300; }
.about__mv h2 { color: #fff; font-size: 1.6rem; font-weight: 700; }
.about__mv h2 + p { margin-top: 12px; font-weight: 300; font-size: 1.125rem; }
.about__mv p + h2 { margin-top: 44px; }

/* ---------- Lo que viene ---------- */
.soon { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.soon__item {
  display: flex; align-items: center; gap: 12px; padding: 20px; border: 1.5px solid var(--line); border-radius: 16px;
  font-weight: 500; color: var(--ink); cursor: default; transition: background-color .3s, color .3s, border-color .3s, transform .3s var(--ease);
}
.soon__dot { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 0 rgba(227,6,19,.5); }
.soon__item:hover, .soon__item:focus-visible { background: var(--ink); color: #fff; border-color: var(--ink); transform: translateY(-4px); }
@media (prefers-reduced-motion: no-preference) {
  .soon__item:hover .soon__dot { animation: pulse 1.4s infinite; }
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(227,6,19,.6); } 100% { box-shadow: 0 0 0 12px rgba(227,6,19,0); } }
.tooltip { --bs-tooltip-bg: var(--red); --bs-tooltip-max-width: 240px; --bs-tooltip-font-size: .875rem; --bs-tooltip-padding-x: .8rem; --bs-tooltip-padding-y: .5rem; font-family: "Poppins", sans-serif; }

/* ---------- Contacto ---------- */
.contact { background: var(--red-soft); padding: var(--sec) 0; }
.contact__title { font-size: clamp(2.4rem, 5.4vw, 4rem); font-weight: 800; letter-spacing: -0.04em; }
.contact__lead { margin-top: 20px; font-size: 1.125rem; max-width: 28rem; }
.crl-form { background: #fff; border-radius: 26px; padding: clamp(24px, 4vw, 44px); box-shadow: 0 40px 80px -50px rgba(184, 0, 12, .5); }
.crl-form .form-label { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.crl-form .form-control, .crl-form .form-select { border: 1.5px solid #CFCFCF; border-radius: 12px; padding: .8rem .95rem; font-size: 1rem; }
.crl-form .form-control:focus, .crl-form .form-select:focus { border-color: var(--red); box-shadow: 0 0 0 .25rem rgba(227,6,19,.18); }
.crl-form .form-control.is-invalid { border-color: var(--red); background-image: none; padding-right: .95rem; }
.crl-form .invalid-feedback { color: var(--red-dark); font-weight: 500; }

/* Toast */
.crl-toast { --bs-toast-bg: var(--ink); --bs-toast-color: #fff; --bs-toast-border-color: transparent; border-left: 5px solid #2BB673; font-weight: 500; }
.crl-toast.toast--error { border-left-color: var(--red); }
.crl-toast .btn-close { filter: invert(1); }

/* ---------- Footer y volver arriba ---------- */
.foot { padding: 40px 0; border-top: 5px solid var(--red); }
.foot img { height: 60px; width: auto; }
.foot p { color: var(--mute); font-size: .9375rem; }
.foot a { font-weight: 600; font-size: .9375rem; color: var(--ink); }
.to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1000; width: 52px; height: 52px; border-radius: 50%;
  background: var(--red); display: grid; place-items: center; box-shadow: 0 12px 26px -10px rgba(227,6,19,.8);
  opacity: 0; transform: translateY(20px) scale(.8); pointer-events: none; transition: opacity .3s, transform .35s var(--ease);
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.to-top:hover { background: var(--red-dark); }

/* ---------- Responsive ---------- */
@media (max-width: 991.98px) {
  .steps { grid-template-columns: 1fr; gap: 30px; }
  .steps__rail { left: 27px; right: auto; top: 28px; bottom: 28px; width: 4px; height: auto; }
  .steps__fill { background: linear-gradient(180deg, var(--ink), var(--red)); transform-origin: top; transform: scaleY(var(--p)); }
  .steps__item { display: grid; grid-template-columns: 58px 1fr; column-gap: 22px; padding-right: 0; }
  .steps__item h3 { margin-top: 6px; grid-column: 2; }
  .steps__item p { grid-column: 2; }
  .steps__n { grid-row: span 2; }
  .soon { grid-template-columns: repeat(2, 1fr); }
  .pb-panels { position: static; }
  .growth { max-width: 560px; margin: 0 auto; }
  .hero__ring { width: 110vw; right: -50vw; top: -30vw; }
}
@media (max-width: 575.98px) {
  .crl-nav .navbar-brand img, .crl-nav.is-scrolled .navbar-brand img { height: 46px; }
  .soon { grid-template-columns: 1fr; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__scroll { display: none; }
  .stats__item { padding-right: 12px; }
  .crl-modal .modal-header, .crl-modal .modal-body, .crl-modal .modal-footer { padding-left: 22px; padding-right: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero__caret { animation: none; }
  .svc-card { transform: none; }
}
