/* home.css - estilos de la portada (index.php).
   Extraido de los dos <style> en linea de la pagina. */
:root { --primary: #B14B27; --bg: #FAF5EC; --text: #241B14; --soft-grey: #6E6255; }
        body { font-family: 'Outfit', sans-serif; background-color: var(--bg); margin: 0; padding-bottom: 40px; color: var(--text); }
        /* --- HERO CON FOTO DE FONDO ---
           Dos capas: encima un degradado oscuro del color de la marca y debajo la foto de comida.
           El degradado NO es decorativo — es lo que garantiza que el texto blanco se lea sobre
           cualquier zona de la foto. Sin él, el titular desaparece sobre las partes claras.
           background-color queda como respaldo: si el archivo de la foto todavía no está subido,
           el hero se ve exactamente como antes (degradado sólido) en vez de romperse. */
        .hero {
            background-color: #B14B27;
            background-image:
                linear-gradient(160deg, rgba(140,54,25,0.93) 0%, rgba(177,75,39,0.86) 45%, rgba(120,44,18,0.94) 100%),
                url('/assets/img/hero-comida.webp');
            background-size: cover;
            background-position: center;
            color: white; padding: 44px 20px 46px 20px; text-align: center;
            border-bottom-left-radius: 40px; border-bottom-right-radius: 40px;
            box-shadow: 0 10px 20px rgba(177, 75, 39, 0.2); position: relative;
        }
        .hero h1 { font-size: 38px; margin-bottom: 10px; }
        /* Logotipo más grande y con más aire. Antes competía en tamaño con el texto y se leía como
           un detalle más; siendo la marca, debe ser lo primero que se reconoce al entrar. */
        .brand-lockup {
            display: flex; align-items: center; justify-content: center; gap: 14px;
            font-weight: 800; letter-spacing: -1px; font-size: clamp(30px, 7vw, 40px);
            margin-bottom: 18px;
        }
        .brand-icon { width: clamp(58px, 14vw, 78px); height: clamp(58px, 14vw, 78px); display: block; }
        .btn-ubicacion { background: white; color: var(--primary); border: none; padding: 15px 30px; border-radius: 50px; font-weight: 700; cursor: pointer; box-shadow: 0 6px 12px rgba(0,0,0,0.1); font-size: 15px; }

        /* --- TITULAR DEL HERO ---
           El <h1> ya no es el logotipo sino la propuesta de valor. clamp() ajusta el tamaño al
           ancho disponible sin necesidad de media queries: 27px en un celular angosto, hasta 40px
           en escritorio. text-wrap:balance reparte las palabras entre las líneas para que no quede
           una línea larga y otra con una sola palabra suelta. */
        .hero-titular {
            font-size: clamp(30px, 8vw, 44px); line-height: 1.08; margin: 2px 0 10px 0;
            font-weight: 800; letter-spacing: -1px; text-wrap: balance;
        }
        .hero-titular span { opacity: 0.85; font-weight: 700; }
        .hero-bajada {
            margin: 0 auto; max-width: 380px; font-size: 14.5px; line-height: 1.5; opacity: 0.92;
        }

        /* Cifras reales bajo el hero. Separadores en lugar de tarjetas: menos ruido visual para
           un dato que se lee de un vistazo. */
        .hero-cifras {
            display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 26px;
            margin-top: 26px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,0.22);
            max-width: 500px; margin-left: auto; margin-right: auto;
        }
        .hero-cifra { text-align: center; }
        .hero-cifra strong { display: block; font-size: 24px; font-weight: 800; line-height: 1.1; }
        .hero-cifra span { font-size: 11.5px; opacity: 0.85; letter-spacing: 0.2px; }

        /* --- CÓMO FUNCIONA --- */
        .como-funciona { background: #fff; padding: 46px 20px; }
        .como-inner { max-width: 860px; margin: 0 auto; }
        .como-titulo { text-align: center; font-size: 26px; margin: 0 0 30px 0; color: #241B14; }
        .como-columnas { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 26px; }
        .como-col {
            background: #FBF7F0; border: 1px solid #EDE1CD; border-radius: 18px; padding: 0 20px;
            transition: border-color .2s, background .2s;
        }
        .como-col[open] { background: #fff; border-color: #E2D3BC; }
        /* Cerrada se ve como un botón grande: es la señal de que hay algo que abrir. */
        .como-col-cabeza {
            cursor: pointer; list-style: none; font-weight: 800; font-size: 16px; color: #241B14;
            display: flex; align-items: center; gap: 11px; padding: 18px 26px 18px 0; position: relative;
        }
        .como-col-cabeza::-webkit-details-marker { display: none; }
        .como-col-cabeza > span:first-child {
            flex: 0 0 40px; height: 40px; border-radius: 50%; background: #F1E7D8;
            display: flex; align-items: center; justify-content: center; font-size: 20px;
        }
        .como-col-cabeza::after {
            content: '⌄'; position: absolute; right: 2px; top: 44%; transform: translateY(-50%);
            font-size: 21px; color: var(--primary); transition: transform .25s;
        }
        .como-col[open] .como-col-cabeza::after { transform: translateY(-50%) rotate(180deg); }
        /* Numeración generada por CSS: los números quedan en círculos alineados sin tener que
           escribirlos a mano en el HTML (donde se desordenan al reordenar los pasos). */
        .como-pasos { list-style: none; counter-reset: paso; padding: 0; margin: 4px 0 6px 0; }
        .como-pasos li {
            counter-increment: paso; position: relative; padding: 0 0 20px 42px;
            font-size: 14px; line-height: 1.55; color: #5C5044;
        }
        .como-pasos li::before {
            content: counter(paso); position: absolute; left: 0; top: -2px;
            width: 28px; height: 28px; border-radius: 50%; background: var(--primary); color: #fff;
            display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px;
        }
        /* Línea que une los pasos, como una guía vertical. El último no la lleva. */
        .como-pasos li:not(:last-child)::after {
            content: ''; position: absolute; left: 13.5px; top: 30px; bottom: 8px; width: 1.5px; background: #EDE1CD;
        }
        .como-pasos li strong { color: #241B14; display: block; margin-bottom: 2px; }

        /* --- CIUDADES --- */
        .ciudades-seccion { background: #F6ECDD; padding: 44px 20px; }
        .ciudades-inner { max-width: 720px; margin: 0 auto; text-align: center; }
        .ciudades-titulo { font-size: 24px; margin: 0 0 8px 0; color: #241B14; }
        .ciudades-sub { font-size: 14px; color: #6E6255; margin: 0 0 22px 0; line-height: 1.55; }
        .ciudades-lista { display: flex; flex-wrap: wrap; gap: 9px; justify-content: center; }
        .ciudad-pill {
            background: #fff; border: 1px solid #E2D3BC; border-radius: 20px; padding: 8px 14px;
            font-size: 13.5px; font-weight: 700; color: #4A3F33; display: inline-flex; align-items: center; gap: 7px;
        }
        .ciudad-pill em { font-style: normal; background: #F1E7D8; color: var(--primary); border-radius: 10px; padding: 1px 8px; font-size: 12px; }
        .ciudades-nota { font-size: 13.5px; color: #6E6255; margin: 22px 0 0 0; }
        .ciudades-nota a { color: var(--primary); font-weight: 700; text-decoration: none; white-space: nowrap; }

        /* --- PREGUNTAS FRECUENTES ---
           <details>/<summary> nativos: se abren sin JavaScript, funcionan con teclado y el
           buscador lee el contenido aunque esté cerrado. */
        .faq-seccion { background: #fff; padding: 46px 20px; }
        .faq-inner { max-width: 720px; margin: 0 auto; }
        /* Cabecera desplegable de toda la sección. Cerrada ocupa una línea; abierta muestra las
           preguntas. Se ve como una tarjeta pulsable, no como un título suelto. */
        .faq-bloque {
            background: #FBF7F0; border: 1px solid #EDE1CD; border-radius: 18px;
            padding: 4px 20px; transition: border-color .2s;
        }
        .faq-bloque[open] { border-color: #E2D3BC; }
        .faq-bloque-cabeza {
            cursor: pointer; list-style: none; display: flex; align-items: center; gap: 14px;
            padding: 16px 26px 16px 0; position: relative;
        }
        .faq-bloque-cabeza::-webkit-details-marker { display: none; }
        .faq-bloque-icono {
            flex: 0 0 44px; height: 44px; border-radius: 50%; background: var(--primary);
            display: flex; align-items: center; justify-content: center; font-size: 21px;
        }
        .faq-bloque-cabeza strong { display: block; font-size: 17px; color: #241B14; }
        .faq-bloque-cabeza em { display: block; font-style: normal; font-size: 12.5px; color: #948870; margin-top: 2px; }
        /* Flecha que gira al abrir: indica que hay algo más sin necesidad de texto. */
        .faq-bloque-cabeza::after {
            content: '⌄'; position: absolute; right: 4px; top: 44%; transform: translateY(-50%);
            font-size: 22px; color: var(--primary); transition: transform .25s;
        }
        .faq-bloque[open] .faq-bloque-cabeza::after { transform: translateY(-50%) rotate(180deg); }
        .faq-lista { padding: 2px 0 12px 0; }

        .faq-item { border-top: 1px solid #EDE1CD; }
        .faq-item summary {
            cursor: pointer; padding: 16px 30px 16px 0; font-weight: 700; font-size: 15px;
            color: #241B14; position: relative; list-style: none; line-height: 1.4;
        }
        .faq-item summary::-webkit-details-marker { display: none; }
        .faq-item summary::after {
            content: '+'; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
            font-size: 22px; font-weight: 400; color: var(--primary); line-height: 1;
        }
        .faq-item[open] summary::after { content: '−'; }
        .faq-item p { margin: -4px 0 18px 0; font-size: 14px; line-height: 1.65; color: #5C5044; }
        .contenedor-lista { padding: 25px 20px; max-width: 600px; margin: 0 auto; }
        .restaurante-card { background: white; border-radius: 20px; padding: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--text); box-shadow: 0 4px 15px rgba(0,0,0,0.06); }
        .restaurante-logo { width: 75px; height: 75px; border-radius: 18px; object-fit: cover; border: 1px solid #EDE1CD; }
        .restaurante-info { flex: 1; }
        .restaurante-nombre { margin: 0 0 6px 0; font-size: 18px; font-weight: 700; }
        .restaurante-meta { font-size: 13px; color: var(--soft-grey); display: flex; gap: 15px; align-items: center; }
        .badge-distancia { background: #F1E7D8; padding: 4px 10px; border-radius: 8px; font-weight: 600; color: var(--primary); }
        .badge-horario { padding: 4px 10px; border-radius: 8px; font-weight: 600; font-size: 12px; }
        .badge-abierto { background: #e8f5e9; color: #2e7d32; }
        .badge-cerrado { background: #ffebee; color: #c62828; }

        .barra-buscador-rest { display: flex; gap: 8px; margin-bottom: 20px; }
        .barra-buscador-rest input[type=text] { flex: 1; padding: 12px 16px; border: 1px solid #DCCBAF; border-radius: 25px; font-size: 14px; }
        .barra-buscador-rest button { background: var(--primary); color: white; border: none; padding: 0 18px; border-radius: 25px; font-weight: bold; cursor: pointer; font-size: 15px; }

        .texto-horario { font-size: 12px; color: #948870; margin-top: 4px; }

        .btn-toggle-tipo-comida { flex:1; width: 100%; background: white; border: 1px solid #DCCBAF; padding: 12px; border-radius: 12px; font-weight: bold; color: #4A3F33; font-size: 14px; cursor: pointer; margin-bottom: 12px; }
        .btn-quitar-filtro { flex-shrink:0; display:flex; align-items:center; justify-content:center; width:46px; background: #ffebee; color:#c62828; border:1px solid #ffcdd2; border-radius:12px; text-decoration:none; font-weight:bold; font-size:16px; }
        .grid-tipo-comida { display: none; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
        .grid-tipo-comida.active { display: flex; }
        .chip-tipo-comida { background: white; border: 1px solid #DCCBAF; color: #4A3F33; padding: 8px 14px; border-radius: 20px; text-decoration: none; font-size: 13px; font-weight: 600; }
        .chip-tipo-comida.chip-activo { background: var(--primary); border-color: var(--primary); color: white; }

        /* Sección CTA: Registro de restaurantes */
        /* Mismo montaje de dos capas que el hero: foto de fondo y encima un degradado oscuro que
           garantiza la legibilidad del texto blanco. background-color queda de respaldo, así que
           si el archivo todavía no está subido la sección se ve como antes en vez de romperse. */
        .cta-restaurantes {
            background-color: #241B14;
            background-image:
                linear-gradient(150deg, rgba(28,20,13,0.94) 0%, rgba(36,27,20,0.88) 50%, rgba(20,14,9,0.96) 100%),
                url('/assets/img/restaurante-duena.webp');
            background-size: cover; background-position: center;
            margin: 40px 0 0 0; padding: 45px 20px; text-align: center;
        }
        .cta-restaurantes-inner { max-width: 480px; margin: 0 auto; }
        .cta-icono { font-size: 44px; margin-bottom: 10px; }
        .cta-restaurantes h2 { color: white; font-size: 24px; margin: 0 0 10px 0; }
        .cta-restaurantes p { color: #D9C7AE; font-size: 14px; line-height: 1.6; margin-bottom: 25px; }
        .btn-cta-restaurantes { display: inline-block; background: var(--primary); color: white; padding: 15px 30px; border-radius: 50px; font-weight: 700; text-decoration: none; box-shadow: 0 6px 16px rgba(177, 75, 39,0.35); transition: 0.25s; }
        .btn-cta-restaurantes:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(177, 75, 39,0.45); }

        /* Vistas del hero */
        .vista { display: none; }
        .vista.active { display: block; }

        /* Tarjetas de selección Cliente / Restaurante */
        .opciones-inicio { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; margin-top: 25px; max-width: 500px; margin-left: auto; margin-right: auto; }
        .opcion-card { background: rgba(255,255,255,0.15); border: 2px solid rgba(255,255,255,0.4); border-radius: 20px; padding: 25px 20px; flex: 1; min-width: 150px; text-decoration: none; color: white; cursor: pointer; transition: 0.25s; }
        .opcion-card:hover { background: rgba(255,255,255,0.28); transform: translateY(-3px); }
        .opcion-icono { font-size: 34px; margin-bottom: 8px; }
        .opcion-titulo { font-size: 17px; font-weight: 800; margin-bottom: 4px; }
        .opcion-sub { font-size: 12px; opacity: 0.9; }
        .opcion-icono-buscar { position: relative; width: 40px; height: 40px; margin: 0 auto 8px auto; }
        .opcion-icono-buscar .lupa, .opcion-icono-buscar .hamburguesa { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 32px; }
        .opcion-icono-buscar .lupa { animation: lupaBuscando 4s ease-in-out infinite; }
        .opcion-icono-buscar .hamburguesa { animation: hamburguesaAparece 4s ease-in-out infinite; }
        @keyframes lupaBuscando {
            0%    { transform: translate(0,0) rotate(0deg); opacity: 1; }
            12.5% { transform: translate(6px,-5px) rotate(15deg); opacity: 1; }
            25%   { transform: translate(7px,4px) rotate(0deg); opacity: 1; }
            37.5% { transform: translate(0,7px) rotate(-15deg); opacity: 1; }
            50%   { transform: translate(-7px,4px) rotate(0deg); opacity: 1; }
            62%   { transform: translate(-6px,-5px) rotate(15deg); opacity: 1; }
            70%   { transform: translate(0,0) rotate(0deg); opacity: 0; }
            100%  { transform: translate(0,0) rotate(0deg); opacity: 0; }
        }
        @keyframes hamburguesaAparece {
            0%, 65% { transform: scale(0); opacity: 0; }
            76%     { transform: scale(0.55); opacity: 1; }
            86%     { transform: scale(1.18); opacity: 1; }
            93%     { transform: scale(1); opacity: 1; }
            98%     { transform: scale(1); opacity: 1; }
            100%    { transform: scale(0); opacity: 0; }
        }

        /* Vista buscar comida */
        .btn-volver { background: none; border: none; color: white; font-size: 14px; font-weight: bold; cursor: pointer; margin-bottom: 15px; opacity: 0.9; }
        .btn-volver:hover { opacity: 1; }

        /* Barra de sesión del cliente arriba a la derecha */
        .barra-sesion { position: absolute; top: 15px; right: 15px; }
        .menu-cliente-wrap { position: relative; display: inline-block; }
        .btn-sesion { background: rgba(255,255,255,0.2); border: 1px solid rgba(255,255,255,0.5); color: white; padding: 8px 14px; border-radius: 20px; font-size: 13px; font-weight: bold; cursor: pointer; }
        .dropdown-cliente { display: none; position: absolute; top: calc(100% + 8px); right: 0; background: #fff; border-radius: 12px; box-shadow: 0 6px 20px rgba(0,0,0,0.2); min-width: 190px; overflow: hidden; z-index: 3000; text-align: left; }
        .dropdown-cliente.active { display: block; }
        .dropdown-cliente a { display: block; padding: 12px 16px; text-decoration: none; color: #2A2018; font-size: 14px; font-weight: bold; border-bottom: 1px solid #F1E7D8; }
        .dropdown-cliente a:last-child { border-bottom: none; }
        .dropdown-cliente a:hover { background: #F6ECDD; color: var(--primary); }
        .dropdown-cliente a.opcion-salir { color: #c62828; }
        .dropdown-cliente a.opcion-salir:hover { background: #ffebee; }

        /* Modales de login del cliente */
        .modal-overlay { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(35,27,20,0.62); display: none; z-index: 4000; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
        .modal-overlay.active { display: flex; }
        .modal-content { position: relative; width: 100%; max-width: 380px; background: #fff; padding: 34px 28px 28px 28px; box-sizing: border-box; border-radius: 22px; max-height: 85vh; overflow-y: auto; color: var(--text); text-align: left; box-shadow: 0 20px 50px rgba(35,27,20,0.3); animation: modalAparece 0.25s ease-out; }
        .modal-content h2 { font-size: 21px; margin: 0 0 6px 0; }
        @keyframes modalAparece { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: translateY(0) scale(1); } }
        .input-modal { width: 100%; padding: 14px; margin-top: 6px; border: 1px solid #DCCBAF; border-radius: 10px; box-sizing: border-box; font-size: 20px; font-weight: 600; letter-spacing: 0.5px; }
        .campo-pin-wrap { position: relative; }
        .campo-pin-wrap .input-modal { padding-right: 46px; }
        .btn-ver-pin { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; font-size: 20px; padding: 4px; line-height: 1; color: #6B5842; margin-top: 3px; }
        .btn-enviar-ws { background: var(--primary); color: white; border: none; padding: 15px; width: 100%; border-radius: 25px; font-weight: bold; margin-top: 18px; font-size: 16px; cursor: pointer; }
        .btn-enviar-ws:disabled { background: #948870; }
        .btn-cerrar { background: none; border: none; font-size: 24px; position: absolute; top: 14px; right: 16px; cursor: pointer; color: #5C5044; line-height: 1; padding: 4px; }

        /* Anuncio para clientes: se muestra al obtener la ubicación, antes de revelar la lista */
        .anuncio-cliente-overlay { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(20,15,10,0.82); z-index: 5000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
        .anuncio-cliente-caja { position: relative; max-width: 420px; width: 100%; }
        .anuncio-cliente-imagen { width: 100%; height: auto; max-height: 75vh; object-fit: contain; border-radius: 16px; display: block; box-shadow: 0 10px 30px rgba(0,0,0,0.4); background: #fff; }
        .anuncio-cliente-cerrar { position: absolute; top: -14px; right: -14px; width: 34px; height: 34px; border-radius: 50%; background: white; border: none; font-size: 16px; font-weight: bold; color: #241B14; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
        #mensaje-buscando.mensaje-buscando-sobre-anuncio { position: fixed; top: 20px; left: 50%; transform: translateX(-50%); z-index: 5001; background: rgba(36,27,20,0.9); color: #fff; padding: 10px 20px; border-radius: 20px; font-size: 14px; box-shadow: 0 4px 12px rgba(0,0,0,0.3); margin: 0; }

        /* Texto visible solo para lectores de pantalla y buscadores: el H1 solo trae el logo/marca
           por diseño, este texto le da a Google (y a accesibilidad) la frase con la intención de
           búsqueda real, sin alterar en nada lo que ve el usuario. */
        .solo-lectores { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.qea-seccion { max-width: 880px; margin: 55px auto 10px auto; padding: 0 20px; position: relative; }
        .qea-seccion .reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
        .qea-seccion .reveal.visible { opacity: 1; transform: translateY(0); }
        .qea-titulo-wrap { text-align: center; margin-bottom: 34px; }
        .qea-badge { display: inline-block; background: rgba(177,75,39,0.1); border: 1px solid rgba(177,75,39,0.3); color: var(--primary); font-size: 12px; font-weight: 800; padding: 6px 16px; border-radius: 20px; margin-bottom: 16px; letter-spacing: 0.3px; }
        .qea-titulo {
            font-size: 34px; font-weight: 800; margin: 0 0 12px 0; line-height: 1.25;
            background: linear-gradient(100deg, var(--primary) 0%, #E8974D 35%, var(--primary) 60%, #E8974D 100%);
            background-size: 300% auto; -webkit-background-clip: text; background-clip: text; color: transparent;
            animation: qeaBrillo 6s linear infinite;
        }
        @keyframes qeaBrillo { 0% { background-position: 0% center; } 100% { background-position: 300% center; } }
        .qea-sub { color: var(--soft-grey); font-size: 15px; max-width: 480px; margin: 0 auto; line-height: 1.6; }

        /* Toggle deslizante Clientes / Restaurantes */
        .qea-toggle-wrap { display: flex; justify-content: center; margin-bottom: 30px; }
        .qea-toggle { position: relative; display: inline-flex; background: #EDE1CD; border-radius: 30px; padding: 5px; gap: 4px; }
        .qea-toggle-highlight { position: absolute; top: 5px; left: 5px; height: calc(100% - 10px); width: calc(50% - 5px); background: var(--primary); border-radius: 25px; transition: transform 0.35s cubic-bezier(.65,0,.35,1); box-shadow: 0 4px 12px rgba(177,75,39,0.35); }
        .qea-toggle-btn { position: relative; z-index: 2; border: none; background: transparent; padding: 12px 24px; font-weight: 800; font-size: 14px; font-family: 'Outfit', sans-serif; color: #6B5842; cursor: pointer; border-radius: 25px; transition: color 0.35s; white-space: nowrap; }
        .qea-toggle-btn.qea-activo { color: white; }

        .qea-panel { display: none; }
        .qea-panel.qea-activo { display: block; animation: qeaEntra 0.5s ease; }
        @keyframes qeaEntra { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: translateY(0); } }

        .qea-destacado { text-align: center; background: linear-gradient(135deg, #241B14 0%, #2E2013 100%); color: white; border-radius: 20px; padding: 22px 20px; margin-bottom: 26px; }
        .qea-destacado .qea-num { font-size: 30px; font-weight: 900; color: #E8974D; }
        .qea-destacado p { margin: 6px 0 0 0; font-size: 13.5px; color: #D9C7AE; max-width: 440px; margin-left: auto; margin-right: auto; line-height: 1.5; }

        /* --- BLOQUES CON IMAGEN ---
           Reemplazan a la rejilla de 15 tarjetitas con emoji. Aquella las mostraba todas del mismo
           tamaño y con el mismo peso, así que se leía como un inventario de características: nada
           destacaba y nada se recordaba. Tres bloques grandes con foto permiten agrupar por tema y
           contar qué resuelve cada uno, que es lo que convence.

           auto-fit + minmax: en escritorio caben los tres en fila; en un celular se apilan solos,
           sin media queries. */
        .qea-bloques { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
        .qea-bloque {
            background: white; border: 1px solid #EDE1CD; border-radius: 18px; overflow: hidden;
            display: flex; flex-direction: column;
            opacity: 0; transform: translateY(20px);
            transition: transform .45s ease, box-shadow .35s ease, opacity .45s ease;
            will-change: transform;
        }
        .qea-bloque.qea-visible { opacity: 1; transform: translateY(0); }
        .qea-bloque:hover { box-shadow: 0 12px 28px rgba(0,0,0,0.09); }

        /* aspect-ratio fija el alto antes de que la imagen cargue: sin esto la tarjeta "salta"
           cuando aparece la foto y mueve todo lo que está debajo. */
        .qea-bloque-img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; display: block; background: #F1E7D8; }
        .qea-bloque-cuerpo { padding: 18px 20px 20px 20px; display: flex; flex-direction: column; flex: 1; }
        .qea-bloque-titulo { font-weight: 800; font-size: 17px; color: var(--text); margin: 0 0 6px 0; }
        .qea-bloque-texto { font-size: 13px; color: var(--soft-grey); line-height: 1.55; margin: 0 0 14px 0; }

        /* La lista detallada de lo que incluye cada bloque. El check va como pseudo-elemento para
           no repetir un icono en cada línea del HTML. */
        .qea-bloque-lista { list-style: none; margin: 0; padding: 0; border-top: 1px solid #F1E7D8; padding-top: 12px; }
        .qea-bloque-lista li {
            position: relative; padding: 5px 0 5px 22px; font-size: 12.5px; color: #4A3F33; line-height: 1.45;
        }
        .qea-bloque-lista li::before {
            content: '✓'; position: absolute; left: 0; top: 5px;
            color: var(--primary); font-weight: 800; font-size: 12px;
        }


        @media (max-width: 480px) {
            .qea-titulo { font-size: 26px; }
            .qea-toggle-btn { padding: 11px 16px; font-size: 12.5px; }
        }

/* --- LISTA LARGA DE RESTAURANTES ---
   A partir del 15º las tarjetas nacen ocultas y se revelan con "Ver más". Un logo dentro de un
   bloque con display:none no se descarga (por loading="lazy"), así que esto ahorra datos de
   verdad, no solo espacio en pantalla. */
.restaurante-card.rest-oculto { display: none; }
.btn-ver-mas-rest {
    display: block; width: 100%; background: white; border: 1px solid #DCCBAF;
    color: #4A3F33; padding: 13px; border-radius: 12px; font-weight: bold; font-size: 14px;
    font-family: inherit; cursor: pointer; margin-bottom: 20px;
}
.btn-ver-mas-rest:hover { background: #FBF7F0; }
