/* Variante compacta de las páginas de vertical ($page['landing']['compact'], body.vl-compact). Solo se carga en esas páginas:
   las demás no reciben ni un byte de este archivo. Mobile first, sin librerías. Clases con prefijo vc-.
   En reposo y sin JS todo se ve: las animaciones arrancan al entrar a la vista (.vc-in) y solo usan opacity y transform, sin saltos de layout. */

/* En reposo nada queda oculto, aunque el JS o IntersectionObserver fallen */
.vl-compact .reveal, .js .vl-compact .reveal { opacity: 1; transform: none; }

/* Menos alto y menos texto en el celular */
.vl-compact .section { padding: clamp(26px, 6vw, 72px) 0; }
.vl-compact #preguntas .eyebrow { display: none; }
.vl-compact .vl-head { margin-bottom: 18px; }
.vl-compact .section-head { margin-bottom: 20px; }
.vl-compact .hero-cta { margin-top: 18px; gap: 4px 18px; }
/* Sin frases bajo el botón: la lista vacía no deja su margen (.vl-ticks tiene display propio y le gana a hidden) */
.vl-compact .vl-ticks[hidden] { display: none; }
.vl-compact .vl-micro { margin-top: 2px; }
.vl-compact .vl-who { padding: 12px 0; }
.vl-compact .vl-who p { margin-bottom: 6px; }
.vl-compact .vl-band { padding: 20px 0; }
@media (max-width: 599px) {
    .vl-compact .vhero .crumbs { display: none; }
    .vl-compact .vhero { padding: 18px 0 22px; }
    .vl-compact .hero-grid { gap: 18px; }
}
@media (max-width: 899px) {
    .vl-compact .other-text > span { display: none; }
    .vl-compact .other { min-height: 56px; padding: 10px 16px; }
    .vl-compact .others { gap: 8px; }
    .vl-compact .others-section .section-head { margin-bottom: 14px; }
    .vl-compact .other-icon { font-size: 22px; }
}

