/* ==========================================================================
   1. VARIABLES Y BASES (ESTILO LUXURY APP)
   ========================================================================== */
:root {
    --primary: #E65100;
    --primary-grad: linear-gradient(135deg, #E65100, #FF3D00);
    --bg-crema: #FFFDF5;
    --white: #FFFFFF;
    --border: #F2E8DF;
    --text-dark: #2D241E;
    --text-light: #7A6F64;
    --radius-lg: 32px;
    --radius-md: 20px;
    --shadow-premium: 0 15px 35px rgba(45, 36, 30, 0.06);
}

* { 
    box-sizing: border-box; 
    margin: 0; 
    padding: 0; 
    -webkit-tap-highlight-color: transparent; 
}

a { text-decoration: none !important; color: inherit !important; }

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background-color: var(--bg-crema);
    color: var(--text-dark);
    line-height: 1.5;
    padding-bottom: 110px;
    overflow-x: hidden;
}

.container {
    max-width: 500px;
    margin: 0 auto;
    padding: 0 20px;
}

/* --- HEADER PREMIUM --- */
.premium-header {
    text-align: center;
    padding: 25px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.main-logo {
    height: 55px;
    width: auto;
}

.status-badge {
    background: var(--white);
    padding: 6px 14px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    border: 1px solid var(--border);
}

.led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #25D366;
    box-shadow: 0 0 8px rgba(37, 211, 102, 0.5);
}
/* ==========================================================================
   2. REPUTACIÓN Y RESUMEN IA
   ========================================================================== */

/* --- GRID DE REPUTACIÓN --- */
.reputation-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 20px;
}

.rep-card {
    background: var(--white);
    padding: 20px;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px solid var(--border);
    box-shadow: var(--shadow-premium);
}

.rep-val {
    font-size: 24px;
    font-weight: 800;
    color: var(--text-dark);
}

.rep-stars {
    color: #FFB300;
    font-size: 12px;
    margin: 4px 0;
}

.rep-lab {
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

/* --- TARJETA DE RESUMEN IA --- */
.ai-review-card {
    background: var(--white);
    padding: 24px;
    border-radius: var(--radius-md);
    margin-bottom: 25px;
    border: 1px solid var(--border);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-premium);
}

/* Efecto Shimmer (Brillo de carga IA) */
.ai-review-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    transform: translateX(-100%);
    background-image: linear-gradient(
        90deg,
        rgba(255, 255, 255, 0) 0,
        rgba(255, 255, 255, 0.2) 20%,
        rgba(255, 255, 255, 0.5) 60%,
        rgba(255, 255, 255, 0)
    );
    animation: shimmer 3s infinite;
}

@keyframes shimmer {
    100% { transform: translateX(100%); }
}

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

.ai-badge {
    background: var(--primary-grad);
    color: var(--white);
    font-size: 9px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 100px;
    letter-spacing: 1px;
}

.ai-stars {
    color: #FFB300;
    font-size: 12px;
}

.ai-text {
    font-size: 13px;
    color: var(--text-dark);
    line-height: 1.6;
}

.ai-text strong {
    color: var(--primary);
    font-weight: 700;
}
/* ==========================================================================
   3. SECCIÓN DE SELECCIÓN (FILTRO DE BIENVENIDA)
   ========================================================================== */

.welcome-filter {
    margin-bottom: 30px;
}

.filter-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 20px;
    text-align: center;
    box-shadow: var(--shadow-premium);
    border: 1px solid var(--border);
}

.filter-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 8px;
    letter-spacing: -0.5px;
}

.filter-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-bottom: 35px;
}

.filter-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.btn-gender {
    background: #F0FBF4; /* Un verde crema muy sutil */
    border: 1px solid #D1E7D1; /* Borde verde suave */
    padding: 30px 10px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
}
/* Cambio de color en el texto principal al ser verde */
.btn-gender .btn-main {
    color: #2E7D32; /* Verde bosque para legibilidad */
}

/* Efecto al presionar (Feedback táctil en verde) */
.btn-gender:active {
    transform: scale(0.94);
    background: #E1F5E1;
    border-color: #25D366; /* El verde característico de tu UI */
}
/* Efecto al presionar (Feedback táctil) */
.btn-gender:active {
    transform: scale(0.94);
    background: #FFF0E0;
    border-color: var(--primary);
}

.btn-icon {
    font-size: 45px;
    margin-bottom: 15px;
    display: block;
    filter: drop-shadow(0 5px 10px rgba(0,0,0,0.05));
}

.btn-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.btn-label {
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-light);
    font-weight: 600;
}

.btn-main {
    font-size: 19px;
    font-weight: 800;
    color: var(--text-dark);
}
/* ==========================================================================
   4. SECCIÓN DE BENEFICIOS (TRUST BAR)
   ========================================================================== */

.benefits-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    margin-bottom: 35px;
}

