/* Ya Anda — landing. CSS propio, sin frameworks. Mobile-first. */

:root {
  --petroleo: #0F4C5C;
  --petroleo-oscuro: #0B3A47;
  --carbon: #1E2A30;
  --claro: #E7F0F2;
  --blanco: #FFFFFF;
  --wa: #25D366;
  --wa-oscuro: #1DB954;
  --gris-texto: #4A5A62;
  --borde: #CFDDE1;
  --radio: 14px;
  --sombra: 0 6px 24px rgba(15, 76, 92, 0.12);
  --fuente-titulos: 'Nunito', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --fuente-texto: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --ancho-max: 1100px;
  --alto-cabecera: 64px;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1.0625rem;
  line-height: 1.55;
  color: var(--carbon);
  background: var(--blanco);
  padding-top: var(--alto-cabecera);
}

h1, h2, h3 { font-family: var(--fuente-titulos); line-height: 1.15; margin: 0; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--petroleo); }
svg { display: inline-block; vertical-align: middle; }

/* Foco visible y consistente */
:focus-visible { outline: 3px solid var(--petroleo); outline-offset: 3px; border-radius: 4px; }
.boton:focus-visible { outline-color: var(--carbon); }
.seccion--oscura :focus-visible, .pie :focus-visible, .hero :focus-visible { outline-color: var(--blanco); }

.saltar {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--carbon); color: var(--blanco); padding: 10px 14px; border-radius: 8px;
}
.saltar:focus { top: 8px; }

.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.contenedor { width: 100%; max-width: var(--ancho-max); margin: 0 auto; padding: 0 16px; }
.contenedor--angosto { max-width: 820px; }

/* Logo inline: el wordmark usa la Nunito que carga la página */
.logo-wm { font-family: var(--fuente-titulos); font-weight: 900; font-size: 210px; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.0625rem;
  padding: 14px 22px; border-radius: 999px; text-decoration: none;
  border: 2px solid transparent; transition: transform .12s ease, background-color .12s ease, box-shadow .12s ease;
  min-height: 48px;
}
.boton:active { transform: translateY(1px); }
.boton--wa { background: var(--wa); color: var(--carbon); box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35); }
.boton--wa:hover { background: var(--wa-oscuro); }
.boton--grande { font-size: 1.125rem; padding: 17px 18px; width: 100%; }
.boton--chico { font-size: 1rem; padding: 10px 16px; min-height: 44px; box-shadow: none; }
.icono-wa { flex: none; }

/* ---------- 1. Cabecera ---------- */
.cabecera {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--alto-cabecera);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: saturate(160%) blur(8px);
  border-bottom: 1px solid var(--borde);
}
.cabecera__fila { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.cabecera__logo { display: inline-flex; align-items: center; }
.cabecera__logo svg { width: 132px; height: 44px; }

/* ---------- 2. Hero ---------- */
.hero {
  background: var(--petroleo);
  background-image: radial-gradient(1200px 500px at 85% -10%, rgba(255,255,255,0.10), transparent 60%);
  color: var(--blanco);
  padding: 52px 0 44px;
}
.hero__cuerpo { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }
.hero__titulo { font-size: clamp(2.6rem, 10vw, 4.5rem); font-weight: 900; letter-spacing: -0.02em; }
.hero__ya { display: block; }
.hero__sub { font-size: 1.125rem; line-height: 1.5; max-width: 34em; margin: 0; color: rgba(255,255,255,0.95); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--blanco); color: var(--petroleo);
  font-family: var(--fuente-titulos); font-weight: 800; font-size: 0.9375rem;
  padding: 8px 14px; border-radius: 999px;
}
.chip::before {
  content: ""; width: 18px; height: 18px; flex: none; border-radius: 50%;
  background: var(--petroleo) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}

/* ---------- Secciones ---------- */
.seccion { padding: 56px 0; }
.seccion--clara { background: var(--claro); }
.seccion--oscura { background: var(--petroleo); color: var(--blanco); }
.titulo { font-size: clamp(1.75rem, 6vw, 2.5rem); font-weight: 900; color: var(--petroleo); margin-bottom: 8px; }
.titulo--claro { color: var(--blanco); }
.bajada { font-size: 1.0625rem; color: var(--gris-texto); margin-bottom: 28px; max-width: 42em; }
.nota { font-size: 0.9375rem; color: var(--gris-texto); margin-top: 14px; }
.nota--centrada { text-align: center; }