/* El problema, como un chat */
.vc-chat { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vc-chat li { display: grid; gap: 4px; min-width: 0; }
.vc-bubble { position: relative; max-width: 88%; padding: 9px 14px; font-size: 15px; line-height: 1.35; border-radius: 16px; overflow-wrap: anywhere; text-wrap: pretty; }
.vc-bubble-before { justify-self: start; background: #EFEBE3; color: var(--ink-2); border-bottom-left-radius: 4px; }
.vc-bubble-after { justify-self: end; background: var(--teal-600); color: #fff; font-weight: 600; border-bottom-right-radius: 4px; }
.vc-legend { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 13px; font-weight: 700; color: var(--muted); }
.vc-legend-after { color: var(--teal-800); }
@media (min-width: 800px) {
    .vc-chat { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .vc-bubble { max-width: 92%; }
}

/* Galería de vitrinas: se desliza con el dedo, el teclado o las flechas */
.vc-rail { position: relative; list-style: none; display: flex; gap: 14px; margin: 0 -20px; padding: 6px 20px 8px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.vc-rail::-webkit-scrollbar { display: none; }
/* Mismo margen que .wrap en las pantallas chicas: si no, la página entera se corre de costado */
@media (max-width: 399px) { .vc-rail { margin: 0 -16px; padding-inline: 16px; } }
.vc-rail:focus-visible { outline-offset: -3px; }
.vc-slide { flex: 0 0 min(82%, 420px); min-width: 0; display: flex; flex-direction: column; padding: 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); scroll-snap-align: center; }
.vc-slide-view { flex: 1; display: flex; flex-direction: column; justify-content: center; min-height: 210px; }
.vc-slide-view .frame { box-shadow: none; }
.vc-slide-view .vl-frame-body { padding: 8px; }
.vc-slide h3 { margin-top: 12px; font-size: 17px; font-weight: 800; }
.vc-slide p { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.vc-slide .sr-only { margin: 0; }
.vc-hint, .vc-nav { min-height: 44px; margin-top: 0; }
.vc-hint { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 14px; font-weight: 700; color: var(--teal-800); }
.vc-nav { display: flex; align-items: center; justify-content: center; gap: 2px; }
.vc-hint[hidden], .vc-nav[hidden] { display: none; }
.vc-arrow { display: grid; place-items: center; width: 44px; height: 44px; padding: 0; color: var(--teal-800); background: none; border: 0; border-radius: 50%; cursor: pointer; }
.vc-arrow[aria-disabled="true"] { color: #AAB3B0; cursor: default; }
.vc-dot { position: relative; width: 28px; height: 44px; padding: 0; background: none; border: 0; border-radius: 8px; cursor: pointer; }
.vc-dot::before { content: ""; position: absolute; top: 50%; left: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--field); transition: transform .2s; }
.vc-dot[aria-current]::before { background: var(--teal-800); transform: scale(1.35); }
@media (min-width: 900px) {
    .vc-rail { display: grid; grid-template-columns: 1.7fr 1fr 1fr; gap: 20px; margin: 0; padding: 0; overflow: visible; }
    .vc-slide { padding: 16px; }
    .vc-hint { display: none; }
    .vc-slide-view { min-height: 300px; }
}
/* El dibujo de la pantalla entra en un ancho de tarjeta: tres columnas solo donde hay lugar */
.vc-slide .vl-kds { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vc-slide .vl-kds-col:last-child, .vc-slide .vc-wide-only { display: none; }
@media (min-width: 900px) { .vc-slide .vl-kds { grid-template-columns: repeat(3, minmax(0, 1fr)); } .vc-slide .vl-kds-col:last-child { display: grid; } .vc-slide .vc-wide-only { display: block; } }
.vc-slide .vl-kds-card .vl-chip { border-radius: 8px; }
/* El pedido atrasado se marca solo con el borde rojo, como en la pantalla real (sin texto) */
.vc-slide .vl-kds-late { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
/* Selector de estado del local, como el de arriba de la pantalla real: punto de color, estado y flecha */
.vc-select { display: inline-flex; align-items: center; gap: 6px; padding: 3px 24px 3px 9px; font-size: 12px; font-weight: 700; line-height: 1.4; color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%236B7280' stroke-width='3'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 8px center; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap; }
.vc-select-dot { width: 8px; height: 8px; border-radius: 50%; background: #16A34A; }
/* En los celulares más angostos, más apretado para que las palabras no se corten a la mitad */
@media (max-width: 359px) {
    .vc-slide .vl-kds { gap: 6px; font-size: 11px; }
    .vc-slide .vl-kds-col { padding: 4px; }
    .vc-slide .vl-kds-title { font-size: 10px; letter-spacing: 0; }
    .vc-slide .vl-kds-card { padding: 5px; }
    .vc-slide .vl-kds-card .vl-chip { padding: 3px 5px; font-size: 10.5px; }
    /* "Pedido nuevo" y el selector "Abierto" entran en una línea sin que la flecha quede cortada (y si no, bajan) */
    .vc-slide .vl-row-head { gap: 6px; flex-wrap: wrap; }
    .vc-slide .vl-row-head .vl-chip { padding: 3px 7px; font-size: 10.5px; }
    .vc-slide .vc-select { gap: 4px; padding: 3px 18px 3px 7px; font-size: 10.5px; background-position: right 6px center; }
    .vc-slide .vc-select-dot { width: 7px; height: 7px; }
}

/* Sonido del pedido nuevo: tres barras (quietas en reposo) */
.vc-waves { display: inline-flex; align-items: center; gap: 2px; height: 12px; margin-right: 5px; }
.vc-waves i { display: block; width: 2px; height: 100%; border-radius: 2px; background: currentColor; transform: scaleY(.6); }
.vc-waves i:nth-child(2) { transform: scaleY(1); }

/* Dibujo de la comanda */
.vc-ticket { display: grid; gap: 6px; width: min(210px, 100%); margin: 0 auto; padding: 16px 14px; background: #FFFEFA; border: 1px solid var(--line); border-radius: 4px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; color: var(--ink); text-align: center; box-shadow: var(--sh-2); }
.vc-ticket-h { font-size: 16px; padding-bottom: 8px; border-bottom: 1px dashed #000; }
.vc-ticket-big { font-weight: 800; font-size: 14px; }
.vc-ticket-line { display: block; text-align: left; }
.vc-ticket-line + .vc-ticket-big { padding-top: 8px; border-top: 1px dashed #000; }

.vc-cal-card { display: grid; gap: 10px; padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.vc-cal-card .vl-slot { min-height: 30px; }

/* Dibujo del correo al cliente */
.vc-mail { display: grid; gap: 10px; padding: 16px; background: var(--teal-50); border: 1px solid var(--teal-100); border-radius: var(--r-md); }
.vc-mail-head { display: flex; align-items: center; gap: 8px; }
.vc-mail-logo { width: 26px; height: 26px; border-radius: 50%; background: linear-gradient(135deg, var(--gold-100), #F2D58A); }
.vc-mail-title { font-size: 17px; line-height: 1.25; color: var(--teal-900); }
.vc-mail-bar { display: block; height: 8px; border-radius: 4px; background: var(--teal-100); }
.vc-mail-bar-short { width: 60%; }
.vc-mail .vl-chip:not(.vl-chip-solid), .vc-mail .vl-mock-box { background: #fff; }

/* Funciones: el título a la vista; el detalle, al tocar */
.vc-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.vc-tile { min-width: 0; background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--r-md); }
.vc-tile summary { position: relative; display: flex; flex-direction: column; gap: 6px; min-height: 76px; padding: 10px 12px; list-style: none; cursor: pointer; border-radius: var(--r-md); }
.vc-tile summary::-webkit-details-marker { display: none; }
.vc-tile summary::after { content: "+"; position: absolute; top: 12px; right: 12px; font-size: 22px; font-weight: 500; line-height: 1; color: var(--teal-600); transition: transform .2s; }
.vc-tile[open] summary::after { transform: rotate(45deg); }
.vc-tile .ico-wrap { width: 32px; height: 32px; background: #fff; }
.vc-tile .ico-wrap .ico { width: 18px; height: 18px; }
.vc-tile h3 { font-size: 14px; font-weight: 700; line-height: 1.25; }
.vc-tile p { padding: 0 12px 12px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.vc-plan { margin-top: 12px; font-size: 14px; color: var(--ink-2); }
@media (min-width: 800px) { .vc-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } .vc-tile h3 { font-size: 15px; } }

/* Pasos, unidos por una línea */
.vc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.vc-steps li { position: relative; display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.vc-steps li:not(:last-child)::after { content: ""; position: absolute; top: 34px; bottom: -14px; left: 16px; width: 2px; background: var(--gold-500); }
.vc-step-n { flex-shrink: 0; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-500); color: var(--teal-900); font-weight: 800; }
.vc-steps h3 { font-size: 16px; font-weight: 700; }
.vc-steps p { margin-top: 2px; font-size: 14px; line-height: 1.4; color: var(--ink-2); }
.vc-steps li > div { min-width: 0; padding-top: 6px; }
@media (min-width: 800px) {
    .vc-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
    .vc-steps li:not(:last-child)::after { top: 16px; bottom: auto; left: 40px; right: -14px; width: auto; height: 2px; }
    .vc-steps li { flex-direction: column; align-items: flex-start; }
}

/* Cobros */
.vc-pay { display: grid; gap: 14px; }
.vc-pay > * { min-width: 0; }
.vc-pay .vl-head { margin-bottom: 12px; }
.vc-ways { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.vc-ways .vl-chip { padding: 5px 12px; font-size: 13px; white-space: normal; }
.vc-pay .vl-money { padding: 20px; }
.vc-pay .vl-money h3 { font-size: 19px; }
.vc-flow { margin-top: 12px; }
.vc-money-text { margin-top: 12px; font-size: 15px; }
@media (max-width: 359px) { .vc-flow { gap: 5px; } .vc-flow span { padding-inline: 8px; font-size: 13px; } }
.vc-pay .vl-notice { margin-top: 12px; padding-top: 12px; }
@media (min-width: 900px) {
    .vc-pay { grid-template-columns: .8fr 1.2fr; column-gap: 40px; align-items: start; }
    .vc-pay .vc-more { grid-column: 2; }
}

/* Plegables de detalle */
.vc-more { margin-top: 2px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.vc-more summary { position: relative; display: flex; align-items: center; min-height: 48px; padding: 10px 44px 10px 14px; font-size: 15px; font-weight: 700; color: var(--teal-800); list-style: none; cursor: pointer; border-radius: var(--r-md); }
.vc-more summary::-webkit-details-marker { display: none; }
.vc-more summary::after { content: "+"; position: absolute; right: 14px; font-size: 22px; font-weight: 500; line-height: 1; color: var(--teal-600); transition: transform .2s; }
.vc-more[open] summary::after { transform: rotate(45deg); }
.vc-more > p { padding: 0 14px 10px; font-size: 14px; color: var(--ink-2); }
.vc-more .vl-pay-list { padding: 0 14px 14px; }
.vc-more-list { display: grid; gap: 6px; margin: 0; padding: 0 14px 14px 32px; font-size: 14px; color: var(--ink-2); }

/* Dominios: dos direcciones, como barras del navegador */
.vc-doms { display: grid; gap: 8px; margin-bottom: 10px; }
.vc-doms > * { min-width: 0; }
.vc-dom { padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); }
.vc-dom .vl-url { margin: 6px 0 0; padding-block: 7px; }
.vc-dom.vl-dom-mine { border-color: var(--gold-500); }
#dominios .vc-more { margin-top: 0; }
@media (min-width: 800px) { .vc-doms { grid-template-columns: 1fr 1fr; gap: 14px; } }

/* Preguntas: las primeras a la vista, el resto en un plegable (todas están en el HTML y en los datos para Google) */
.vc-faq-more .faq { margin-top: 10px; }
.vc-faq-more > summary { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; font-weight: 700; color: var(--teal-800); list-style: none; cursor: pointer; border-radius: var(--r-md); }
.vc-faq-more > summary::-webkit-details-marker { display: none; }
.vc-faq-more > summary::after { content: "+"; font-size: 20px; line-height: 1; color: var(--teal-600); transition: transform .2s; }
.vc-faq-more[open] > summary::after { transform: rotate(45deg); }
.vl-compact .faq summary { min-height: 50px; padding-block: 10px; }
.vl-compact .vl-guides { padding-top: 0; margin-top: 30px; }

/* Movimiento: corto, solo al entrar a la vista y solo si la persona no pidió menos movimiento */
@media (prefers-reduced-motion: no-preference) {
    @keyframes vc-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
    @keyframes vc-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(212, 164, 55, 0); } 50% { box-shadow: 0 0 0 5px rgba(212, 164, 55, .35); } }
    @keyframes vc-wave { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
    @keyframes vc-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(4px); } }
    @keyframes vc-tap { 0%, 80%, 100% { transform: none; } 90% { transform: scale(1.18); } }
    [data-vc-reveal].vc-in { animation: vc-rise .45s ease-out both; }
    .vc-steps.vc-in { animation: none; }
    .vc-steps.vc-in li { animation: vc-rise .45s ease-out both; }
    .vc-steps.vc-in li:nth-child(2) { animation-delay: .12s; }
    .vc-steps.vc-in li:nth-child(3) { animation-delay: .24s; }
    .vc-chat.vc-in { animation: none; }
    .vc-chat.vc-in .vc-bubble { animation: vc-rise .4s ease-out both; }
    .vc-chat.vc-in .vc-bubble-after { animation-delay: .15s; }
    /* Lo que late se detiene antes de los 5 segundos: nada se mueve sin fin mientras se lee (WCAG 2.2.2) */
    .vc-in .vc-ring { animation: vc-glow 2.4s ease-in-out 2; }
    .vc-in .vc-new { animation: vc-glow 2.4s ease-in-out 2; }
    .vc-in .vc-waves i { animation: vc-wave 1s ease-in-out 4; }
    .vc-in .vc-waves i:nth-child(2) { animation-delay: .15s; }
    .vc-in .vc-waves i:nth-child(3) { animation-delay: .3s; }
    .vc-in .vc-flow b { animation: vc-nudge 1.8s ease-in-out 2; }
    .vl-compact .vl-phone .vl-add { animation: vc-tap 3.6s ease-out 1; }
    .vl-compact .vl-phone .vl-item:nth-of-type(2) .vl-add { animation-delay: 1.2s; }
    .vl-compact .vl-phone .vl-slot-on, .vl-compact .vl-phone .vl-verified { animation: vc-tap 3.6s ease-out 1; }
}
@media (prefers-reduced-motion: reduce) {
    .vc-tile summary::after, .vc-more summary::after, .vc-faq-more > summary::after, .vc-dot::before { transition: none; }
}
