/* ============================================================
   QuedaListo — Landing
   Usa los tokens de /css/quedalisto.css (se carga antes).
   Títulos: Manrope 800 · Texto: DM Sans
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: #FFFFFF !important;
  color: var(--ql-texto);
  font-size: 16px;
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; color: var(--ql-texto); font-family: var(--ql-font-titulo); font-weight: 800; letter-spacing: -.025em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.naranja { color: var(--ql-naranja); }

.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ql-azul); color: #fff; padding: 10px 16px; border-radius: var(--ql-r-sm); font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ── Botones de la landing ───────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 20px;
  border: 1.5px solid transparent; border-radius: var(--ql-r);
  font-size: 15px; font-weight: 700; line-height: 1.2; text-decoration: none; white-space: nowrap; cursor: pointer;
}
.btn svg { width: 18px; height: 18px; flex-shrink: 0; transition: transform var(--ql-transicion); }
.btn:hover svg[data-lucide="arrow-right"], .btn:hover .lucide-arrow-right { transform: translateX(3px); }
.btn-lg { min-height: 52px; padding: 13px 24px; font-size: 16px; }

/* ── Header ──────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgb(255 255 255 / .92);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--ql-borde-suave);
}
.navbar { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; flex-shrink: 0; }
.brand img { height: 40px; width: auto; display: block; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  padding: 8px 12px; border-radius: var(--ql-r-sm);
  color: var(--ql-texto); font-weight: 600; font-size: 15px; text-decoration: none;
}
.nav-links a:hover { background: var(--ql-celeste); color: var(--ql-azul); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: auto; }
.nav-legal {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 10px; border-radius: var(--ql-r-sm);
  color: var(--ql-texto-2); font-size: 13px; font-weight: 600; text-decoration: none;
}
.nav-legal svg { width: 16px; height: 16px; }
.nav-legal:hover { color: var(--ql-azul); background: var(--ql-celeste); }
.btn-nav { min-height: 42px; padding: 8px 18px; }

/* ── Hero ────────────────────────────────────────────────── */
.hero {
  position: relative; overflow: hidden;
  background: #DCEBFD url("/img/marca/fondo-hero.jpg") center bottom / cover no-repeat;
  background-image: image-set(url("/img/marca/fondo-hero.webp") type("image/webp"), url("/img/marca/fondo-hero.jpg") type("image/jpeg"));
  padding: 64px 0 clamp(120px, 12vw, 190px);
  color: #FFFFFF;
}
.hero::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: clamp(60px, 7vw, 110px);
  background: linear-gradient(180deg, rgb(220 235 253 / 0) 0%, rgb(220 235 253 / .85) 60%, #DCEBFD 100%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); gap: 48px; align-items: center; }
.hero-texto .ql-badge { margin-bottom: 20px; font-size: 14px; padding: 8px 14px; }
.ql-badge svg { width: 18px; height: 18px; color: var(--ql-naranja); }
.hero h1 { font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -.035em; max-width: 13ch; }
.hero h1 .ql-subrayado::after { bottom: -.08em; height: .12em; }
.lead { margin-top: 22px; max-width: 34em; font-size: clamp(17px, 1.6vw, 19px); color: var(--ql-texto-2); }
.lead strong { color: var(--ql-texto); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-puntos {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0;
  margin-top: 36px; max-width: 640px;
}
.hero-puntos li {
  display: flex; align-items: flex-start; gap: 10px; padding: 0 14px;
  font-size: 13px; font-weight: 600; line-height: 1.35; color: var(--ql-texto);
  border-left: 1px solid var(--ql-borde);
}
.hero-puntos li:first-child { padding-left: 0; border-left: 0; }
.hero-puntos svg { width: 22px; height: 22px; flex-shrink: 0; color: var(--ql-naranja); }
.hero-puntos img { width: 30px; height: 30px; flex-shrink: 0; padding: 5px; border-radius: 9px; background: #FFFFFF; }

/* Textos del hero sobre el fondo azul */
.hero h1 { color: #FFFFFF; }
.hero .lead { color: rgb(255 255 255 / .88); }
.hero .lead strong { color: #FFFFFF; }
.hero .ql-badge { background: rgb(255 255 255 / .14); color: #FFFFFF; border: 1px solid rgb(255 255 255 / .28); }
.hero .ql-badge svg { color: #FFB27A; }
.hero .btn-outline { color: #FFFFFF; border-color: rgb(255 255 255 / .8); background: transparent; }
.hero .btn-outline:hover { background: #FFFFFF; color: var(--ql-azul); }
.hero-puntos li { color: #FFFFFF; border-left-color: rgb(255 255 255 / .25); }
.hero-puntos svg { color: #FFB27A; }

/* Teléfono ilustrativo */
.hero-telefono { position: relative; display: flex; justify-content: center; padding: 12px 0; }
.phone-flota { animation: ql-flotar 6s ease-in-out infinite; will-change: transform; }
@keyframes ql-flotar {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-16px); }
}
@media (prefers-reduced-motion: reduce) { .phone-flota { animation: none; } }
.phone {
  width: 300px; padding: 11px; border-radius: 46px;
  background: #0F1B2D;
  box-shadow: 0 40px 80px rgb(2 12 40 / .45), inset 0 0 0 2px #2A3A52;
  transform: rotate(4deg);
}
.phone-screen {
  position: relative; overflow: hidden; height: 590px; border-radius: 36px;
  background: #FFFFFF; padding: 14px 14px 0;
  font-size: 12px; color: var(--ql-texto);
}
.notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 96px; height: 24px; border-radius: 20px; background: #0F1B2D; }
.ph-status { display: flex; justify-content: space-between; height: 20px; padding: 0 12px; font-weight: 700; font-size: 12px; }
.ph-top { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.ph-logo { height: 28px; width: auto; }
.ph-top svg { width: 20px; height: 20px; color: var(--ql-texto); }
.ph-ubic { display: flex; align-items: center; gap: 4px; margin-top: 12px; font-weight: 700; font-size: 13px; }
.ph-ubic svg { width: 15px; height: 15px; color: var(--ql-naranja); }
.ph-ubic svg:last-child { color: var(--ql-texto-2); }
.ph-search {
  display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px;
  border: 1.5px solid var(--ql-borde); border-radius: var(--ql-r-pill); color: var(--ql-texto-2);
}
.ph-search svg { width: 16px; height: 16px; }
.ph-banner {
  position: relative; overflow: hidden; margin-top: 14px; padding: 16px 92px 16px 16px; border-radius: 18px;
  background: var(--ql-azul); color: #fff;
}
.ph-banner::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 170px; height: 140px;
  border-radius: 50%; background: var(--ql-naranja);
}
.ph-banner strong { display: block; font-family: var(--ql-font-titulo); font-size: 15px; line-height: 1.2; }
.ph-banner span { position: relative; z-index: 1; display: block; max-width: 11em; margin-top: 6px; font-size: 11px; opacity: .9; }
.ph-banner img { position: absolute; z-index: 1; right: 14px; bottom: 14px; width: 58px; height: 58px; border-radius: 15px; box-shadow: 0 6px 16px rgb(2 12 40 / .35); }
.ph-head { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 8px; }
.ph-head strong { font-family: var(--ql-font-titulo); font-size: 15px; }
.ph-head span { color: var(--ql-azul); font-weight: 700; font-size: 11px; }
.ph-cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ph-cats div {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 4px;
  border: 1px solid var(--ql-borde-suave); border-radius: 14px; background: #fff;
  font-weight: 600; font-size: 11px; text-align: center;
}
.ph-cats img { width: 30px; height: 30px; }
.ph-nav {
  position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 10px 8px 16px; border-top: 1px solid var(--ql-borde-suave); background: #fff;
}
.ph-nav span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; color: var(--ql-texto-3); }
.ph-nav span.on { color: var(--ql-naranja-texto); font-weight: 700; }
.ph-nav svg { width: 18px; height: 18px; }

/* ── Secciones ───────────────────────────────────────────── */
.section { padding: clamp(64px, 9vw, 112px) 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.eyebrow {
  margin-bottom: 10px; color: var(--ql-naranja-texto);
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
}
.eyebrow-claro { color: #FFB27A; }
.section h2 { font-size: clamp(30px, 3.8vw, 44px); line-height: 1.1; }
.section-lead { margin-top: 14px; font-size: 17px; color: var(--ql-texto-2); }
.section-lead a { color: var(--ql-azul); font-weight: 700; }

/* Servicios: grilla de oficios en una banda celeste */
.servicios { background: linear-gradient(180deg, #DCEBFD 0, var(--ql-celeste) 120px); position: relative; }
.servicios .wrap { position: relative; }
.oficios { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.oficios li {
  display: flex; align-items: center; gap: 14px; min-height: 76px; padding: 14px 16px;
  background: #fff; border-radius: var(--ql-r-lg);
  font-weight: 700; font-size: 15px; line-height: 1.25;
  transition: transform var(--ql-transicion), box-shadow var(--ql-transicion);
}
.oficios li:hover { transform: translateY(-2px); box-shadow: var(--ql-sombra-2); }
.oficios img { width: 40px; height: 40px; flex-shrink: 0; }

/* Cómo funciona: línea con curva que une los pasos */
.pasos { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: paso; }
.pasos::before {
  content: ""; position: absolute; left: 32px; right: 16%; top: 31px; height: 3px;
  background: repeating-linear-gradient(90deg, var(--ql-borde) 0 10px, transparent 10px 18px);
}
.paso { position: relative; }
.paso-num {
  position: relative; display: grid; place-items: center; width: 64px; height: 64px; margin-bottom: 22px;
  border-radius: 50%; background: var(--ql-azul); color: #fff;
  font-family: var(--ql-font-titulo); font-size: 26px; font-weight: 800;
  box-shadow: 0 0 0 8px #fff;
}
.paso:last-child .paso-num { background: var(--ql-naranja); color: var(--ql-sobre-naranja); }
.paso h3 { font-size: 22px; margin-bottom: 8px; }
.paso p { color: var(--ql-texto-2); max-width: 30ch; }

/* Beneficios: lista en dos columnas, sin tarjetas */
.beneficios { background: linear-gradient(180deg, #F7FBFF, #FFFFFF); }
.beneficios-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.beneficios-lista { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px 36px; }
.beneficios-lista li { display: flex; gap: 16px; }
.b-ico {
  display: grid; place-items: center; flex-shrink: 0; width: 48px; height: 48px;
  border-radius: 14px 14px 14px 4px; background: var(--ql-celeste); color: var(--ql-azul);
}
.b-ico svg { width: 24px; height: 24px; }
.b-ico img { width: 26px; height: 26px; }
.beneficios-lista h3 { font-size: 18px; margin-bottom: 6px; }
.beneficios-lista p { color: var(--ql-texto-2); font-size: 15px; }

/* Profesionales: panel azul con curvas del isotipo */
.pro-panel {
  position: relative; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); align-items: end;
  border-radius: 32px; background: var(--ql-azul); color: #fff;
}
.pro-curva { position: absolute; right: 0; top: 0; width: 55%; height: 100%; }
.pro-texto { position: relative; padding: clamp(32px, 5vw, 64px); }
.pro-panel h2 { color: #fff; max-width: 16ch; }
.pro-texto > p { margin-top: 14px; max-width: 36em; color: #D6E6FA; font-size: 17px; }
.pro-requisitos { display: grid; gap: 8px; margin-top: 22px; }
.pro-requisitos li { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.pro-requisitos svg { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--ql-naranja); color: var(--ql-sobre-naranja); stroke-width: 3; flex-shrink: 0; }
.pro-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.pro-link { color: #fff; font-weight: 700; text-underline-offset: 4px; }
.pro-link:hover { color: #FFB27A; }
.pro-foto { position: relative; align-self: end; display: flex; justify-content: center; padding: 32px 24px 0; }
.pro-foto img {
  display: block; width: min(320px, 100%); height: auto;
  border-radius: 28px 28px 0 0; background: var(--ql-celeste);
}

/* Preguntas frecuentes */
.faq { background: #fff; }
.faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.faq-lista { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--ql-borde); border-radius: var(--ql-r-lg); background: #fff; transition: border-color var(--ql-transicion), background var(--ql-transicion); }
.faq details[open] { border-color: var(--ql-azul-activo); background: #FAFCFF; }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; cursor: pointer; list-style: none;
  font-family: var(--ql-font-titulo); font-weight: 800; font-size: 17px; color: var(--ql-texto);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex-shrink: 0; width: 28px; height: 28px; border-radius: 50%;
  background: var(--ql-celeste) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230D47A1' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M12 5v14M5 12h14'/%3E%3C/svg%3E") center / 16px no-repeat;
  transition: transform var(--ql-transicion);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ql-texto-2); }
.faq details a { color: var(--ql-azul); font-weight: 700; }

/* Footer */
.footer {
  background:
    linear-gradient(180deg, rgb(6 26 72 / 0) 0%, rgb(6 26 72 / 0) 30%, rgb(6 26 72 / .5) 50%, rgb(6 26 72 / .6) 100%),
    #0A2A5E url("/img/marca/fondo-footer.jpg") center top / cover no-repeat;
  color: #DCE7F7; padding: clamp(110px, 10vw, 170px) 0 24px;
  background-image:
    linear-gradient(180deg, rgb(6 26 72 / 0) 0%, rgb(6 26 72 / 0) 30%, rgb(6 26 72 / .5) 50%, rgb(6 26 72 / .6) 100%),
    image-set(url("/img/marca/fondo-footer.webp") type("image/webp"), url("/img/marca/fondo-footer.jpg") type("image/jpeg"));
}
.footer-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr)); gap: 32px; }
.footer-marca img { height: 40px; width: auto; }
.footer-marca p { margin-top: 16px; max-width: 34ch; font-size: 14px; }
.footer-col { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.footer-col h3 { color: #fff; font-size: 15px; margin-bottom: 4px; letter-spacing: 0; }
.footer-col a { color: #E6EEF9; text-decoration: none; }
.footer-col a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.footer-arrep { color: #FFB27A !important; }
.footer-copy { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / .12); font-size: 13px; color: #C3D3EA; }

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .oficios { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-marca { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero { padding-top: 36px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { max-width: 16ch; }
  .hero-puntos { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 0; }
  .hero-puntos li:nth-child(3) { padding-left: 0; border-left: 0; }
  .hero-telefono { margin-top: 8px; }
  .phone { transform: none; width: 280px; }
  .phone-screen { height: 600px; }
  .beneficios-grid, .faq-grid { grid-template-columns: 1fr; gap: 32px; }
  .pasos { grid-template-columns: 1fr; gap: 28px; }
  .pasos::before { left: 31px; right: auto; top: 32px; bottom: 32px; width: 3px; height: auto;
    background: repeating-linear-gradient(180deg, var(--ql-borde) 0 10px, transparent 10px 18px); }
  .paso { display: grid; grid-template-columns: 64px 1fr; column-gap: 18px; }
  .paso-num { grid-row: span 2; margin-bottom: 0; }
  .paso h3 { align-self: end; }
  .pro-panel { grid-template-columns: 1fr; }
  .pro-curva { width: 100%; height: 45%; top: auto; bottom: 0; }
  .pro-foto { padding-top: 0; }
}
@media (max-width: 640px) {
  .navbar { gap: 8px; min-height: 64px; }
  .brand img { height: 32px; }
  .nav-legal span { display: none; }
  .nav-legal { padding: 8px; }
  .nav-legal svg { width: 20px; height: 20px; }
  .btn-nav { padding: 8px 12px; font-size: 14px; }
  .btn-nav.btn-accent { display: none; }
  .hero-ctas .btn { width: 100%; }
  .oficios { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .oficios li { gap: 10px; padding: 12px; font-size: 14px; min-height: 68px; }
  .oficios img { width: 34px; height: 34px; }
  .beneficios-lista { grid-template-columns: 1fr; gap: 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pro-ctas .btn { width: 100%; white-space: normal; text-align: center; }
}
@media (max-width: 380px) {
  .brand img { height: 28px; }
  .hero-puntos { grid-template-columns: 1fr; }
  .hero-puntos li { padding-left: 0; border-left: 0; }
  .phone { width: 260px; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* Navegación: sin cortes de línea */
.nav-links a, .nav-legal, .btn-nav { white-space: nowrap; }
@media (max-width: 1320px) { .nav-links a[href="#preguntas"] { display: none; } }
@media (max-width: 1200px) { .nav-legal span { display: none; } .nav-legal { padding: 8px; } .nav-legal svg { width: 20px; height: 20px; } }

/* Celular y tablet: el fondo no se estira a lo alto (se pixelaba). La imagen
   va a todo el ancho, abajo en el hero y arriba en el footer, y el resto es
   un degradé del mismo azul que se ve nítido en cualquier pantalla. */
@media (max-width: 900px) {
  .hero {
    background:
      linear-gradient(180deg, #011A5A 0, rgb(1 26 90 / 0) 18vw) left bottom / 100% 56.25vw no-repeat,
      url("/img/marca/fondo-hero.jpg") left bottom / 100% auto no-repeat,
      radial-gradient(120% 60% at 100% 35%, rgb(30 136 229 / .28), transparent 60%),
      #011A5A;
    background-image:
      linear-gradient(180deg, #011A5A 0, rgb(1 26 90 / 0) 18vw),
      image-set(url("/img/marca/fondo-hero.webp") type("image/webp"), url("/img/marca/fondo-hero.jpg") type("image/jpeg")),
      radial-gradient(120% 60% at 100% 35%, rgb(30 136 229 / .28), transparent 60%);
    padding-bottom: 46vw;
  }
  .hero::after { height: 7vw; }
  .footer {
    background:
      linear-gradient(180deg, rgb(1 26 90 / 0) 0, rgb(1 26 90 / 0) 26vw, #011A5A 56.25vw) left top / 100% 100% no-repeat,
      url("/img/marca/fondo-footer.jpg") left top / 100% auto no-repeat,
      #011A5A;
    background-image:
      linear-gradient(180deg, rgb(1 26 90 / 0) 0, rgb(1 26 90 / 0) 26vw, #011A5A 56.25vw),
      image-set(url("/img/marca/fondo-footer.webp") type("image/webp"), url("/img/marca/fondo-footer.jpg") type("image/jpeg"));
    padding-top: 34vw;
  }
}