/* ---------- 3. Cómo funciona ---------- */
.pasos { display: grid; gap: 18px; counter-reset: paso; }
.paso {
  position: relative; background: var(--claro); border-radius: var(--radio);
  padding: 22px 20px 18px 20px;
}
.paso__icono {
  display: inline-flex; width: 60px; height: 60px; align-items: center; justify-content: center;
  background: var(--blanco); color: var(--petroleo); border-radius: 16px; margin-bottom: 12px;
}
.paso__num {
  position: absolute; top: 16px; right: 16px;
  font-family: var(--fuente-titulos); font-weight: 900; font-size: 1rem;
  width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center;
  background: var(--petroleo); color: var(--blanco);
}
.paso__titulo { font-size: 1.25rem; font-weight: 800; color: var(--petroleo); margin-bottom: 6px; }
.paso p { margin: 0; color: var(--carbon); }

/* ---------- 4. Precios ---------- */
.tabla-envoltorio { background: var(--blanco); border-radius: var(--radio); box-shadow: var(--sombra); overflow: hidden; }
.precios { width: 100%; border-collapse: collapse; font-size: 1rem; }
.precios th, .precios td { text-align: left; padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--borde); }
.precios thead th {
  border-top: 0; background: var(--petroleo); color: var(--blanco);
  font-family: var(--fuente-titulos); font-weight: 800; font-size: 0.9375rem; letter-spacing: 0.02em;
}
.precios tbody th { font-family: var(--fuente-titulos); font-weight: 800; color: var(--petroleo); width: 44%; }
.precios td strong { color: var(--carbon); }

.promo {
  margin-top: 32px; background: var(--petroleo); color: var(--blanco);
  border-radius: var(--radio); padding: 26px 22px;
}
.promo__etiqueta {
  display: inline-block; background: var(--blanco); color: var(--petroleo);
  font-family: var(--fuente-titulos); font-weight: 800; font-size: 0.875rem;
  padding: 6px 12px; border-radius: 999px; margin-bottom: 14px;
}
.promo__titulo { font-size: 1.5rem; font-weight: 900; margin-bottom: 14px; }
.promo__lista { display: grid; gap: 10px; margin-bottom: 20px; }
.promo__lista li { padding-left: 26px; position: relative; }
.promo__lista li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--wa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%231E2A30' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.promo .boton { width: 100%; }

/* ---------- 5. Puntos ---------- */
.puntos { display: grid; gap: 16px; }
.punto {
  border: 2px solid var(--claro); border-radius: var(--radio); padding: 22px 20px;
  background: var(--blanco); box-shadow: var(--sombra);
}
.punto__localidad {
  display: inline-block; background: var(--claro); color: var(--petroleo);
  font-family: var(--fuente-titulos); font-weight: 800; font-size: 0.875rem;
  padding: 4px 10px; border-radius: 999px; margin-bottom: 10px;
}
.punto__nombre { font-size: 1.375rem; font-weight: 900; color: var(--petroleo); margin-bottom: 8px; }
.punto__dato { margin: 0 0 4px; }
.punto__etiqueta { font-weight: 700; color: var(--gris-texto); }

/* ---------- 6. Negocios ---------- */
.negocios { display: grid; gap: 28px; }
.negocios__marca {
  font-family: var(--fuente-titulos); font-weight: 900; font-size: 1.125rem; letter-spacing: 0.01em;
  margin-bottom: 8px; color: var(--blanco);
}
.negocios__marca span { background: var(--blanco); color: var(--petroleo); padding: 2px 8px; border-radius: 6px; margin-left: 2px; }
.negocios__bajada { font-size: 1.0625rem; color: rgba(255,255,255,0.95); max-width: 40em; }
.negocios__incluye { display: grid; gap: 8px; margin: 18px 0; }
.negocios__incluye li { padding-left: 28px; position: relative; }
.negocios__incluye li::before {
  content: ""; position: absolute; left: 0; top: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--blanco) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.2l3 3 6-6.4' fill='none' stroke='%230F4C5C' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat;
}
.negocios__extra { font-size: 0.9375rem; color: rgba(255,255,255,0.88); }
.negocios__tarjeta {
  background: var(--blanco); color: var(--carbon); border-radius: var(--radio); padding: 26px 22px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}
