/* v2/css/main.css */
/* Estilos Globales y Variables - Estilo Apple / Glassmorphism */

:root {
    --prodi-orange: #f25e18;
    --prodi-orange-hover: #d94e0f;
    --font-main: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* {
    margin: 0; 
    padding: 0; 
    box-sizing: border-box;
    font-family: var(--font-main);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: #000; /* Fondo negro por si el video tarda un milisegundo en cargar */
    color: #fff;
    overflow-x: hidden;
}

/* ========================================= */
/* CONTENEDOR HERO Y VIDEO DE FONDO          */
/* ========================================= */
.landing-hero {
    position: relative;
    /* Cambiamos a height: auto para que no se aplaste en celulares pequeños */
    min-height: 100vh;
    height: auto; 
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    /* Añadimos padding arriba para proteger el botón de idioma y abajo para el footer */
    padding: 85px 20px 70px 20px; 
    overflow-x: hidden; 
    overflow-y: auto; /* Permite scroll si la pantalla es muy bajita */
}

.hero-video {
    position: fixed; /* Fijo para que al hacer scroll no se corte el video */
    top: 0; left: 0; width: 100vw; height: 100vh;
    object-fit: cover;
    z-index: 0;
    pointer-events: none; 
}

.landing-hero::before {
    content: '';
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 100%);
    z-index: 1;
}
/* ========================================= */
/* SELECTOR DE IDIOMAS (PILL STYLE)          */
/* ========================================= */
.lang-toggle {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 20; /* Aseguramos que siempre esté arriba */
    display: flex;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 30px;
    padding: 5px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.lang-btn {
    text-decoration: none; color: rgba(255, 255, 255, 0.7);
    padding: 8px 18px; border-radius: 20px;
    font-size: 0.9rem; font-weight: 600; transition: all 0.3s ease;
}
.lang-btn:hover { color: #fff; }
.lang-btn.active { background: var(--prodi-orange); color: #fff; }

/* ========================================= */
/* TARJETA DE CRISTAL (GLASSMORPHISM)        */
/* ========================================= */

.glass-card {
    position: relative; z-index: 2;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    padding: 40px 30px;
    width: 100%; max-width: 480px;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.4);
    margin: 0 auto;
    animation: fadeUp 0.8s ease-out forwards;
}

@keyframes fadeUp { to { opacity: 1; transform: translateY(0); } }

.glass-card .brand-logo {
    width: 70px; margin-bottom: 20px; border-radius: 16px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

/* ========================================= */
/* TIPOGRAFÍA DEL GANCHO                     */
/* ========================================= */

.hero-title {
    font-size: 2.4rem;
    font-weight: 800;
    margin-bottom: 15px;
    line-height: 1.1;
    color: #ffffff;
    letter-spacing: -0.5px;
}

.hero-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 35px;
    line-height: 1.5;
}

.hero-subtitle strong {
    color: var(--prodi-orange);
    font-weight: 700;
}

.magic-instruction {
    font-size: 0.95rem;
    color: rgba(255,255,255,0.9);
    margin-bottom: 12px;
    font-weight: 500;
}

/* ========================================= */
/* FORMULARIOS (APPLE STYLE)                 */
/* ========================================= */

.apple-input {
    width: 100%; padding: 16px 20px; font-size: 1.05rem;
    border: 1px solid rgba(255,255,255,0.2); border-radius: 14px;
    background: rgba(0,0,0,0.4); color: #fff;
    margin-bottom: 15px; text-align: center; transition: all 0.3s ease;
}
.apple-input:focus { border-color: var(--prodi-orange); outline: none; background: rgba(0,0,0,0.6); }

.apple-btn {
    width: 100%; padding: 16px 20px; font-size: 1.05rem; font-weight: 700;
    border: none; border-radius: 14px; background-color: var(--prodi-orange);
    color: white; cursor: pointer; display: flex; justify-content: center; gap: 10px;
    transition: all 0.3s ease;
}
.apple-btn:hover { background-color: var(--prodi-orange-hover); transform: translateY(-2px); }
.apple-btn:disabled { background-color: #888; cursor: not-allowed; transform: none; }

/* ========================================= */
/* FOOTER GLOBAL                             */
/* ========================================= */


.global-footer {
    position: absolute; bottom: 0; left: 0; width: 100%;
    text-align: center; padding: 20px; z-index: 2;
    color: rgba(255, 255, 255, 0.5); font-size: 0.85rem;
}

/* ========================================= */
/* RESPONSIVE DESIGN (MÓVILES)               */
/* ========================================= */

@media (max-width: 600px) {
    .glass-card { 
        padding: 40px 25px; 
        border-radius: 20px; 
    }
    .hero-title { font-size: 2rem; }
    .hero-subtitle { font-size: 1rem; }
    .lang-toggle { top: 15px; right: 15px; }
    .apple-input, .apple-btn { padding: 15px; font-size: 1rem; }
}
/* ========================================= */
/* BOTTOM SHEET MODAL (APPLE STYLE)          */
/* ========================================= */

.sheet-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0; right: 0;
    background: #fff;
    border-radius: 30px 30px 0 0;
    z-index: 1000;
    max-height: 90vh;
    padding: 20px 25px 40px 25px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Efecto rebote suave */
    overflow-y: auto;
}

.bottom-sheet.active {
    bottom: 0;
}

/* El "Drag Handle" (La rayita gris arriba del modal) */
.sheet-handle {
    width: 50px;
    height: 5px;
    background: #e5e5ea;
    border-radius: 10px;
    margin: 0 auto 20px auto;
}

/* Contenido del Perfil en el Modal */
.modal-pro-header {
    text-align: center;
    margin-bottom: 25px;
}
.modal-pro-header img {
    width: 90px;
    height: 90px;
    border-radius: 25px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.modal-pro-header h2 { font-size: 1.5rem; color: #1d1d1f; }
.modal-pro-header .cat { color: var(--prodi-orange); font-weight: 600; margin-top: 5px; }
.modal-bio { font-size: 0.95rem; color: #86868b; line-height: 1.5; margin-bottom: 25px; text-align: center; }

/* Desktop adjustments for modal */
@media (min-width: 768px) {
    .bottom-sheet { max-width: 500px; margin: 0 auto; border-radius: 30px; bottom: -100%; top: auto; height: auto; }
    .bottom-sheet.active { bottom: 20px; }
}

/* ========================================= */
/* ESTILOS ESPECÍFICOS DEL FEED (APP STYLE)  */
/* ========================================= */

.app-body {
    background-color: #fbfbfd; /* Blanco roto típico de interfaces iOS */
    color: #1d1d1f;
    padding-bottom: 90px; /* Espacio crítico para que el Bottom Nav no tape contenido */
}

/* Cabecera Fija (Sticky Header) */
.app-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(251, 251, 253, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    padding: 20px 20px 10px 20px;
    border-bottom: 1px solid rgba(0,0,0,0.05);
}

.header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.greeting p { font-size: 0.9rem; color: #86868b; }
.greeting h1 { font-size: 1.5rem; font-weight: 700; color: #1d1d1f; }

.profile-btn {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background-color: #e5e5ea;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: #1d1d1f;
    text-decoration: none;
}

/* Barra de Búsqueda Integrada */
.search-bar { position: relative; width: 100%; }
.search-icon {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: #86868b;
}
.search-input {
    width: 100%;
    padding: 14px 15px 14px 45px;
    border-radius: 16px;
    border: none;
    background-color: #efeff4;
    font-size: 1rem;
    color: #1d1d1f;
    transition: all 0.3s ease;
}
.search-input:focus {
    outline: none;
    background-color: #fff;
    box-shadow: 0 0 0 2px var(--prodi-orange);
}

/* Carrusel Horizontal de Categorías */
.category-scroll {
    display: flex;
    overflow-x: auto;
    gap: 10px;
    padding: 15px 20px;
    scrollbar-width: none; /* Oculta scrollbar en Firefox */
}
.category-scroll::-webkit-scrollbar { display: none; } /* Oculta scrollbar en Chrome/Safari */

.cat-pill {
    padding: 8px 18px;
    background-color: #fff;
    border: 1px solid #e5e5ea;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 500;
    color: #1d1d1f;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.2s ease;
}
.cat-pill.active {
    background-color: var(--prodi-orange);
    color: #fff;
    border-color: var(--prodi-orange);
}

/* Contenedor Principal del Feed */
.feed-container {
    padding: 10px 20px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--prodi-orange);
    font-size: 1.5rem;
    display: none;
}

/* Menú de Navegación Inferior */
.bottom-nav {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0,0,0,0.05);
    display: flex;
    justify-content: space-around;
    padding: 15px 10px 25px 10px; /* Padding extra abajo para gestos de iPhone */
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    color: #86868b;
    font-size: 0.75rem;
    font-weight: 500;
}
.nav-item i { font-size: 1.4rem; }
.nav-item.active { color: var(--prodi-orange); }

/* ========================================= */
/* BOTTOM SHEET MODAL (PERFIL RÁPIDO)        */
/* ========================================= */

.sheet-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 999;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.sheet-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0; right: 0;
    background: #fff;
    border-radius: 30px 30px 0 0;
    z-index: 1000;
    max-height: 90vh;
    padding: 20px 25px 40px 25px;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
    transition: bottom 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1); /* Efecto resorte sutil */
    overflow-y: auto;
}
.bottom-sheet.active { bottom: 0; }

.sheet-handle {
    width: 50px;
    height: 5px;
    background: #e5e5ea;
    border-radius: 10px;
    margin: 0 auto 20px auto;
}

.modal-pro-header { text-align: center; margin-bottom: 25px; }
.modal-pro-header img {
    width: 90px;
    height: 90px;
    border-radius: 25px;
    object-fit: cover;
    margin-bottom: 15px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}
.modal-pro-header h2 { font-size: 1.5rem; color: #1d1d1f; }
.cat-badge { color: var(--prodi-orange); font-weight: 600; margin-top: 5px; }

.modal-bio { 
    font-size: 0.95rem; 
    color: #86868b; 
    line-height: 1.5; 
    margin-bottom: 25px; 
    text-align: center; 
}

.modal-actions { display: flex; gap: 10px; margin-bottom: 15px; }
.btn-call { background: #28a745 !important; flex: 1; text-decoration: none; }
.btn-chat { background: #1d1d1f !important; flex: 1; text-decoration: none; }
.btn-full-profile { background: #efeff4 !important; color: #1d1d1f !important; text-decoration: none; }

/* Ajustes para Desktop / Tablets */
@media (min-width: 768px) {
    .app-header, .category-scroll, .feed-container, .bottom-nav {
        max-width: 600px;
        margin: 0 auto;
        background-color: #fff;
    }
    .app-body { background-color: #f4f4f4; }
    .app-header { border-radius: 0 0 24px 24px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); }
    .bottom-nav { border-radius: 24px 24px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.05); }
    .feed-container { background: transparent; }
    
    /* El modal en PC no viene de abajo, flota en el centro */
    .bottom-sheet { 
        max-width: 500px; 
        margin: 0 auto; 
        border-radius: 30px; 
        bottom: -100%; 
        top: auto; 
    }
    .bottom-sheet.active { bottom: 20px; }
}
/* Contenedor principal del Hero que limita el ancho en pantallas grandes */
.hero-main-wrapper {
    width: 100%; max-width: 1300px; margin: 0 auto;
    z-index: 10; position: relative;
}

.hero-grid-layout {
    display: grid; grid-template-columns: 1fr;
    gap: 30px; width: 100%; align-items: center;
}

/* SECCIÓN IZQUIERDA: Branding/Relleno */
.hero-branding-info {
    color: #fff;
    text-align: center; /* Centrado en móvil */
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-branding-info .brand-explain-tag {
    color: var(--prodi-orange);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 10px;
}

.hero-branding-info .hero-title {
    font-size: 2.8rem;
    line-height: 1.1;
    margin-bottom: 20px;
}

.hero-branding-info .hero-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    margin-bottom: 40px;
    max-width: 500px;
}

/* Botones de Descarga */
.download-apps-wrapper {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 20px;
}

.download-btn img {
    height: 45px; /* Altura estándar de botones de tienda */
    transition: transform 0.2s ease;
}

.download-btn:hover img {
    transform: scale(1.05); /* Efecto pop al pasar el mouse */
}

/* SECCIÓN DERECHA: La Tarjeta de Login (mantiene su diseño) */
.hero-login-form {
    display: flex;
    justify-content: center;
}

/* ==========================================================================
   MEDIA QUERY: ESCRITORIO (min-width: 992px)
   Aquí es donde ocurre la magia de "llenar el vacío"
   ========================================================================== */
@media (min-width: 992px) {
    .hero-grid-layout {
        grid-template-columns: 1.2fr 1fr; /* Dos columnas: Branding más ancho que Login */
        text-align: left; /* Alineación a la izquierda */
    }

    .hero-branding-info {
        align-items: flex-start; /* Alineamos contenido a la izquierda */
        padding-right: 50px;
    }

    .hero-branding-info .hero-title {
        font-size: 3.5rem; /* Título más grande en PC */
    }

    .download-apps-wrapper {
        justify-content: flex-start; /* Botones alineados a la izquierda */
    }
    
    /* Pequeño ajuste para que el logo aparezca arriba de la explicación en PC si quieres */
    .glass-card .brand-logo {
        margin-left: 0;
        margin-right: auto;
    }
}
/* ==========================================================================
   LOGO EN TEXTO TRANSLÚCIDO (Estilo ProdiApp™)
   ========================================================================== */
/* TEXTO LOGO PRODIAPP™ */
.text-logo-brand {
    font-size: 3.5rem; font-weight: 500; color: rgba(255, 255, 255, 0.85);
    letter-spacing: -1.5px; margin-bottom: 15px;
    display: flex; align-items: flex-start; justify-content: center;
    text-shadow: 0 4px 15px rgba(0,0,0,0.3);
}
.text-logo-brand sup { font-size: 1.4rem; font-weight: 600; color: rgba(255, 255, 255, 0.5); margin-top: 8px; margin-left: 4px; }

/* SECCIÓN IZQUIERDA: Branding */
.hero-branding-info { text-align: center; color: #fff; }
.hero-branding-info .hero-title { font-size: 2.2rem; font-weight: 800; line-height: 1.1; margin-bottom: 15px; }
.hero-branding-info .hero-subtitle { font-size: 1rem; color: rgba(255, 255, 255, 0.8); max-width: 600px; margin: 0 auto 25px auto; line-height: 1.5; }
.magic-instruction { font-size: 0.9rem; color: rgba(255,255,255,0.9); margin-bottom: 15px; }

.download-apps-wrapper { display: flex; gap: 15px; justify-content: center; margin-bottom: 20px; }
.download-btn img { height: 45px; transition: transform 0.2s ease; }
.download-btn:hover img { transform: scale(1.05); }

/* ==========================================================================
   MEDIA QUERIES (La magia de la adaptación)
   ========================================================================== */

/* 📱 TELÉFONOS MUY PEQUEÑOS (Fold 5, iPhone SE, etc) */
@media (max-width: 400px) {
    .text-logo-brand { font-size: 2.5rem; }
    .hero-branding-info .hero-title { font-size: 1.8rem; }
    .hero-branding-info .hero-subtitle { font-size: 0.9rem; }
    .glass-card { padding: 30px 20px; border-radius: 20px; }
    .download-btn img { height: 40px; }
    .lang-toggle { top: 15px; right: 15px; padding: 3px; }
    .lang-btn { padding: 6px 12px; font-size: 0.8rem; }
}

/* 💻 ESCRITORIO (Orden perfecto) */
@media (min-width: 992px) {
    .landing-hero { padding: 0 40px; } /* En PC quitamos el padding extremo */
    
    .hero-grid-layout {
        grid-template-columns: 1.2fr 1fr; /* Columna izq más ancha */
        gap: 60px;
    }

    .hero-branding-info {
        text-align: left; /* TODO ALINEADO A LA IZQUIERDA */
        padding-right: 40px;
    }
    
    .hero-branding-info .hero-subtitle {
        margin: 0 0 35px 0; /* Quitamos el auto margin para alinear a la izq */
        font-size: 1.15rem;
    }

    .text-logo-brand {
        font-size: 4.5rem; /* Gigante y majestuoso en PC */
        justify-content: flex-start;
        margin-bottom: 25px;
    }

    .hero-branding-info .hero-title {
        font-size: 3.5rem;
        margin-bottom: 20px;
    }

    .download-apps-wrapper {
        justify-content: flex-start; /* Botones a la izquierda */
    }
    
    .download-btn img {
        height: 55px; /* Botones de tienda enormes en PC */
    }

    .glass-card {
        margin: 0; /* Quitamos auto margin */
        float: right; /* Lo empujamos a la derecha */
    }
}

/* =========================================================
   PRODIAPP V2 - FEED / SEARCH REFINEMENTS
   Agregar al final de main.css
   ========================================================= */

/* Utilidad accesible */
.sr-only {
    position: absolute !important;
    width: 1px; height: 1px;
    padding: 0; margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap; border: 0;
}

/* ---------- Navbar superior nueva ---------- */
.app-navbar {
    position: sticky;
    top: 0;
    z-index: 120;
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid rgba(0,0,0,0.06);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 14px 18px;
}

.nav-left,
.nav-center,
.nav-right {
    display: flex;
    align-items: center;
    gap: 14px;
}

.brand-text-logo {
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -1px;
    line-height: 1;
    white-space: nowrap;
}

.brand-text-logo .plomo {
    color: #2f2f35;
}

.brand-text-logo .naranja {
    color: var(--prodi-orange);
}

.desktop-nav-links a {
    text-decoration: none;
    color: #7a7a84;
    font-size: 0.92rem;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.desktop-nav-links a:hover,
.desktop-nav-links a.active {
    color: var(--prodi-orange);
}

.header-lang-toggle {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #f1f1f5;
    border-radius: 999px;
    padding: 4px;
}

.header-lang-toggle a {
    text-decoration: none;
    color: #7a7a84;
    font-size: 0.8rem;
    font-weight: 700;
    padding: 7px 11px;
    border-radius: 999px;
    transition: all 0.2s ease;
}

.header-lang-toggle a.active {
    background: #fff;
    color: var(--prodi-orange);
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}

.header-profile {
    display: flex;
    align-items: center;
    gap: 12px;
}

.greeting-compact {
    font-size: 0.92rem;
    color: #7a7a84;
    white-space: nowrap;
}

.greeting-compact b {
    color: #1d1d1f;
}

/* ---------- zona superior del feed ---------- */
.feed-top-area {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 22px 18px 10px 18px;
}

.feed-top-copy {
    margin-bottom: 18px;
}

.feed-main-title {
    font-size: clamp(2rem, 4vw, 3.3rem);
    line-height: 1.02;
    font-weight: 800;
    color: #ff5000;
    letter-spacing: -1.4px;
    margin-bottom: 8px;
    max-width: 760px;
}

.feed-main-subtitle {
    font-size: 1rem;
    color: #6e6e73;
    line-height: 1.5;
    max-width: 760px;
}

/* ---------- buscador y filtros ---------- */
.search-section {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 760px;
}

.filter-row {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
}

.filter-select-wrap {
    position: relative;
    width: 100%;
    max-width: 290px;
}

.filter-select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    border: 1px solid #e2e2e8;
    background: #fff;
    color: #1d1d1f;
    border-radius: 14px;
    padding: 13px 42px 13px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    outline: none;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.filter-select:focus {
    border-color: var(--prodi-orange);
    box-shadow: 0 0 0 3px rgba(242,94,24,0.12);
}

.select-chevron {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #7a7a84;
    pointer-events: none;
    font-size: 0.95rem;
}

/* ---------- status strip ---------- */
.feed-status-strip {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 0 18px 12px 18px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feed-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    width: fit-content;
    max-width: 100%;
    background: #fff;
    border: 1px solid #ececf1;
    color: #1d1d1f;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 0.9rem;
    font-weight: 700;
    box-shadow: 0 6px 18px rgba(0,0,0,0.03);
}

.feed-status-badge i {
    color: var(--prodi-orange);
}

.feed-status-help {
    color: #6e6e73;
    font-size: 0.95rem;
    line-height: 1.45;
    max-width: 760px;
}

/* ---------- shell principal ---------- */
.feed-page-shell {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    padding: 6px 18px 120px 18px;
}

.results-section {
    width: 100%;
}

.results-header {
    min-height: 1px;
    margin-bottom: 8px;
}

/* ---------- contenedor grid del feed ---------- */
.feed-container {
    padding: 0;
    display: grid;
    grid-template-columns: 1fr;
    gap: 18px;
}

/* tablet */
@media (min-width: 700px) {
    .feed-container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* desktop */
@media (min-width: 1080px) {
    .feed-container {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

/* ---------- tarjetas ---------- */
.pro-card-wrapper {
    width: 100%;
}

.pro-card-content {
    min-height: 100%;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.pro-card-content:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(0,0,0,0.06) !important;
    border-color: rgba(242,94,24,0.10);
}

.pro-card-content h3 {
    overflow-wrap: anywhere;
}

.pro-badge-premium {
    box-shadow: 0 2px 8px rgba(242,94,24,0.08);
}

/* ---------- skeleton ---------- */
.skeleton-area {
    display: none;
    width: 100%;
}

.skeleton-block {
    position: relative;
    overflow: hidden;
}

.skeleton-block::after {
    content: "";
    position: absolute;
    top: 0;
    left: -140%;
    width: 120%;
    height: 100%;
    background: linear-gradient(
        90deg,
        rgba(255,255,255,0) 0%,
        rgba(255,255,255,0.72) 50%,
        rgba(255,255,255,0) 100%
    );
    animation: prodiSkeleton 1.2s infinite;
}

@keyframes prodiSkeleton {
    100% {
        left: 140%;
    }
}

/* ---------- mensajes finales ---------- */
.end-message-box {
    margin-top: 14px;
}

.feed-end-copy,
.search-end-copy {
    background: #fff;
    border-radius: 22px;
    border: 1px solid #ececf1;
    box-shadow: 0 8px 24px rgba(0,0,0,0.04);
}

/* ---------- loader ---------- */
.loading-spinner {
    text-align: center;
    padding: 20px;
    color: var(--prodi-orange);
    font-size: 1.4rem;
    display: none;
}

/* ---------- modal refinado ---------- */
.bottom-sheet {
    padding-bottom: calc(32px + env(safe-area-inset-bottom));
}

.modal-pro-header h2 {
    line-height: 1.15;
    letter-spacing: -0.5px;
}

.cat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #fff5ee;
    color: var(--prodi-orange);
    padding: 7px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    font-weight: 700;
    margin-top: 10px;
}

.modal-bio {
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.modal-actions .apple-btn,
.btn-full-profile.apple-btn {
    min-height: 50px;
    border-radius: 16px;
}

/* ---------- bottom nav más limpia ---------- */
.bottom-nav {
    padding-bottom: calc(20px + env(safe-area-inset-bottom));
}

.nav-item span {
    line-height: 1;
}

/* ---------- desktop refinado ---------- */
@media (min-width: 992px) {
    .app-body {
        background:
            radial-gradient(circle at top, rgba(242,94,24,0.03), transparent 35%),
            #fbfbfd;
    }

    .feed-top-area,
    .feed-status-strip,
    .feed-page-shell {
        padding-left: 24px;
        padding-right: 24px;
    }
}

/* ---------- móvil ---------- */
@media (max-width: 767px) {
    .app-navbar {
        padding: 12px 14px;
        gap: 10px;
    }

    .desktop-nav-links {
        display: none;
    }

    .brand-text-logo {
        font-size: 1.8rem;
    }

    .greeting-compact {
        display: none;
    }

    .feed-top-area {
        background: #e5e5ea;
        padding: 2em;
        border-radius: 30px 30px 0px 0px;
    }

    .feed-main-title {
        font-size: clamp(2rem, 8vw, 3rem);
        max-width: 100%;
        margin-bottom: 6px;
    }

    .feed-main-subtitle {
        font-size: 0.96rem;
        max-width: 100%;
    }

    .feed-status-strip {
        padding: 0 14px 10px 14px;
    }

    .feed-status-help {
        font-size: 0.92rem;
    }

    .feed-page-shell {
        padding: 6px 14px 120px 14px;
    }

    .search-section {
        max-width: 100%;
    }

    .filter-select-wrap {
        max-width: 100%;
    }

    .search-input {
        min-height: 50px;
        font-size: 1rem;
        border-radius: 18px;
    }

    .pro-card-content {
        border-radius: 22px !important;
    }

    .bottom-sheet {
        border-radius: 26px 26px 0 0;
        padding-left: 18px;
        padding-right: 18px;
    }
}

/* ---------- móviles muy pequeños ---------- */
@media (max-width: 420px) {
    .brand-text-logo {
        font-size: 1.65rem;
    }

    .header-lang-toggle a {
        padding: 6px 10px;
        font-size: 0.78rem;
    }

    .profile-btn {
        width: 42px;
        height: 42px;
    }

    .feed-main-title {
        letter-spacing: -1px;
    }
}
/* =========================================================
   FEED V2 - DESKTOP/MOBILE FIX OVERRIDES
   Pegar AL FINAL de main.css
   ========================================================= */

/* 1) El feed no debe quedar comprimido a 600px en desktop */
@media (min-width: 768px) {
    .feed-top-area,
    .feed-status-strip,
    .feed-page-shell,
    .results-section,
    #resultsSection,
    #feedContainer {
        max-width: 1280px !important;
        width: 100% !important;
        margin-left: auto !important;
        margin-right: auto !important;
        background: transparent !important;
    }

    .feed-container {
        display: grid !important;
        grid-template-columns: repeat(3, minmax(280px, 1fr)) !important;
        gap: 22px !important;
        padding: 0 !important;
        max-width: 1280px !important;
        width: 100% !important;
        margin: 0 auto !important;
    }

    .pro-card-wrapper {
        width: 100% !important;
    }

    .pro-card-content {
        width: 100% !important;
        min-height: 250px;
    }
}

/* 2) En desktop NO se muestra el bottom nav móvil */
@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }

    .app-body {
        padding-bottom: 40px !important;
    }
}

/* 3) Navbar superior más limpia en desktop */
@media (min-width: 992px) {
    .app-navbar {
        padding: 14px 28px !important;
    }

    .feed-top-area,
    .feed-status-strip,
    .feed-page-shell {
        padding-left: 28px !important;
        padding-right: 28px !important;
    }

    .feed-main-title {
        max-width: 720px !important;
    }

    .search-section {
        max-width: 720px !important;
    }
}

/* 4) En móvil sí se mantiene bottom nav */
@media (max-width: 767px) {
    .bottom-nav {
        display: flex !important;
    }

    .feed-container {
        display: grid !important;
        grid-template-columns: 1fr !important;
        gap: 16px !important;
        padding: 0 !important;
    }
}

/* 5) Tablet intermedia */
@media (min-width: 768px) and (max-width: 1079px) {
    .feed-container {
        grid-template-columns: repeat(2, minmax(260px, 1fr)) !important;
    }
}

/* 6) Quitar herencias viejas que contaminan feed nuevo */
.app-header,
.category-scroll {
    display: none;
}
.feed-register-banner {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto 18px auto;
    padding: 0 18px;
}

.feed-register-banner-link {
    display: block;
    width: 100%;
    text-decoration: none;
}

.feed-register-banner-img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 28px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

@media (max-width: 767px) {
    .feed-register-banner {
        padding: 0 14px;
        margin-bottom: 14px;
    }

    .feed-register-banner-img {
        border-radius: 22px;
    }
}

#registerBanner {
    display: block;
}

#registerBanner.hidden {
    display: none !important;
}

.btn-favorite.is-active {
    color: #f25e18 !important;
}

.modal-rating-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 12px;
    flex-wrap: wrap;
}

.modal-stars {
    color: #FFD700;
    font-size: 1rem;
    letter-spacing: 1px;
}

.modal-rating-value {
    color: #1d1d1f;
    font-weight: 700;
    font-size: 0.95rem;
}

.modal-review-count {
    color: #86868b;
    font-size: 0.88rem;
}