.benefit-card {
    background: var(--white);
    padding: 20px 25px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    gap: 20px;
    border: 1px solid var(--border);
    transition: transform 0.3s ease;
}

/* Efecto hover sutil para escritorio */
@media (min-width: 768px) {
    .benefit-card:hover {
        transform: translateY(-5px);
        border-color: var(--primary);
    }
}

.ben-icon {
    font-size: 28px;
    background: #FFF5F0; /* Fondo naranja muy claro */
    width: 55px;
    height: 55px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 18px;
    flex-shrink: 0;
}

.benefit-card h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.benefit-card p {
    font-size: 12px;
    color: var(--text-light);
    line-height: 1.4;
}

/* --- AJUSTE PARA TABLETAS (2 Columnas si hay espacio) --- */
@media (min-width: 480px) {
    .benefits-grid {
        grid-template-columns: 1fr 1fr;
    }
    .benefit-card:last-child {
        grid-column: span 2;
    }
}
/* ==========================================================================
   5. INSTAGRAM Y NAVEGACIÓN INFERIOR
   ========================================================================== */

/* --- SECCIÓN INSTAGRAM --- */
.instagram-section {
    text-align: center;
    margin-bottom: 40px;
}

.section-tag {
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

.insta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
}

.insta-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    border: 1px solid var(--border);
}

/* --- BARRA DE NAVEGACIÓN INFERIOR --- */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 12px 10px 25px; /* Extra padding para iPhones modernos */
    border-top: 1px solid var(--border);
    z-index: 2000;
}

.nav-btn {
    background: none;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    flex: 1;
}

.nav-btn span {
    font-size: 9px;
    font-weight: 700;
    text-transform: uppercase;
}

/* --- BOTÓN FLOTANTE CENTRAL (WhatsApp/Acción) --- */
.main-action-wrapper {
    position: relative;
    top: -15px; /* Lo eleva un poco */
    z-index: 2100;
}

.wa-circle {
    width: 55px;
    height: 55px;
    background: var(--primary-grad);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    box-shadow: 0 8px 20px rgba(230, 81, 0, 0.3);
    border: 4px solid var(--white);
    color: var(--white) !important;
}

/* Tooltip de "Recibe Hoy" sobre el botón central */
.express-tooltip {
    position: absolute;
    top: -45px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--text-dark);
    color: var(--white);
    padding: 6px 12px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
}

.express-tooltip::after {
    content: "";
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid var(--text-dark);
}
/* ==========================================================================
   6. MODALES, DRAWER Y AJUSTES FINALES
   ========================================================================== */

/* --- CAPA DE FONDO (OVERLAY) --- */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(45, 36, 30, 0.4);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 3000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: block;
    opacity: 1;
}

/* --- CAJÓN DESLIZABLE (DRAWER) --- */
.drawer {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background: var(--white);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    z-index: 3100;
    padding: 35px 20px 50px;
    transition: bottom 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.15);
    max-height: 85vh;
    overflow-y: auto;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.1);
}

.drawer.active {
    bottom: 0;
}

/* Tirador visual del drawer */
.handle {
    width: 40px;
    height: 5px;
    background: var(--border);
    border-radius: 10px;
    margin: -15px auto 25px;
}

/* --- LISTADO DE RESEÑAS DENTRO DEL MODAL --- */
.reviews-list-premium {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.rev-item {
    padding: 15px;
    border-radius: 18px;
    border: 1px solid var(--border);
}

.rev-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
}

.rev-name {
    font-size: 13px;
    font-weight: 800;
}

/* --- MENU DE CATEGORÍAS (DRAWER) --- */
.drawer-menu-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.drawer-menu-item {
    background: var(--bg-crema);
    padding: 15px;
    border-radius: 15px;
    text-align: center;
    border: 1px solid var(--border);
    font-size: 12px;
    font-weight: 700;
}

/* --- UTILIDADES --- */
.hidden { display: none !important; }

/* Evitar scroll cuando el modal está abierto */
body.modal-open {
    overflow: hidden;
}

/* Animación de entrada para elementos del drawer */
.drawer.active > * {
    animation: fadeInUp 0.5s ease backwards;
    animation-delay: 0.2s;
}

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}
/* --- ANIMACIÓN PREMIUM PARA BOTÓN PRINCIPAL --- */
.btn-gender {
    position: relative;
    overflow: hidden; /* Necesario para que el destello no se salga */
    animation: shadowPulse 2s infinite; /* Pulso de sombra */
}

/* Efecto de Destello (Shimmer) */
.btn-gender::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(30deg);
    transition: none;
    animation: lightSweep 3s infinite;
}

/* Definición de los movimientos */
@keyframes lightSweep {
    0% { left: -60%; }
    30% { left: 120%; }
    100% { left: 120%; }
}

@keyframes shadowPulse {
    0% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0.2); }
    70% { box-shadow: 0 0 0 15px rgba(46, 125, 50, 0); }
    100% { box-shadow: 0 0 0 0 rgba(46, 125, 50, 0); }
}