/* Página de Agenda Compartida: colores de Teoba (tinta, agua, hueso) con el naranja del producto.
   Pensada primero para celular: la abren desde un enlace de WhatsApp, a veces con poca señal. */
:root {
  --tinta: #14303a;
  --agua: #2f7f86;
  --agua-suave: #e1efef;
  --hueso: #f7f6f2;
  --hueso-2: #eeece6;
  --naranja: #b84e0e;
  --naranja-hover: #9e420b;
  --tenue: #5a666b;
  --borde: #d9d6ce;
  --titulos: "Bricolage Grotesque", "Segoe UI", system-ui, sans-serif;
  --texto: "Instrument Sans", "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--hueso); color: var(--tinta); font: 400 17px/1.6 var(--texto); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--agua); }
h1, h2, h3 { font-family: var(--titulos); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.3rem, 7vw, 4rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; }
section { padding-block: clamp(56px, 9vw, 104px); }
.ancho { max-width: 1120px; margin: 0 auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--agua); margin-bottom: 12px; }
:focus-visible { outline: 3px solid var(--agua); outline-offset: 3px; border-radius: 6px; }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 26px; border-radius: 12px; background: var(--naranja); color: #fff; font-weight: 600; text-decoration: none; transition: background 0.15s, transform 0.15s; }
.boton:hover { background: var(--naranja-hover); }
.boton:active { transform: translateY(1px); }
.boton-sec { background: transparent; color: var(--tinta); box-shadow: inset 0 0 0 1.5px var(--borde); }
.boton-sec:hover { background: var(--hueso-2); }
.boton-chico { min-height: 42px; padding: 0 18px; font-size: 0.95rem; }
.boton-claro { background: #fff; color: var(--tinta); }
.boton-claro:hover { background: var(--agua-suave); }
.acciones { display: flex; flex-wrap: wrap; gap: 12px; }

/* Barra superior */
.barra { position: sticky; top: 0; z-index: 10; background: rgba(247, 246, 242, 0.92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--borde); }
.barra-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 64px; }
.marca { display: flex; align-items: center; gap: 10px; color: var(--tinta); text-decoration: none; font-family: var(--titulos); font-weight: 800; font-size: 1.1rem; }
.marca img { border-radius: 9px; }

