/* --- VARIABLES DE MARCA (PALETA PREMIUM) --- */
:root {
    --navy: #0A2647;          /* Navy Blue Profundo */
    --navy-light: #1B3A5C;    /* Navy Blue Intermedio */
    --cyan: #06b6d4;          /* Cian Tecnológico */
    --cyan-glow: #22d3ee;     /* Brillo Cian */
    --slate: #475569;         /* Gris Pizarra para textos */
    --slate-light: #94a3b8;   /* Gris suave */
    --white: #ffffff;
    --off-white: #f8fafc;     /* Fondo general */
    --border: #e2e8f0;        /* Bordes sutiles */
    --shadow-sm: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 25px -5px rgba(0, 0, 0, 0.08);
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- RESET Y BASE --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--off-white);
    color: var(--navy);
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- HEADER (STICKY & FULL WIDTH) --- */
header {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 2rem;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-container {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    color: var(--navy);
    font-weight: 800;
    font-size: 1.3rem;
    letter-spacing: -0.5px;
    line-height: 1;
}

.logo span { color: var(--cyan); }
.logo small {
    display: block;
    font-size: 0.65rem;
    font-weight: 500;
    color: var(--slate);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--navy);
    font-weight: 600;
    font-size: 0.9rem;
    transition: var(--transition);
}

.nav-links a:hover { color: var(--cyan); }

.btn-portal {
    background: var(--navy);
    color: var(--white) !important;
    padding: 0.6rem 1.5rem;
    border-radius: 50px;
    font-size: 0.85rem;
}

.btn-portal:hover {
    background: var(--cyan);
    color: var(--navy) !important;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.3);
}

/* --- HERO SECTION (ADAPTATIVO) --- */
.hero {
    background: linear-gradient(135deg, var(--navy) 0%, #0f2c4e 100%);
    color: var(--white);
    padding: 4rem 2rem;
    text-align: center;
}

.hero-content h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: -1px;
}

.hero-content p {
    font-size: 1.2rem;
    opacity: 0.85;
    max-width: 800px;
    margin: 0 auto 3rem;
}

.hero-stats {
    display: flex;
    justify-content: center;
    gap: 4rem;
}

.stat-item { display: flex; flex-direction: column; }
.stat-number { font-size: 2.5rem; font-weight: 800; color: var(--cyan); }
.stat-label { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1.5px; opacity: 0.7; }

/* EL DESGLOSE DE VÍDEOS (07/11/2026): 21 propios previstos + 41 de terceros. */
.hero-video-breakdown {
    margin: 1rem auto 0;
    max-width: 760px;
    text-align: center;
    color: #cbd9e8;
    font-size: .82rem;
    line-height: 1.5;
}
.hero-video-breakdown strong { color: #fff; }
.hero-video-breakdown a { color: var(--cyan); font-weight: 700; text-decoration: none; }
.hero-video-breakdown a:hover { text-decoration: underline; }

/* DIFERENCIAR VÍDEOS DE TERCEROS (07/11/2026). */
.video-thumb { position: relative; }
.video-origen {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    padding: .28rem .55rem;
    border-radius: 999px;
    background: rgba(10, 38, 71, .88);
    color: #fff;
    font-size: .62rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: .05em;
    text-transform: uppercase;
    pointer-events: none;
}
.video-results-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* --- LAYOUT PRINCIPAL (ANCHO COMPLETO EN PC) --- */
.main-layout {
    display: flex;
    width: 100%;
    padding: 2rem;
    gap: 2.5rem;
}

/* Sidebar Filtros (Sticky) */
.filters-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sticky-sidebar {
    position: sticky;
    top: 120px;
    background: var(--white);
    padding: 2rem;
    border-radius: 20px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-sm);
}

.filter-group { margin-bottom: 2.5rem; }
.filter-group h4 {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--slate);
    margin-bottom: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.filter-group h4 i { color: var(--cyan); }

.filter-option {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 0.8rem;
    font-size: 0.9rem;
    cursor: pointer;
    font-weight: 500;
    color: var(--navy-light);
    transition: var(--transition);
}

.filter-option:hover { color: var(--cyan); }
.filter-option input { accent-color: var(--cyan); cursor: pointer; }

/* --- CONTENIDO Y GRID (FLUJO DE IZQUIERDA A DERECHA) --- */
.content-area {
    flex: 1; /* Ocupa todo el espacio restante */
    min-width: 0; /* Evita desbordamiento en flex */
}

.search-wrapper { margin-bottom: 3rem; }
.search-box {
    background: var(--white);
    display: flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 100px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-md);
}

.search-box i { margin: 0 1rem; color: var(--slate-light); font-size: 1.2rem; }
.search-box input {
    flex: 1;
    border: none;
    padding: 1rem 0;
    font-size: 1.1rem;
    outline: none;
    font-family: inherit;
}

.search-box button {
    background: var(--navy);
    color: var(--white);
    border: none;
    padding: 0.8rem 2rem;
    border-radius: 100px;
    font-weight: 700;
    cursor: pointer;
    transition: var(--transition);
}

.search-box button:hover { background: var(--cyan); color: var(--navy); }

/* Grid de Tarjetas */
.catalog-section { margin-bottom: 5rem; }
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 2rem;
}

.section-header h2 { font-size: 1.8rem; font-weight: 800; }
.results-count { font-size: 0.85rem; color: var(--slate); font-weight: 600; }

