/* Recepción WhatsApp: acento naranjo (Tailwind orange; ninguna otra app de videla.dev lo usa). Paso 700 en claro, 400 en oscuro. */
:root {
  --acento: #c2410c;
  --acento-fg: #ffffff;
  --acento-hover: #9a3412;
  --chat-fondo: #f3f1ee;
  --burbuja-yo: #ffedd5;
  --burbuja-otro: #ffffff;
  --burbuja-borde: rgba(0, 0, 0, .06);
  /* Más oscuro que el #6f6f6f de videla-ui: sobre el crema del chat (#f3f1ee) y la burbuja (#ffedd5) da 5,09 y 5,01 (AA pide 4,5). */
  --muted-foreground: #666666;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) {
    --acento: #fb923c;
    --acento-fg: #431407;
    --acento-hover: #fdba74;
    --chat-fondo: #141414;
    --burbuja-yo: #431407;
    --burbuja-otro: #262626;
    --burbuja-borde: rgba(255, 255, 255, .06);
  }
}
[data-tema="oscuro"] {
  --acento: #fb923c;
  --acento-fg: #431407;
  --acento-hover: #fdba74;
  --chat-fondo: #141414;
  --burbuja-yo: #431407;
  --burbuja-otro: #262626;
  --burbuja-borde: rgba(255, 255, 255, .06);
}

body { min-height: 100vh; }
main { padding-block: 32px 64px; display: grid; gap: 56px; }
section { display: grid; gap: 16px; }
.v-gris a, .v-chico a { color: inherit; }
.parrafo { max-width: 68ch; }
.parrafo + .parrafo { margin-top: 8px; }

/* Portada */
.portada { display: grid; gap: 32px; align-items: start; }
.portada .texto { display: grid; gap: 16px; align-content: start; }
.portada .acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (min-width: 960px) { .portada { grid-template-columns: 1fr 380px; gap: 56px; } }

.lista-puntos { display: grid; gap: 12px; }
.lista-puntos li { display: grid; grid-template-columns: 28px 1fr; gap: 4px; }
.lista-puntos li::before { content: counter(punto); counter-increment: punto; font-weight: 600; color: var(--acento); font-variant-numeric: tabular-nums; }
.lista-puntos { counter-reset: punto; }
.lista-no li { padding-left: 28px; position: relative; }
.lista-no li::before { content: "–"; position: absolute; left: 4px; color: var(--muted-foreground); }

.precio { display: grid; gap: 24px; }
@media (min-width: 820px) { .precio { grid-template-columns: repeat(2, 1fr); } }
.precio .v-cifra { margin-top: 4px; }

.preguntas { display: grid; gap: 0; }
.preguntas details { border-top: 1px solid var(--border); }
.preguntas details:last-child { border-bottom: 1px solid var(--border); }
.preguntas summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; min-height: 44px; }
.preguntas summary::-webkit-details-marker { display: none; }
.preguntas summary::after { content: "+"; color: var(--muted-foreground); font-weight: 400; }
.preguntas details[open] summary::after { content: "–"; }
.preguntas details > div { padding-bottom: 16px; max-width: 68ch; color: var(--muted-foreground); }

/* Rótulo de demo */
.rotulo { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--radio-control); background: var(--muted); }
.rotulo strong { font-weight: 600; }

/* Chats */
.chats { display: grid; gap: 24px; align-items: start; }
@media (min-width: 960px) { .chats { grid-template-columns: repeat(3, 1fr); } }
.chat { display: grid; gap: 8px; }
.chat h3 { font-size: var(--texto-2); line-height: var(--texto-2-lh); font-weight: 600; color: var(--muted-foreground); }
.telefono { border: 1px solid var(--border); border-radius: 20px; overflow: hidden; background: var(--chat-fondo); }
.telefono .cab { display: flex; align-items: center; gap: 10px; padding: 10px 14px; background: var(--card); border-bottom: 1px solid var(--border); }
.telefono .avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--acento); color: var(--acento-fg); font-weight: 600; font-size: 15px; flex: none; }
.telefono .cab .nom { font-weight: 600; font-size: 16px; line-height: 20px; }
.telefono .cab .est { font-size: 15px; line-height: 20px; color: var(--muted-foreground); }
.burbujas { display: grid; gap: 6px; padding: 14px 12px 16px; }
.burbuja { max-width: 86%; padding: 7px 10px 6px; border-radius: 10px; font-size: 16px; line-height: 22px; box-shadow: 0 1px 0 var(--burbuja-borde); white-space: pre-line; overflow-wrap: anywhere; }
.burbuja .h { display: block; text-align: right; font-size: 15px; line-height: 20px; margin-top: 2px; color: var(--muted-foreground); }
.burbuja.yo { justify-self: end; background: var(--burbuja-yo); border-top-right-radius: 3px; }
.burbuja.otro { justify-self: start; background: var(--burbuja-otro); border-top-left-radius: 3px; }
.dia { justify-self: center; font-size: 15px; line-height: 20px; padding: 3px 10px; border-radius: 8px; background: var(--card); color: var(--muted-foreground); margin-bottom: 4px; }
.uso { justify-self: start; font-size: 15px; line-height: 20px; color: var(--muted-foreground); padding-left: 4px; }

/* Aviso al dueño */
.aviso-dueno { max-width: 460px; }
.aviso-dueno .burbuja { max-width: 100%; }

/* Ficha */
.ficha { display: grid; gap: 32px; }
@media (min-width: 960px) { .ficha { grid-template-columns: 1fr 1fr; gap: 48px; } }
.ficha dl { display: grid; gap: 0; }
.ficha dl > div { padding: 12px 0; border-top: 1px solid var(--border); display: grid; gap: 2px; }
.ficha dt { font-size: var(--texto-2); line-height: var(--texto-2-lh); color: var(--muted-foreground); font-weight: 500; }
.ficha .fuente { font-size: var(--texto-2); line-height: var(--texto-2-lh); color: var(--muted-foreground); }
.ficha .fuente a { color: var(--acento); }

.demos-lista li a { text-decoration: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; width: 100%; }
.demos-lista li a:hover .tt { text-decoration: underline; }

footer { border-top: 1px solid var(--border); padding-block: 24px 40px; color: var(--muted-foreground); font-size: var(--texto-2); line-height: var(--texto-2-lh); }
footer .v-wrap { display: grid; gap: 6px; }
.arriba { margin-top: 8px; }
.que-hace { display: grid; gap: 16px; margin-top: 32px; }
.ficha dt::first-letter { text-transform: uppercase; }
.ficha h3 + p { margin-bottom: 8px; }
.ficha dl + h3 { margin-top: 24px; }
@media (max-width: 419px) { .v-top .ancho { display: none; } }

/* Áreas de toque de 44 px: la marca de la cabecera y los enlaces a las fuentes de las demos. */
.v-marca { min-height: 44px; }
main a[target="_blank"] { padding-block: 12px; }

/* Formulario de contacto */
.formulario { display: grid; gap: 16px; max-width: 560px; }
.formulario textarea.v-input { padding-block: 10px; resize: vertical; }
.formulario .v-check { align-items: flex-start; }
.formulario .v-check input { margin-top: 3px; flex: none; }
.trampa { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