.negocios__precio { font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.125rem; color: var(--petroleo); margin-bottom: 4px; }
.negocios__monto { display: block; font-size: 2.75rem; font-weight: 900; line-height: 1.1; }
.negocios__condiciones { font-size: 0.9375rem; color: var(--gris-texto); }
.negocios__gancho { margin: 14px 0 18px; }
.negocios__tarjeta .boton { width: 100%; }

/* ---------- 7. Preguntas ---------- */
.faq { display: grid; gap: 10px; }
.faq__item { background: var(--claro); border-radius: 12px; padding: 0 18px; }
.faq__item summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 0; font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.0625rem; color: var(--petroleo);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--petroleo);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6v10M6 11h10' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 22'%3E%3Cpath d='M11 6v10M6 11h10' stroke='%23000' stroke-width='2.4' stroke-linecap='round'/%3E%3C/svg%3E") center/22px no-repeat;
  transition: transform .15s ease;
}
.faq__item[open] summary::after { transform: rotate(45deg); }
.faq__item p { margin: 0; padding: 0 0 18px; }

.cierre { text-align: center; margin-top: 40px; }
.cierre__texto { font-family: var(--fuente-titulos); font-weight: 800; font-size: 1.375rem; color: var(--petroleo); margin-bottom: 16px; }
.cierre .boton { width: 100%; }

/* ---------- 8. Pie ---------- */
.pie { background: var(--carbon); color: rgba(255,255,255,0.9); padding: 40px 0 28px; font-size: 0.9375rem; }
.pie a { color: var(--blanco); }
.pie__grilla { display: grid; gap: 22px; }
.pie__marca svg { width: 150px; height: 50px; display: block; margin-bottom: 12px; }
.pie__grupo { margin: 0; }
.pie__contacto { display: flex; flex-wrap: wrap; gap: 10px 22px; }
.pie__enlace { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; min-height: 44px; }
.pie__enlace:hover { text-decoration: underline; }
.pie__legal { margin: 0; color: rgba(255,255,255,0.7); font-size: 0.875rem; border-top: 1px solid rgba(255,255,255,0.15); padding-top: 18px; }

/* ---------- Desktop ---------- */
@media (min-width: 720px) {
  .contenedor { padding: 0 24px; }
  .boton--grande { width: auto; font-size: 1.1875rem; padding: 18px 28px; }
  .promo .boton, .cierre .boton, .negocios__tarjeta .boton { width: auto; }
  .cabecera__logo svg { width: 150px; height: 50px; }
  .hero { padding: 84px 0 72px; }
  .hero__titulo { font-size: clamp(3.5rem, 7vw, 5.25rem); }
  .hero__ya { display: inline; }
  .hero__sub { font-size: 1.3125rem; }
  .seccion { padding: 76px 0; }
  .pasos { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .precios tbody th { width: 38%; }
  .promo { padding: 34px 32px; display: grid; grid-template-columns: 1fr auto; gap: 8px 32px; align-items: center; }
  .promo__etiqueta, .promo__titulo, .promo__lista { grid-column: 1; }
  .promo .boton { grid-column: 2; grid-row: 2 / span 2; align-self: center; }
  .promo__lista { margin-bottom: 0; }
  .puntos { grid-template-columns: repeat(2, 1fr); gap: 22px; }
  .negocios { grid-template-columns: 1.2fr 1fr; gap: 40px; align-items: start; }
  .negocios__tarjeta { padding: 34px 30px; position: sticky; top: calc(var(--alto-cabecera) + 24px); }
  .pie__grilla { grid-template-columns: 1fr auto; align-items: start; }
  .pie__legal { grid-column: 1 / -1; }
}

@media (min-width: 1000px) {
  .pasos { grid-template-columns: repeat(4, 1fr); }
}

@media print {
  .cabecera, .boton, .cierre { display: none !important; }
  body { padding-top: 0; }
}