.grid-container {
    display: grid;
    /* Ancho dinámico: se adapta al espacio disponible estirándose hasta el borde */
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* --- ESTILO DE TARJETAS (CARDS) --- */
.card {
    background: var(--white);
    border-radius: 24px;
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    transition: var(--transition);
    overflow: hidden;
    height: 100%;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(10, 38, 71, 0.1);
    border-color: var(--cyan);
}

.card-body { padding: 2rem; flex: 1; }
.tag {
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0.4rem 0.8rem;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 1.2rem;
    letter-spacing: 1px;
}

.tag-free { background: #e0f2fe; color: #0369a1; }
.tag-paid { background: #fef3c7; color: #b45309; }
.tag-region { background: var(--navy); color: var(--cyan); }

.card h3 { font-size: 1.25rem; margin-bottom: 0.8rem; font-weight: 700; }
.card p { font-size: 0.9rem; color: var(--slate); margin-bottom: 1.5rem; }

.card-footer {
    padding: 1.5rem 2rem;
    background: #fafafa;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price { font-size: 1.1rem; font-weight: 800; }
.price small { font-size: 0.7rem; color: var(--slate); font-weight: 500; }

.btn-view {
    text-decoration: none;
    color: var(--navy);
    font-weight: 700;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.btn-view:hover { color: var(--cyan); }

/* --- ESTILOS DE TARJETAS DE PROVEEDORES (PROVIDER CARDS) --- */
.provider-card .card-header {
    padding: 1.5rem 1.5rem 1rem;
}
.provider-card .card-desc {
    padding: 0 1.5rem;
    flex-grow: 1; /* Permite que la descripción ocupe el espacio disponible */
    margin-bottom: 1.5rem;
}
.provider-card .card-footer {
    margin-top: auto; /* Empuja el footer hacia abajo */
}

.provider-header-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.provider-card-logo {
    width: 60px; /* Tamaño de logo aumentado */
    height: 60px;
    object-fit: contain; /* Evita distorsión de la imagen */
    background-color: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px; /* Bordes más redondeados */
    padding: 5px;
    flex-shrink: 0;
}

.provider-name-link {
    text-decoration: none;
    color: var(--navy);
    transition: var(--transition);
}
.provider-name-link:hover {
    color: var(--cyan);
}

/* Estilo para el botón secundario que faltaba */
.btn-secondary {
    background-color: var(--white);
    color: var(--navy);
    border: 1px solid var(--border);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.8rem;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
}

.btn-secondary:hover {
    background-color: var(--navy);
    color: var(--white);
    border-color: var(--navy);
    transform: translateY(-2px);
}

.badge {
    font-size: 0.7rem;
    font-weight: 600;
    padding: 0.3rem 0.6rem;
    border-radius: 12px;
    white-space: nowrap;
}

.region-badge {
    background: var(--off-white);
    color: var(--navy-light);
}

/* --- ASISTENTE IA --- */
.ai-assistant {
    position: fixed;
    bottom: 40px;
    right: 40px;
    z-index: 1100;
    cursor: pointer;
}

.ai-avatar {
    width: 70px;
    height: 70px;
    background: var(--navy);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 3px solid var(--cyan);
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.4);
    position: relative;
}

.ai-avatar i { color: var(--cyan); font-size: 2rem; position: relative; z-index: 2; }

.ai-pulse {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    border-radius: 50%;
    background: var(--cyan);
    opacity: 0.4;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); opacity: 0.4; }
    100% { transform: scale(1.6); opacity: 0; }
}

.ai-chat-bubble {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 320px;
    background: var(--white);
    padding: 1.8rem;
    border-radius: 24px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    display: none;
    border-bottom: 5px solid var(--cyan);
}

.ai-chat-bubble.active { display: block; animation: fadeInUp 0.4s ease; }
.ai-chat-bubble p { font-size: 0.95rem; font-weight: 500; margin-bottom: 1.5rem; }

.ai-btn-primary {
    background: var(--navy);
    color: white;
    border: none;
    width: 100%;
    padding: 0.8rem;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
}

/* --- FOOTER --- */
footer {
    background: #051629;
    color: rgba(255,255,255,0.6);
    padding: 3rem 2rem;
    text-align: center;
    font-size: 0.85rem;
}

/* --- RESPONSIVE & MOBILE --- */
.mobile-only-btn { display: none; }
.mobile-panel { display: none; }

@media (max-width: 1024px) {
    .filters-sidebar { display: none; } /* Ocultar sidebar en tablet/móvil */
    .main-layout { padding: 1.5rem; }
    .hero-content h1 { font-size: 2.2rem; }
    .hero-stats { gap: 2rem; }
    
    .mobile-only-btn {
        display: flex;
        position: fixed;
        bottom: 40px;
        left: 40px;
        background: var(--navy);
        color: white;
        border: none;
        padding: 1rem 1.8rem;
        border-radius: 50px;
        z-index: 1100;
        box-shadow: 0 10px 20px rgba(0,0,0,0.2);
        font-weight: 700;
        align-items: center;
        gap: 10px;
    }
}

@media (max-width: 640px) {
    header { padding: 0.8rem 1rem; }
    /* El menú del móvil ya no se esconde: se convierte en panel (ver el bloque «EL MÓVIL, COMO UNA APP»). */
    .hero { padding: 3rem 1rem; }
    .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
    .grid-container { grid-template-columns: 1fr; }
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* CATEGORÍA → SUBCATEGORÍA → SOLUCIÓN (21/10/2026) */
.subcategory-title-flat {
    font-size: 1.05rem; font-weight: 700; color: var(--navy);
    margin: 18px 0 10px; padding-left: 10px; border-left: 4px solid var(--cyan, #06b6d4);
}
.subcategory-title-flat:first-of-type { margin-top: 10px; }

/* LA REJILLA DE SOLUCIONES QUE LLENA LA FILA (21/10/2026): con una o dos soluciones en una subcategoría,
   la rejilla dejaba columnas vacías al lado y la página parecía rota. Las tarjetas se reparten el ancho. */
/* Tarjetas TODAS del mismo ancho (21/10/2026): con flex, una fila de dos se estiraba a 520 px y sus
   imágenes salían el doble de grandes que las de la fila de tres. Con rejilla, todas iguales. */
.grid-container--llena { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; align-items: stretch; }
.subcategory-title-flat { display: none; }   /* la subcategoría va en la insignia de cada tarjeta */
.grid-container--llena > .app-card { min-width: 0; display: flex; flex-direction: column; }
.grid-container--llena > .app-card .card-desc { flex: 1 1 auto; }
/* Aire entre categorías (21/10/2026): el título de la categoría salía pegado a los botones de la fila de
   arriba. */
.category-title-flat { margin: 30px 0 14px; }
.category-section-flat:first-of-type .category-title-flat { margin-top: 6px; }
.subcat-badge { white-space: nowrap; }
@media (max-width: 720px) {
    .subcat-badge { white-space: normal; }
    .grid-container--llena { grid-template-columns: 1fr; }
}
/* LA TARJETA DE SOLUCIÓN, CON LA IMAGEN ARRIBA EN SU FORMA (21/10/2026).
   El fotograma del vídeo es 16:9: se pinta 16:9, no recortado a un cuadrado de 52 px. */
.app-card { overflow: hidden; padding-top: 0 !important; }
.app-card-media { display: block; margin: 0 -1px 12px; }
.app-card-media img {
    display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover;
    border-bottom: 1px solid #e8eef5; background: #0A2647;
}
.grid-container--llena > .app-card { padding: 0 16px 16px !important; }
.grid-container--llena > .app-card .app-card-media { margin: 0 -16px 12px; }
/* LA TARJETA DEL PROVEEDOR, COMO LA DE VÍDEO (21/10/2026): arte arriba, cuerpo debajo, todas iguales. */
.provider-card { padding: 0 !important; overflow: hidden; display: flex; flex-direction: column; }
.prov-arte {
    display: flex; align-items: center; justify-content: center;
    aspect-ratio: 16 / 9; background: linear-gradient(135deg, #0A2647 0%, #06b6d4 100%);
    text-decoration: none;
}
.prov-arte-logo { max-width: 62%; max-height: 62%; object-fit: contain; background: #fff; border-radius: 10px; padding: 8px; }
.prov-arte-inicial { color: #fff; font-size: 2.6rem; font-weight: 800; letter-spacing: 1px; }
.prov-cuerpo { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 16px; flex: 1 1 auto; }
.prov-cuerpo h3 { margin: 0; font-size: 1.02rem; line-height: 1.25; }
.prov-cuerpo .card-desc { flex: 1 1 auto; margin: 6px 0 10px; }
/* La rejilla de proveedores, igual que la de vídeos: cuatro columnas parejas. */
#grid-providers { display: grid !important; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; align-items: stretch; }
/* La insignia de región no debe estirarse al ancho de la tarjeta. */
.prov-cuerpo .badge, .prov-cuerpo .region-badge { align-self: flex-start; }
/* El LOGOTIPO de la solución, de insignia sobre su imagen (21/10/2026). */
.app-card-media { position: relative; }
/* El arte 16:9 ya lleva el logo en su recuadro. La insignia superpuesta solo se pinta
   cuando la tarjeta cae al fotograma del vídeo (respaldo); con esta especificidad gana a
   .app-card-media img y no se estira hasta tapar la imagen. */
.app-card-media img.app-card-logo {
    display: block !important;
    position: absolute !important;
    left: 10px !important;
    bottom: 10px !important;
    width: 46px !important;
    height: 46px !important;
    aspect-ratio: 1 / 1 !important;
    object-fit: contain !important;
    transform: none !important;
    background: #fff !important;
    border: 0 !important;
    border-bottom: 0 !important;
    border-radius: 10px !important;
    padding: 5px !important;
    box-shadow: 0 2px 10px rgba(10, 38, 71, .22) !important;
}
/* CONTACTO CLICABLE EN LA TARJETA DEL PROVEEDOR, Y LA ESPECIALIDAD SIN AIRE DE MÁS (22/10/2026). */
.prov-cuerpo { padding: 12px 12px 14px; }
.card-desc--prov { margin: 2px 0 8px !important; font-size: .86rem; line-height: 1.35; }
.prov-contacto { display: flex; gap: 8px; margin-bottom: 8px; }
.prov-contacto a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 8px; background: #eef6fd; color: var(--navy, #0A2647);
    text-decoration: none; font-size: .82rem; transition: background .15s, color .15s;
}
.prov-contacto a:hover { background: var(--navy, #0A2647); color: #fff; }
.prov-cuerpo h3 { font-size: .98rem; }
/* EL ACORDEÓN DE CATEGORÍAS (22/10/2026): la categoría, y al marcarla sus subcategorías. */
/* SIN LÍNEAS DE SEPARACIÓN Y MÁS COMPACTO (22/10/2026): el dueño dijo que las categorías ocupaban mucho y que
.ath-acc__cab { display: flex !important; align-items: center; gap: 6px; cursor: pointer; padding: 2px 0; font-size: .86rem; }
.ath-acc__nombre { flex: 1 1 auto; }
.ath-acc__flecha { color: #94a3b8; font-size: .7rem; transition: transform .15s; }
.ath-acc__cab input:checked ~ .ath-acc__flecha { transform: rotate(180deg); }
.ath-acc__subs { padding: 2px 0 4px 22px; margin-left: 6px; }
.ath-acc__sub { font-size: .8rem !important; color: #334155; padding: 1px 0 !important; }
/* EL CAJÓN DEL COMPARADOR, FLOTANDO A LA DERECHA (22/10/2026). */
.compare-widget {
    position: fixed; right: 18px; bottom: 18px; width: 296px; z-index: 60;
    background: #fff; border: 1px solid #dbe6f3; border-radius: 14px;
    box-shadow: 0 12px 34px rgba(10, 38, 71, .18);
    padding: 12px 14px 14px; display: none;
}
.compare-widget.visible { display: block; }
.compare-widget__cab { display: flex; align-items: center; gap: 8px; font-size: .92rem; color: var(--navy, #0A2647); }
.compare-widget__cab i { color: var(--cyan, #06b6d4); }
.compare-widget__cuenta { margin-left: auto; font-size: .78rem; color: #64748b; }
.compare-widget__cerrar { border: 0; background: transparent; color: #94a3b8; cursor: pointer; font-size: .9rem; line-height: 1; }
.compare-widget__lista { list-style: none; margin: 10px 0 6px; padding: 0; display: flex; flex-direction: column; gap: 8px; max-height: 42vh; overflow: auto; }
.compare-widget__item { display: flex; align-items: center; gap: 8px; }
.compare-widget__item img, .compare-widget__vacio { width: 40px; height: 26px; border-radius: 6px; object-fit: cover; background: #e8eef5; flex: 0 0 auto; }
.compare-widget__nombre { flex: 1 1 auto; font-size: .82rem; color: #1e293b; line-height: 1.2; }
.compare-widget__quitar { border: 0; background: #f1f5f9; color: #64748b; border-radius: 6px; width: 22px; height: 22px; cursor: pointer; font-size: .7rem; }
.compare-widget__quitar:hover { background: #e2e8f0; color: #0f172a; }
.compare-widget__pista { margin: 6px 0 10px; font-size: .76rem; color: #047857; }
.compare-widget__pista--falta { color: #b45309; }
.compare-widget__accion { display: block; text-align: center; padding: 9px 12px; border-radius: 9px; background: var(--cyan, #06b6d4); color: var(--navy, #0A2647); font-weight: 700; text-decoration: none; font-size: .86rem; }
@media (max-width: 720px) { .compare-widget { left: 12px; right: 12px; width: auto; bottom: 12px; } }
/* EL SIDEBAR, MÁS COMPACTO Y CON SU PROPIO SCROLL (22/10/2026): el dueño dijo que las categorías y etiquetas
   ocupaban mucho y no se veían hasta bajar la página entera. Ahora la barra se queda quieta y hace scroll ella. */
.filters-sidebar .sticky-sidebar {
    position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow-y: auto; padding-right: 6px;
}
.filters-sidebar .filter-group { margin-bottom: 10px; }
.filters-sidebar .filter-group h4 { font-size: .72rem; letter-spacing: .06em; margin: 0 0 6px; }
.filters-sidebar .filter-option { font-size: .82rem; padding: 1px 0; }
.filters-sidebar .filter-select { font-size: .82rem; padding: 5px 8px; }
.filters-sidebar .sticky-sidebar::-webkit-scrollbar { width: 6px; }
.filters-sidebar .sticky-sidebar::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
@media (max-width: 1024px) {
    .filters-sidebar .sticky-sidebar { position: static; max-height: none; overflow: visible; }
}
/* ============================================================================
 *  EL COMPARADOR, EN TARJETAS   (22/10/2026)
 * ============================================================================
 *  El dueño: «el comparador tiene unos estilos horribles y está mal diseñado». Era una tabla de columnas
 *  sueltas que se descuadraban. Ahora: una tarjeta por solución, en fila, con sus filas etiquetadas.
 * ========================================================================== */
#compare-grid { display: flex; flex-wrap: wrap; gap: 18px; align-items: stretch; }
#compare-grid .compare-item-column {
    flex: 1 1 300px; min-width: 280px; background: #fff; border: 1px solid #dbe6f3; border-radius: 14px;
    padding: 16px 16px 14px; display: flex; flex-direction: column; gap: 10px;
    box-shadow: 0 4px 16px rgba(10, 38, 71, .06);
}
#compare-grid .cmp-cab { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; padding-bottom: 10px; border-bottom: 1px solid #eef2f7; }
#compare-grid .cmp-cab h3 { margin: 0; font-size: 1.02rem; color: var(--navy, #0A2647); flex: 1 1 auto; line-height: 1.25; }
#compare-grid .cmp-coste { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #047857; background: #e8f7ef; border-radius: 999px; padding: 2px 8px; }
#compare-grid .remove-item { border: 0; background: #f1f5f9; color: #64748b; width: 24px; height: 24px; border-radius: 7px; cursor: pointer; }
#compare-grid .remove-item:hover { background: #fee2e2; color: #b91c1c; }
/* flex: 0 0 auto: sin esto, la lista de características se estiraba y dejaba un hueco bajo su etiqueta. */
.cmp-fila { display: flex; gap: 10px; align-items: baseline; font-size: .86rem; flex: 0 0 auto; }
.cmp-etq { flex: 0 0 96px; color: #64748b; font-size: .74rem; text-transform: uppercase; letter-spacing: .03em; }
.cmp-val { flex: 1 1 auto; color: #1e293b; }
.cmp-fila--lista { flex-direction: column; gap: 6px; }
.cmp-fila--lista .features-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 5px; }
.cmp-fila--lista .features-list li { display: flex; gap: 7px; font-size: .84rem; color: #334155; line-height: 1.35; }
.cmp-fila--lista .features-list i { color: var(--cyan, #06b6d4); margin-top: 3px; }
.cmp-vacio { color: #94a3b8; font-style: italic; }
.cmp-accion { margin-top: auto; text-align: center; padding: 8px 12px; border-radius: 9px; background: var(--navy, #0A2647); color: #fff !important; text-decoration: none; font-size: .84rem; font-weight: 600; }
.cmp-accion:hover { background: #0d3462; }
/* La columna de etiquetas del marcado antiguo ya no se usa. */
.compare-labels-column { display: none !important; }
@media (max-width: 720px) { #compare-grid .compare-item-column { flex: 1 1 100%; } }
/* EL ANÁLISIS DE LA IA, BIEN PUESTO (22/10/2026): párrafos con aire y una raya de color a la izquierda. */
#ai-analysis-result { font-size: .95rem; line-height: 1.6; color: #1e293b; }
#ai-analysis-result p { margin: 0 0 12px; }
#ai-analysis-result p:first-child { font-weight: 600; color: var(--navy, #0A2647); }
#ai-analysis-result p:last-child {
    margin-bottom: 0; padding: 12px 14px; border-left: 4px solid var(--cyan, #06b6d4);
    background: #f0fbff; border-radius: 0 10px 10px 0; font-weight: 500;
}
#ai-analysis-result h2, #ai-analysis-result h3 { font-size: 1rem; color: var(--navy, #0A2647); margin: 14px 0 8px; }
#ai-analysis-result strong { color: var(--navy, #0A2647); }
/* ============================================================================
 *  EL SIDEBAR, CON LETRA MÁS PEQUEÑA Y ESTRECHA   (22/10/2026)
 * ============================================================================
 *  El dueño: «reduce el tamaño de la tipografía en las etiquetas» y «usa una tipografía estrecha en el
 *  sidebar para que no ocupe tanto ancho». Se estrecha con una familia condensada del sistema (Arial Narrow
 *  existe en Windows y macOS; si no está, la de siempre) y se baja un punto. Nada de servicios de fuera.
 * ========================================================================== */
.filters-sidebar,
.filters-sidebar .filter-option,
.filters-sidebar .ath-acc__nombre,
.filters-sidebar .ath-acc__sub,
.filters-sidebar select.filter-select {
    font-family: inherit;
    letter-spacing: 0;
}
.filters-sidebar .filter-option { font-size: .875rem; line-height: 1.4; }
.filters-sidebar .ath-acc__cab { font-size: .9rem; }
.filters-sidebar .ath-acc__sub { font-size: .84rem !important; line-height: 1.4; }
.filters-sidebar .filter-group h4 { font-size: .75rem; }
.filters-sidebar .filter-select { font-size: .86rem; }
.filters-sidebar .ath-acc__nombre { max-width: 100%; }

/* Sidebar: lectura cómoda con nombres cortos (04/11/2026) */
.filters-sidebar,
.filters-sidebar .filter-group h4,
.filters-sidebar .filter-option,
.filters-sidebar .ath-acc__nombre,
.filters-sidebar .ath-acc__sub,
.filters-sidebar select.filter-select {
    font-family: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue Condensed', system-ui, sans-serif;
    letter-spacing: 0;
}
.filters-sidebar .filter-group--categorias {
    border-top: 1px solid #e5e7eb;
    padding-top: 12px;
    margin-top: 6px;
}
.filters-sidebar .ath-acc__cab { font-size: .9rem; font-weight: 600; }
.filters-sidebar .ath-acc__sub { padding-left: 20px; font-size: .82rem !important; font-weight: 400; }
.filters-sidebar .ath-acc__cab input { transform: scale(1.08); }
.filters-sidebar .ath-acc__sub input { transform: scale(.9); }
header .nav-links a {
    font-family: 'Arial Narrow', 'Roboto Condensed', 'Helvetica Neue Condensed', system-ui, sans-serif;
    font-size: .95rem;
    letter-spacing: 0;
}

/* Información de la puntuación en las fichas */
.rating-display { position: relative; }
.rating-info {
    display: inline-flex; align-items: center; justify-content: center;
    width: 19px; height: 19px; margin-top: 8px; border-radius: 50%;
    background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.4);
    color: #fff; font-size: .72rem; font-weight: 700; font-style: italic; cursor: help;
}
.rating-tip {
    position: absolute; right: 0; top: 100%; margin-top: 8px; width: 270px;
    background: #0b1f36; color: #e2e8f0; border: 1px solid rgba(255,255,255,.15);
    border-radius: 10px; padding: 10px 12px; font-size: .78rem; line-height: 1.4;
    text-align: left; opacity: 0; visibility: hidden; transition: .15s; z-index: 20;
}
.rating-info:hover + .rating-tip,
.rating-info:focus + .rating-tip { opacity: 1; visibility: visible; }
/* LAS FICHAS DEL CHAT (22/10/2026): enlaces completos y legibles en el propio mensaje. */
.ai-message .ath-chat-fichas { margin-top: 8px; font-size: .8rem; line-height: 1.5; }
.ai-message .ath-chat-fichas a { color: #0369a1; word-break: break-all; }
/* ============================================================================
 *  EL MÓVIL, COMO UNA APP   (22/10/2026)
 * ============================================================================
 *  El dueño: «en móvil no se muestra el menú hamburguesa y sobra el hero que consume toda la página; hay que
 *  mejorar el modo móvil para que se vea como una PWA y no se corten los contenidos».
 *
 *  Qué hace: menú hamburguesa con panel deslizante (el mismo <ul> de la cabecera), cabecera pegada arriba,
 *  hero compacto (no ocupa la pantalla), nada que se salga a lo ancho y respeto a las zonas seguras del
 *  teléfono (muesca y barra inferior).
 * ========================================================================== */
html { -webkit-text-size-adjust: 100%; }
body { overflow-x: hidden; overscroll-behavior-y: contain; }
* { -webkit-tap-highlight-color: rgba(6,182,212,.18); }

/* El botón hamburguesa: solo en pantalla estrecha. */
/* El botón vive al final del documento, así que se CLAVA arriba a la derecha: dentro de la cabecera no está. */
.ath-menu-btn {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer;
    padding: 10px; border-radius: 10px; flex-direction: column; justify-content: center; gap: 5px;
    order: 3; flex: 0 0 auto;   /* dentro de la cabecera, a la derecha del logo */
}
.ath-menu-btn span { display: block; height: 2px; border-radius: 2px; background: var(--navy, #0A2647); transition: transform .18s, opacity .18s; }
.ath-menu-abierto .ath-menu-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ath-menu-abierto .ath-menu-btn span:nth-child(2) { opacity: 0; }
.ath-menu-abierto .ath-menu-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ath-menu-velo { position: fixed; inset: 0; background: rgba(7, 16, 30, .45); z-index: 8000; }
@keyframes ath-menu-in {
    from { transform: translateX(105%); }
    to   { transform: translateX(0); }
}

@media (max-width: 900px) {
    /* La cabecera, pegada arriba y con la muesca respetada. */
    header {
        position: sticky !important; top: 0 !important; z-index: 8500 !important; background: #fff !important;
        padding-top: env(safe-area-inset-top, 0px);
        box-shadow: 0 2px 10px rgba(10, 38, 71, .06);
    }
    .header-container { padding: 8px 12px; gap: 10px; }
    header .logo { display: block !important; font-size: 1.05rem; line-height: 1.05; }
    header .logo small { display: block; font-size: .62rem; }
    .ath-menu-btn { display: flex; margin-left: auto; }
    /* En el móvil, la explicación del buscador sobra: se va y queda la barra. */
    .search-spec-box { display: none !important; }
    .search-section-container { padding: 12px !important; }

    /* El MISMO menú, como panel deslizante desde la derecha. */
    /* TODO CON !important: la portada lleva su propio <style> en el documento, que va DESPUÉS de esta hoja y
       ganaba por orden. Sin esto, el panel salía como una fila de enlaces suelta sobre el hero. */
    header .nav-links {
        display: flex !important;
        position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
        width: min(78vw, 320px) !important; height: 100vh !important;
        margin: 0 !important; padding: calc(env(safe-area-inset-top, 0px) + 64px) 20px calc(env(safe-area-inset-bottom, 0px) + 20px) !important;
        background: #fff !important; list-style: none !important; flex-direction: column !important; align-items: stretch !important;
        gap: 4px !important; transform: translateX(105%); transition: transform .22s ease-out; z-index: 9000 !important;
        box-shadow: -12px 0 30px rgba(10, 38, 71, .18); border-radius: 0;
    }
    /* CERRADO: no se pinta. Si el panel fijo sigue fuera de pantalla, su caja ensancha el
       documento (scrollWidth 709 en un viewport de 390) aunque body tenga overflow-x:hidden. */
    body:not(.ath-menu-abierto) header .nav-links {
        display: none !important;
    }
    .ath-menu-abierto header .nav-links {
        display: flex !important;
        transform: translateX(0) !important;
        animation: ath-menu-in .22s ease-out;
    }
    header .nav-links li { width: 100%; }
    header .nav-links a {
        display: block; padding: 14px 4px; border-radius: 0; font-size: 1.02rem; color: var(--navy, #0A2647);
        text-decoration: none; border-bottom: 1px solid #eef2f7;
    }
    header .nav-links a:active { background: #eef6fd; }

    /* EL HERO, COMPACTO: ni una pantalla entera ni un hueco. */
    .hero {
        min-height: auto !important; height: auto !important; padding: 26px 16px 22px !important;
        background-size: cover !important; background-position: center !important;
    }
    .hero h1, .hero-content h1 { font-size: 1.5rem !important; line-height: 1.2; margin: 0 0 8px !important; }
    .hero p, .hero-content p { font-size: .9rem !important; margin: 0 0 10px !important; line-height: 1.4; }
    .hero-stats, .stats-row { gap: 14px !important; margin-top: 8px !important; }
    .hero-stats .stat-value, .stat-number { font-size: 1.25rem !important; }
    .hero-stats .stat-label, .stat-label { font-size: .62rem !important; }
    .hero-mini { padding: 22px 14px !important; }
    .hero-mini h1 { font-size: 1.5rem !important; }
    .hero-mini p { font-size: .9rem !important; }

    /* Que NADA se salga a lo ancho: los contendedores se aprietan. */
    .page-wrapper, .main-layout, .layout-grid, .content-area, .catalog-section { padding-left: 12px !important; padding-right: 12px !important; }
    .hero-banner { flex-direction: column !important; text-align: left; gap: 12px; padding: 16px !important; }
    .hero-logo-img { width: 64px !important; height: 64px !important; }
    .hero-banner h1 { font-size: 1.3rem !important; }
    .rating-box, .rating-card { display: none !important; }
    img, video, iframe { max-width: 100%; }
}
@media (max-width: 420px) {
    .hero h1, .hero-content h1, .hero-mini h1 { font-size: 1.32rem !important; }
}
/* ============================================================================
 *  EL MÓVIL COMO UNA APP   (25/10/2026)
 * ============================================================================
 *  El dueño: «el buscador debe aparecer minimizado como icono de lupa», «la vista móvil debe tener un estilo
 *  de aplicación: botones cuadrados, en filas de 3 iconos con texto pequeño, letra estrecha y fina».
 *
 *  Aquí: (1) la lupa en la cabecera y el buscador recogido; (2) las tarjetas, convertidas en BALDOSAS de app
 *  (tres por fila, cuadradas, solo imagen y nombre); (3) el mapa manda, el panel se abre a demanda.
 * ========================================================================== */

/* --- 1 · LA LUPA Y EL BUSCADOR RECOGIDO ------------------------------------------------------------ */
.ath-lupa-btn {
    display: none; width: 44px; height: 44px; border: 0; background: transparent; color: var(--navy, #0A2647);
    font-size: 1.05rem; cursor: pointer; border-radius: 10px; margin-left: auto;
}
@media (max-width: 900px) {
    .ath-lupa-btn { display: inline-flex; align-items: center; justify-content: center; }
    .ath-menu-btn { margin-left: 0 !important; }
    /* Recogido: ni se ve. Abierto: se despliega sobre el contenido. */
    .search-section-container { display: none; }
    .ath-buscar-abierto .search-section-container {
        display: block; position: sticky; top: calc(env(safe-area-inset-top, 0px) + 60px); z-index: 60;
        margin: 8px 12px 12px; padding: 12px !important; border-radius: 14px;
        background: #fff; box-shadow: 0 10px 30px rgba(10, 38, 71, .18);
    }
    /* La barra de búsqueda, en columna y con los campos a lo ancho. */
    .ath-buscar-abierto .search-box { flex-direction: column !important; align-items: stretch !important; gap: 8px !important; }
    .ath-buscar-abierto .search-box > div, .ath-buscar-abierto .search-box select, .ath-buscar-abierto .search-box button { width: 100% !important; min-width: 0 !important; }

    /* --- 2 · LAS TARJETAS, BALDOSAS DE APP --------------------------------------------------------- */
    /* Tres por fila, cuadradas, con el nombre debajo en dos líneas: lo que hace una pantalla de inicio. */
    .grid-container--llena,
    #grid-providers,
    .video-grid-container,
    .grid-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
        gap: 14px 10px !important;
        align-items: start !important;   /* sin esto, las tarjetas se estiran y dejan huecos */
    }
    .app-card, .provider-card, .video-card {
        border: 0 !important; border-radius: 0 !important; box-shadow: none !important;
        background: transparent !important; padding: 0 !important; overflow: visible !important;
        display: flex !important; flex-direction: column !important; gap: 6px !important;
        min-height: 0 !important; height: auto !important; justify-content: flex-start !important;
    }
    /* Los títulos de sección, más de app: pequeños y estrechos. */
    h2, h3.section-title, .catalog-section h2 { font-size: 1.02rem !important; font-family: 'Arial Narrow', system-ui, sans-serif !important; letter-spacing: 0 !important; }
    .section-header { flex-wrap: wrap; gap: 4px; }
    .search-count, .results-count { font-size: .66rem !important; }
    /* El arte, cuadrado y con esquinas de icono de app. */
    .app-card-media, .prov-arte, .video-thumb {
        border-radius: 20px !important; overflow: hidden; aspect-ratio: 1 / 1 !important;
        box-shadow: 0 4px 14px rgba(10, 38, 71, .14); position: relative;
    }
    /* La miniatura generada lleva el logotipo a la IZQUIERDA y el texto a la derecha: recortando por la
       izquierda se ve el icono limpio, como el de una app (y no un texto cortado). */
    .app-card-media img { width: 100% !important; height: 100% !important; aspect-ratio: 1/1 !important; object-fit: cover; object-position: 8% center; transform: scale(2.15); transform-origin: 8% center; }
    .video-thumb img { width: 100% !important; height: 100% !important; aspect-ratio: 1/1 !important; object-fit: cover; }
    .prov-arte { background: linear-gradient(135deg, #0A2647 0%, #06b6d4 100%) !important; }
    .prov-arte-logo { max-width: 74% !important; max-height: 74% !important; border-radius: 14px; padding: 8px; }
    .prov-arte-inicial { font-size: 2rem !important; }
    /* El texto, pequeño, estrecho y fino (estilo iOS). */
    .app-card h4, .provider-card h3, .video-card h4 {
        font-size: .74rem !important; line-height: 1.2 !important; font-weight: 500 !important;
        font-family: 'Arial Narrow', 'Roboto Condensed', system-ui, sans-serif !important;
        color: #0f172a !important; margin: 0 !important; text-align: center;
        display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    }
    .app-card h4 a, .provider-card h3 a { color: inherit !important; text-decoration: none; }
    /* Lo de la tarjeta de escritorio, fuera: descripción, botones, insignias. */
    .app-card .card-desc, .app-card .card-footer, .app-card .btn-secondary, .app-card .btn-compare,
    .provider-card .card-desc, .provider-card .card-footer, .provider-card .btn-secondary, .provider-card .prov-contacto,
    .video-card .card-desc, .video-card .card-actions, .video-card .btn-secondary, .video-card .btn-compare,
    .app-card .badge, .provider-card .badge, .app-card .app-card-logo, .provider-card .rating-tag { display: none !important; }
    .app-card .card-header, .provider-card .card-header, .video-card-content { margin: 0 !important; padding: 0 !important; display: block !important; }
    .prov-cuerpo { padding: 0 !important; gap: 0 !important; }
    .video-card .video-thumb .play-icon { font-size: .9rem; }

    /* --- 3 · EL PANEL DEL RADAR, A DEMANDA --------------------------------------------------------- */
    .radar-hud { display: none; }
    .radar-hud--abierto { display: block !important; max-width: calc(100vw - 24px) !important; max-height: 60vh; overflow: auto; }
}
/* ============================================================================
 *  EL MAPA, POR DELANTE   (25/10/2026)
 * ============================================================================
 *  El dueño: «al abrir el mapa lo único que se ve es el radar de proveedores, ocultando completamente el mapa;
 *  el mapa debe aparecer solo cuando se pulse y desaparecer cuando se seleccione un área».
 *  El panel dice cuántos hay y lleva el mapa a cada zona, pero NO tapa: se pide.
 * ========================================================================== */
.radar-hud__boton {
    position: absolute; z-index: 30; top: 84px; left: 20px; border: 0; cursor: pointer;
    background: rgba(10, 38, 71, .92); color: #fff; border-radius: 999px; padding: .5rem .95rem;
    font-size: .82rem; font-weight: 600; font-family: 'Arial Narrow', system-ui, sans-serif;
    box-shadow: 0 6px 18px rgba(10, 38, 71, .25); display: inline-flex; align-items: center; gap: .4rem;
}
.radar-hud__cerrar {
    position: absolute; top: 8px; right: 8px; border: 0; background: rgba(255, 255, 255, .12); color: #fff;
    width: 26px; height: 26px; border-radius: 7px; cursor: pointer; font-size: .8rem;
}
@media (max-width: 900px) {
    .radar-hud__boton { top: 64px; left: 12px; padding: .45rem .8rem; font-size: .76rem; }
    .radar-hud { top: 104px !important; left: 12px !important; right: 12px; max-width: none !important; }
    .radar-zonas { max-height: 42vh; }
}
/* LA BARRA DEL RADAR, EN UNA LÍNEA (25/10/2026): en el móvil se partía en tres renglones y empujaba el mapa. */
@media (max-width: 900px) {
    .radar-barra {
        flex-wrap: nowrap !important; overflow-x: auto !important; white-space: nowrap;
        gap: 12px !important; padding: 8px 12px !important; align-items: center;
        scrollbar-width: none;
    }
    .radar-barra::-webkit-scrollbar { display: none; }
    .radar-barra .marca { font-size: .82rem !important; letter-spacing: .02em !important; }
    .radar-barra a { font-size: .78rem !important; }
}


/* ANCHO COMPLETO (04/11/2026) · todas las páginas como la portada */
.main-layout {
    max-width: none !important;
    margin: 0 !important;
    padding: 1.5rem clamp(14px, 2.2vw, 30px) !important;
    gap: 1.75rem !important;
    align-items: flex-start;
}
.filters-sidebar { width: 280px; }
.content-area { flex: 1 1 auto; min-width: 0; width: 100%; }
.page-wrapper, .main-content { max-width: none !important; width: 100%; }
.compare-main-container { max-width: none !important; }

/* Página «El Proyecto» */
.proy-hero { background: linear-gradient(135deg, #0A2647 0%, #123d68 60%, #0b4f6c 100%); color: #fff; border-radius: 20px; padding: clamp(1.7rem, 4vw, 3.2rem); margin-bottom: 1.2rem; }
.proy-eyebrow { margin: 0 0 .7rem; font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: #7ff3ff; font-weight: 700; }
.proy-hero h1 { margin: 0 0 1rem; font-size: clamp(1.6rem, 3.2vw, 2.5rem); line-height: 1.15; }
.proy-hero .proy-sub { margin: 0 0 1.3rem; color: #d7e3f1; font-size: clamp(.98rem, 1.4vw, 1.1rem); line-height: 1.6; max-width: 78ch; }
.proy-btn { display: inline-flex; align-items: center; gap: .5rem; background: #06b6d4; color: #06283a; font-weight: 700; text-decoration: none; padding: .7rem 1.1rem; border-radius: 10px; font-size: .92rem; }
.proy-btn:hover { background: #22d3ee; }
.proy-seccion { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: clamp(1.2rem, 2.6vw, 2rem); margin: 1.1rem 0; }
.proy-seccion h2 { margin: 0 0 .9rem; color: #0A2647; font-size: clamp(1.2rem, 2vw, 1.5rem); }
.proy-seccion h3 { margin: 1.1rem 0 .4rem; color: #0A2647; font-size: 1.05rem; }
.proy-seccion p { color: #334155; line-height: 1.75; margin: .55rem 0; max-width: 92ch; }
.proy-seccion ul { color: #334155; line-height: 1.7; }
.proy-alto { color: #0A2647; font-weight: 700; background: linear-gradient(transparent 62%, rgba(6,182,212,.25) 62%); padding: 0 .1rem; }
.proy-objetivos { display: grid; grid-template-columns: repeat(auto-fit, minmax(235px, 1fr)); gap: 1rem; margin-top: 1rem; }
.proy-obj { border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.1rem; background: #f8fafc; }
.proy-obj i { color: #06b6d4; font-size: 1.35rem; }
.proy-obj h3 { margin: .55rem 0 .4rem; font-size: 1rem; }
.proy-obj p { margin: 0; font-size: .9rem; line-height: 1.55; }
.proy-regiones { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .7rem; margin-top: 1rem; }
.proy-region { border-left: 4px solid #06b6d4; background: #f0f9ff; border-radius: 8px; padding: .85rem 1rem; font-weight: 700; color: #0A2647; }
.proy-financia { background: #0A2647; color: #dbe7f1; border-radius: 14px; padding: 1.2rem 1.4rem; margin-top: 1.2rem; font-size: .95rem; line-height: 1.6; }
.proy-financia strong { color: #fff; }
.proy-financia a { color: #7ff3ff; }
@media (max-width: 720px) { .proy-hero { border-radius: 14px; } .proy-seccion { padding: 1rem; } }

/* ============================================================================
 *  EL PROYECTO · MODELO COMPLETO DEL TECH HUB (07/11/2026)
 *  Estructura: hero, cifras, Netflix tecnológico, catálogo de 10 categorías,
 *  proveedores, etiquetas, buscador/chatbot, campañas y jornadas, i3URBAN.
 * ========================================================================== */
.proy-acciones { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.3rem; }
.proy-btn--sec { background: #fff; color: var(--navy); border: 1px solid #cbd5e1; }
.proy-btn--sec:hover { background: #eef6fb; color: var(--navy); }
.proy-hero .proy-acciones { margin-top: 1.2rem; }

.proy-cifras {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .9rem;
    margin-top: 1.7rem;
}
.proy-cifras > div {
    padding: .9rem 1rem;
    border: 1px solid rgba(255,255,255,.16);
    background: rgba(255,255,255,.06);
    border-radius: 12px;
}
.proy-cifras strong {
    display: block;
    color: #7ff3ff;
    font-size: clamp(1.6rem, 2.8vw, 2.1rem);
    line-height: 1.05;
}
.proy-cifras span {
    display: block;
    margin-top: .25rem;
    color: #cbd9e8;
    font-size: .76rem;
    line-height: 1.3;
}
.proy-cifras--light > div { background: #f8fafc; border-color: #e2e8f0; }
.proy-cifras--light strong { color: var(--navy); }
.proy-cifras--light span { color: #475569; }

.proy-pilares,
.proy-pasos,
.proy-doble,
.proy-campanas,
.proy-jornadas {
    display: grid;
    gap: 1rem;
    margin-top: 1.2rem;
}
.proy-pilares,
.proy-pasos,
.proy-campanas { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.proy-doble,
.proy-jornadas { grid-template-columns: repeat(2, minmax(0, 1fr)); }

.proy-pilar,
.proy-paso,
.proy-feature,
.proy-campana,
.proy-jornada {
    min-width: 0;
    padding: 1.15rem 1.2rem;
    border: 1px solid #e2e8f0;
    border-radius: 14px;
    background: #f8fafc;
}
.proy-pilar i,
.proy-feature i,
.proy-jornada i { color: #06b6d4; font-size: 1.35rem; }
.proy-pilar h3,
.proy-paso h3,
.proy-feature h3 { margin: .55rem 0 .4rem; color: var(--navy); font-size: 1.02rem; }
.proy-pilar p,
.proy-paso p,
.proy-feature p,
.proy-campana p,
.proy-jornada p { margin: 0; color: #475569; font-size: .9rem; line-height: 1.55; }
.proy-paso > span,
.proy-campana > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: #e0f2fe;
    color: #0369a1;
    font-size: .76rem;
    font-weight: 800;
}
.proy-campana h4,
.proy-jornada h4 { margin: .55rem 0 .35rem; color: var(--navy); font-size: .98rem; }
.proy-campanas + h3,
.proy-jornadas { margin-top: 1.2rem; }
.proy-seccion h3 { margin-top: 1.5rem; }

.proy-catalogo {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
    margin-top: 1.2rem;
}
.proy-cat {
    min-width: 0;
    padding: 1.15rem;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 16px rgba(10, 38, 71, .05);
}
.proy-cat__cab { display: flex; align-items: center; gap: .7rem; margin-bottom: .8rem; }
.proy-cat__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.3rem;
    height: 2.3rem;
    flex: 0 0 auto;
    border-radius: 10px;
    background: #e0f2fe;
    color: #0369a1;
    font-size: .74rem;
    font-weight: 800;
}
.proy-cat h3 { margin: 0; color: var(--navy); font-size: 1.02rem; line-height: 1.25; }
.proy-subcat { padding-top: .7rem; margin-top: .7rem; border-top: 1px solid #eef2f7; }
.proy-subcat h4 { margin: 0 0 .3rem; color: var(--navy); font-size: .9rem; }
.proy-subcat p { margin: 0 0 .55rem; color: #475569; font-size: .85rem; line-height: 1.5; }
.proy-apps { display: flex; flex-wrap: wrap; gap: .35rem; }
.proy-app {
    display: inline-flex;
    align-items: center;
    padding: .24rem .55rem;
    border-radius: 999px;
    border: 1px solid #dbeafe;
    background: #eff6ff;
    color: #075985;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
}
.proy-usos__title {
    margin: .65rem 0 .25rem !important;
    color: #0A2647 !important;
    font-size: .72rem !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .05em;
}
.proy-usos { margin: 0; padding-left: 1.1rem; color: #475569; font-size: .82rem; line-height: 1.5; }
.proy-usos li { margin: .15rem 0; }

.proy-nota {
    display: flex;
    gap: .55rem;
    align-items: flex-start;
    margin: 1rem 0 0 !important;
    padding: .8rem .9rem;
    border: 1px dashed #bae6fd;
    border-radius: 12px;
    background: #f0f9ff;
    color: #334155 !important;
    font-size: .86rem !important;
    line-height: 1.5;
    max-width: none !important;
}
.proy-nota i { color: #0284c7; margin-top: .15rem; }

.proy-split {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(260px, 1fr);
    gap: 1.2rem;
    align-items: start;
    margin-top: 1rem;
}
.proy-ejemplo {
    padding: 1.1rem 1.2rem;
    border: 1px solid #dbe6f3;
    border-radius: 16px;
    background: #f8fafc;
}
.proy-ejemplo h3 { margin: 0 0 .6rem; color: var(--navy); }
.proy-ejemplo ul { margin: 0; padding-left: 1.1rem; color: #475569; font-size: .84rem; line-height: 1.55; }
.proy-ejemplo li { margin: .22rem 0; }
.proy-ejemplo strong { color: var(--navy); }

.proy-tags-grupos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; margin-top: 1rem; }
.proy-tags-grupo { padding: 1rem 1.05rem; border: 1px solid #e2e8f0; border-radius: 14px; background: #f8fafc; }
.proy-tags-grupo h3 { margin: 0 0 .55rem; color: var(--navy); font-size: .92rem; }
.proy-tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.proy-tag {
    display: inline-flex;
    padding: .26rem .6rem;
    border-radius: 999px;
    background: #e0f2fe;
    border: 1px solid #bae6fd;
    color: #075985;
    font-size: .72rem;
    font-weight: 700;
    line-height: 1.2;
}

.proy-seccion .proy-btn { margin-top: .2rem; }

@media (max-width: 900px) {
    .proy-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .proy-pilares,
    .proy-pasos,
    .proy-campanas,
    .proy-tags-grupos { grid-template-columns: 1fr; }
    .proy-doble,
    .proy-jornadas { grid-template-columns: 1fr; }
    .proy-catalogo { grid-template-columns: 1fr; }
    .proy-split { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .proy-cifras { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .proy-cifras > div { padding: .75rem .8rem; }
    .proy-acciones { gap: .5rem; }
    .proy-acciones .proy-btn { width: 100%; justify-content: center; }
    .proy-cat { padding: 1rem; }
    .proy-ejemplo,
    .proy-tags-grupo,
    .proy-pilar,
    .proy-paso,
    .proy-feature,
    .proy-campana,
    .proy-jornada { padding: .95rem; }
}

.radar-hud__boton[hidden] { display: none !important; }


/* ============================================================================
 *  TARJETAS ESTÁNDAR EN MÓVIL (07/11/2026)
 *  El usuario detectó que en móvil muchas tarjetas se convertían en baldosas
 *  cuadradas y el logo se comía la tarjeta. Se vuelve a la tarjeta estándar:
 *  imagen 16:9, cuerpo con título, descripción y botones.
 * ========================================================================== */
@media (max-width: 900px) {
    .grid-container--llena,
    #grid-providers,
    .video-grid-container,
    .grid-container {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)) !important;
        gap: 16px !important;
        align-items: stretch !important;
    }

    .app-card, .provider-card, .video-card {
        display: flex !important;
        flex-direction: column !important;
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
        border: 1px solid var(--border, #e2e8f0) !important;
        border-radius: 14px !important;
        background: #fff !important;
        box-shadow: var(--shadow-sm, 0 4px 6px -1px rgba(0,0,0,.05)) !important;
    }

    .app-card {
        padding: 0 16px 16px !important;
    }

    .app-card-media {
        position: relative !important;
        display: block !important;
        margin: 0 -16px 12px !important;
        border-radius: 0 !important;
        aspect-ratio: 16 / 9 !important;
        overflow: hidden !important;
        box-shadow: none !important;
    }

    .app-card-media img {
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
        object-position: center !important;
        transform: none !important;
        border-bottom: 1px solid #e8eef5 !important;
    }

    .app-card-media img.app-card-logo {
        display: block !important;
        position: absolute !important;
        left: 10px !important;
        bottom: 10px !important;
        width: 42px !important;
        height: 42px !important;
        aspect-ratio: 1 / 1 !important;
        object-fit: contain !important;
        transform: none !important;
        background: #fff !important;
        border: 0 !important;
        border-bottom: 0 !important;
        border-radius: 10px !important;
        padding: 4px !important;
        box-shadow: 0 2px 10px rgba(10, 38, 71, .22) !important;
    }

    .app-card .card-header,
    .app-card .card-desc,
    .app-card .card-footer,
    .app-card .badge {
        display: block !important;
    }

    .app-card .card-header {
        padding: 0 !important;
        margin: 0 0 8px !important;
    }

    .app-card h4 {
        display: block !important;
        margin: 0 0 6px !important;
        font-family: inherit !important;
        font-size: 1.05rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        color: var(--navy, #0A2647) !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: initial !important;
        overflow: visible !important;
    }

    .app-card .card-desc {
        display: block !important;
        margin: 0 0 12px !important;
        font-family: inherit !important;
        font-size: .88rem !important;
        font-weight: 400 !important;
        line-height: 1.45 !important;
        color: #475569 !important;
        text-align: left !important;
    }

    .app-card .badge {
        display: inline-block !important;
        margin: 0 6px 8px 0 !important;
    }

    .app-card > div:last-child {
        display: flex !important;
        flex-wrap: nowrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-top: auto !important;
        padding-top: 12px !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    .app-card .btn-secondary,
    .app-card .btn-compare,
    .provider-card .btn-secondary,
    .video-card .btn-secondary,
    .video-card .card-actions .btn-compare {
        display: inline-flex !important;
    }

    /* Proveedores: la misma tarjeta estándar, con arte 16:9 y cuerpo visible. */
    .provider-card .prov-arte {
        aspect-ratio: 16 / 9 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .provider-card .prov-cuerpo {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        padding: 14px 16px 16px !important;
    }

    .provider-card h3 {
        display: block !important;
        margin: 0 !important;
        font-family: inherit !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        color: var(--navy, #0A2647) !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: initial !important;
        overflow: visible !important;
    }

    .provider-card .card-desc,
    .provider-card .prov-contacto,
    .provider-card .card-footer,
    .provider-card .rating-tag,
    .provider-card .badge {
        display: flex !important;
    }

    .provider-card .card-desc {
        display: block !important;
        margin: 4px 0 8px !important;
        font-size: .86rem !important;
        line-height: 1.4 !important;
        color: #475569 !important;
    }

    .provider-card .badge {
        display: inline-block !important;
        align-self: flex-start !important;
    }

    .provider-card .card-footer {
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        gap: 10px !important;
        margin-top: auto !important;
        padding-top: 10px !important;
        background: transparent !important;
        border-top: 1px solid #f1f5f9 !important;
    }

    /* Vídeos: también tarjeta estándar. */
    .video-card .video-thumb {
        aspect-ratio: 16 / 9 !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .video-card .video-thumb img {
        width: 100% !important;
        height: 100% !important;
        aspect-ratio: 16 / 9 !important;
        object-fit: cover !important;
    }

    .video-card .video-card-content {
        display: block !important;
        margin: 0 !important;
        padding: 14px 16px 16px !important;
    }

    .video-card h4 {
        display: block !important;
        margin: 0 0 6px !important;
        font-family: inherit !important;
        font-size: 1rem !important;
        font-weight: 700 !important;
        line-height: 1.25 !important;
        text-align: left !important;
        color: var(--navy, #0A2647) !important;
        -webkit-line-clamp: unset !important;
        -webkit-box-orient: initial !important;
        overflow: visible !important;
    }

    .video-card .card-desc {
        display: block !important;
        margin: 0 0 10px !important;
        font-size: .86rem !important;
        line-height: 1.4 !important;
        color: #475569 !important;
    }

    .video-card .card-actions {
        display: flex !important;
        gap: 10px !important;
        align-items: center !important;
        margin-top: auto !important;
        padding-top: 10px !important;
        border-top: 1px solid #f1f5f9 !important;
    }
}

@media (max-width: 560px) {
    .grid-container--llena,
    #grid-providers,
    .video-grid-container,
    .grid-container {
        grid-template-columns: 1fr !important;
    }
}