/* Aviso de recomendación (?de=…) */
.recomendado { background: var(--agua); color: #fff; text-align: center; padding: 10px 20px; font-weight: 500; }

/* Portada */
.portada { padding-top: clamp(40px, 7vw, 88px); overflow: hidden; }
.portada-in { display: grid; gap: 48px; align-items: center; }
.portada-texto { display: grid; gap: 22px; }
.portada h1 em { font-style: normal; color: var(--naranja); }
.entrada { font-size: 1.15rem; color: var(--tenue); max-width: 34em; }
.sellos { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--tenue); font-size: 0.95rem; }
.sellos li::before { content: "✓"; color: var(--agua); font-weight: 700; margin-right: 6px; }
.portada-celular { position: relative; justify-self: center; width: min(300px, 78vw); }
.nota-hoy { position: absolute; left: -36px; bottom: 42px; list-style: none; margin: 0; padding: 14px 16px; background: #fff; border-radius: 14px; box-shadow: 0 14px 40px rgba(20, 48, 58, 0.18); display: grid; gap: 8px; font-size: 0.85rem; width: 250px; }
.nota-hoy li { display: grid; grid-template-columns: 44px 1fr; gap: 6px; align-items: baseline; }
.nota-hoy time { font-variant-numeric: tabular-nums; color: var(--agua); font-weight: 600; }
.nota-hoy b { color: var(--naranja); }

/* Celular con captura */
.celular { margin: 0; border-radius: 34px; padding: 10px; background: var(--tinta); box-shadow: 0 30px 60px -20px rgba(20, 48, 58, 0.45); }
.celular img { border-radius: 25px; width: 100%; }

/* ¿Te suena? */
.problema { background: var(--tinta); color: var(--hueso); }
.problema h2 { color: #fff; }
.dichos { display: grid; gap: 14px; margin-block: 32px; }
.dichos p { font-family: var(--titulos); font-weight: 600; font-size: clamp(1.25rem, 3.4vw, 1.7rem); line-height: 1.25; color: #9fd0d4; }
.dichos p:nth-child(even) { padding-left: clamp(16px, 8vw, 120px); }
.respuesta { font-size: 1.15rem; max-width: 34em; }

/* Giros */
.lista-giros { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 1px; background: var(--borde); border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; }
.lista-giros li { background: var(--hueso); padding: 20px 22px; display: grid; gap: 4px; }
.lista-giros b { font-family: var(--titulos); font-size: 1.15rem; }
.lista-giros span { color: var(--tenue); font-size: 0.97rem; }

/* Funciones */
.funciones { background: #fff; }
.funciones > .ancho > h2 { max-width: 18em; }
.funcion { display: grid; gap: 28px; align-items: center; margin-top: clamp(48px, 8vw, 88px); }
.funcion .celular { width: min(260px, 70vw); justify-self: center; }
.funcion > div { display: grid; gap: 14px; max-width: 32em; }
.funcion p { color: var(--tenue); }
.funcion ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.funcion li { padding-left: 22px; position: relative; }
.funcion li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 10px; height: 10px; border-radius: 3px; background: var(--agua); }
.extras { margin-top: clamp(56px, 9vw, 96px); display: grid; gap: 28px; }
.extras > div { display: grid; gap: 8px; padding-top: 18px; border-top: 3px solid var(--naranja); }
.extras p { color: var(--tenue); }

/* Pasos */
.lista-pasos { list-style: none; counter-reset: paso; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.lista-pasos li { counter-increment: paso; display: grid; grid-template-columns: 52px 1fr; column-gap: 16px; }
.lista-pasos li::before { content: counter(paso); grid-row: span 2; width: 52px; height: 52px; border-radius: 14px; background: var(--agua); color: #fff; display: grid; place-items: center; font-family: var(--titulos); font-weight: 800; font-size: 1.4rem; }
.lista-pasos b { font-family: var(--titulos); font-size: 1.2rem; align-self: end; }
.lista-pasos span { color: var(--tenue); }

/* Precio */
.precio { background: var(--agua-suave); }
.precio-in { display: grid; gap: 32px; align-items: center; }
.precio-in > div:first-child { display: grid; gap: 14px; max-width: 34em; }
.precio-in p { color: var(--tenue); }
.precio-caja { background: #fff; border-radius: 20px; padding: 28px; display: grid; gap: 14px; justify-items: start; box-shadow: 0 10px 30px rgba(20, 48, 58, 0.08); }
.precio-caja .grande { font-family: var(--titulos); font-weight: 800; font-size: 2.2rem; color: var(--naranja); line-height: 1; }

/* Preguntas */
.preguntas h2 { margin-bottom: 24px; }
details { border-bottom: 1px solid var(--borde); padding: 16px 0; }
summary { cursor: pointer; font-weight: 600; font-size: 1.08rem; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--agua); font-size: 1.4rem; line-height: 1; }
details[open] summary::after { content: "–"; }
details p { color: var(--tenue); margin-top: 10px; max-width: 40em; }

/* Contacto */
.contacto { background: var(--naranja); color: #fff; }
.contacto-in { display: grid; gap: 16px; justify-items: start; }
.contacto h2 { color: #fff; }
.contacto a:not(.boton) { color: #fff; font-weight: 600; }
.correo { opacity: 0.95; }
.clientes { font-size: 0.95rem; opacity: 0.9; margin-top: 12px; }

/* Pie */
.pie { background: var(--hueso); padding-block: 36px; border-top: 1px solid var(--borde); color: var(--tenue); font-size: 0.9rem; }
.pie-in { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
.teoba { display: grid; gap: 6px; }
.teoba .lema { font-size: 0.8rem; }

@media (min-width: 760px) {
  .portada-in { grid-template-columns: 1.15fr 0.85fr; }
  .lista-giros { grid-template-columns: repeat(2, 1fr); }
  .funcion { grid-template-columns: 300px 1fr; gap: 64px; }
  .funcion:nth-of-type(even) { grid-template-columns: 1fr 300px; }
  .funcion:nth-of-type(even) .celular { order: 2; }
  .extras { grid-template-columns: repeat(2, 1fr); gap: 36px 48px; }
  .lista-pasos { grid-template-columns: repeat(3, 1fr); }
  .precio-in { grid-template-columns: 1.2fr 1fr; }
}
@media (min-width: 1000px) {
  .lista-giros { grid-template-columns: repeat(3, 1fr); }
  .extras { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 420px) {
  .nota-hoy { left: -12px; width: 220px; }
}
