/* ==================== RESET & GLOBALS ==================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* ITAB-HMY Brand Colors */
    --dark-brown: #392c24;
    --dark-teal: #356f7a;
    --medium-teal: #7AA2AB;
    --light-teal: #D1DDE0;
    --white: #FFFFFF;
    --black: #000000;
    
    /* Typography */
    --font-primary: 'Montserrat', 'Avant Garde', 'Century Gothic', sans-serif;
    
    /* Spacing */
    --spacing-xs: 8px;
    --spacing-sm: 12px;
    --spacing-md: 20px;
    --spacing-lg: 30px;
    --spacing-xl: 40px;
    
    /* Border Radius */
    --radius-sm: 12px;
    --radius-md: 20px;
    --radius-lg: 30px;
    --radius-xl: 50px;
    
    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&display=swap');

body {
    font-family: var(--font-primary);
    background: var(--dark-brown);
    color: var(--white);
    overflow-x: hidden;
    height: 100vh;
    width: 100vw;
    touch-action: pan-y;
}

/* ==================== BRAND LOGO ==================== */
.brand-logo {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    opacity: 0.95;
}

.logo-image {
    height: 40px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.3));
}

/* ==================== MOSAIC BACKGROUND ==================== */
.mosaic-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.1;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.mosaic-shape {
    position: absolute;
    border: 2px solid var(--dark-teal);
}

/* ==================== CONTAINER ==================== */
.app-container {
    max-width: 480px;
    height: 100vh;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--dark-brown) 0%, #2a1f19 100%);
    position: relative;
    overflow: hidden;
}

.content-wrapper {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    padding-top: 80px;
}

/* ==================== LANGUAGE SELECTION SCREEN ==================== */
.language-screen {
    min-height: calc(100vh - 80px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: var(--spacing-xl) var(--spacing-lg);
}

.logo-container {
    margin-bottom: 60px;
    text-align: center;
}

.logo-title {
    font-size: 2.5em;
    font-weight: 800;
    letter-spacing: 3px;
    color: var(--light-teal);
    text-transform: uppercase;
    margin-bottom: 10px;
    text-shadow: 0 4px 12px rgba(53, 111, 122, 0.4);
}

.logo-subtitle {
    font-size: 1em;
    font-weight: 400;
    color: var(--medium-teal);
    letter-spacing: 2px;
    margin-bottom: 5px;
}

.logo-event {
    font-size: 0.9em;
    font-weight: 600;
    color: var(--dark-teal);
    letter-spacing: 1px;
}

.language-title {
    font-size: 1.5em;
    font-weight: 600;
    color: var(--light-teal);
    margin-bottom: 40px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.language-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    width: 100%;
    max-width: 400px;
}

.language-card {
    background: linear-gradient(135deg, var(--dark-teal) 0%, #2a5963 100%);
    border: 3px solid transparent;
    border-radius: var(--radius-md);
    padding: 30px 20px;
    text-align: center;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.language-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(209, 221, 224, 0.2) 0%, transparent 70%);
    opacity: 0;
    transition: opacity var(--transition-normal);
}

.language-card:active {
    transform: scale(0.95);
}

.language-card:hover::before,
.language-card.selected::before {
    opacity: 1;
}

.language-card.selected {
    border-color: var(--light-teal);
    background: linear-gradient(135deg, var(--medium-teal) 0%, var(--dark-teal) 100%);
    box-shadow: 0 0 30px rgba(209, 221, 224, 0.4);
    transform: scale(1.05);
}

.language-flag {
    font-size: 3.5em;
    margin-bottom: 12px;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
}

.language-name {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== HEADER ==================== */
.header {
    background: linear-gradient(135deg, var(--dark-teal) 0%, #2a5963 100%);
    padding: 25px 20px 20px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 999;
    max-width: 480px;
    margin: 0 auto;
    border-bottom: 3px solid var(--medium-teal);
}

.header-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
}

.header-title {
    font-size: 1.8em;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--light-teal);
    text-transform: uppercase;
}

.header-subtitle {
    font-size: 0.9em;
    color: var(--light-teal);
    font-weight: 400;
    letter-spacing: 1px;
    opacity: 0.9;
}

.lang-switch {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(209, 221, 224, 0.2);
    border: 2px solid var(--light-teal);
    padding: 8px 15px;
    border-radius: var(--radius-md);
    font-size: 0.9em;
    font-weight: 600;
    color: var(--light-teal);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.lang-switch:active {
    transform: scale(0.95);
    background: rgba(209, 221, 224, 0.3);
}

/* ==================== CONTENT ==================== */
.content {
    padding: var(--spacing-lg) var(--spacing-md);
    min-height: calc(100vh - 140px);
}

.section-title {
    font-size: 1.5em;
    font-weight: 700;
    margin-bottom: 25px;
    text-align: center;
    color: var(--light-teal);
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ==================== OCCASION CARDS ==================== */
.occasion-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
    margin-bottom: 30px;
}

.occasion-card {
    border: 3px solid rgba(124, 162, 171, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    background: rgba(53, 111, 122, 0.2);
}

.occasion-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 120%;
    overflow: hidden;
}

.occasion-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.occasion-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, transparent 0%, rgba(53, 111, 122, 0.7) 100%);
    transition: opacity var(--transition-normal);
}

.occasion-card:active {
    transform: scale(0.95);
}

.occasion-card:hover .occasion-image {
    transform: scale(1.1);
}

.occasion-card.selected {
    border-color: var(--light-teal);
    box-shadow: 0 0 30px rgba(209, 221, 224, 0.3);
    transform: scale(1.05);
}

.occasion-label {
    padding: 15px;
    text-align: center;
    font-size: 1.05em;
    font-weight: 700;
    color: var(--light-teal);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    background: rgba(42, 31, 25, 0.8);
}

/* ==================== DETAIL OPTIONS ==================== */
.detail-option {
    background: linear-gradient(135deg, rgba(53, 111, 122, 0.3) 0%, rgba(42, 89, 99, 0.3) 100%);
    border: 3px solid rgba(124, 162, 171, 0.3);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 18px;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
}

.detail-option::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 6px;
    height: 100%;
    background: var(--dark-teal);
    transform: scaleY(0);
    transition: transform var(--transition-normal);
}

.detail-option:active {
    transform: scale(0.98);
}

.detail-option.selected {
    border-color: var(--light-teal);
    background: linear-gradient(135deg, rgba(124, 162, 171, 0.5) 0%, rgba(53, 111, 122, 0.5) 100%);
    box-shadow: 0 0 25px rgba(209, 221, 224, 0.2);
}

.detail-option.selected::before {
    transform: scaleY(1);
}

.detail-option-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--light-teal);
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-option-desc {
    font-size: 0.95em;
    color: var(--light-teal);
    opacity: 0.85;
    line-height: 1.5;
}

/* ==================== RESULT CARD ==================== */
.result-card {
    background: linear-gradient(135deg, rgba(53, 111, 122, 0.4) 0%, rgba(42, 89, 99, 0.4) 100%);
    border: 4px solid var(--medium-teal);
    border-radius: var(--radius-lg);
    padding: 30px 25px;
    animation: fadeInScale 0.6s ease-out;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4);
}

@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.wine-image {
    width: 100%;
    max-height: 300px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: var(--radius-md);
}

.wine-name {
    font-size: 2em;
    font-weight: 800;
    color: var(--light-teal);
    text-align: center;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 1px;
    line-height: 1.2;
}

.wine-region {
    text-align: center;
    font-size: 1.1em;
    color: var(--medium-teal);
    margin-bottom: 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.wine-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 25px 0;
    justify-content: center;
}

.wine-tag {
    background: rgba(53, 111, 122, 0.5);
    border: 2px solid var(--medium-teal);
    padding: 10px 18px;
    border-radius: var(--radius-xl);
    font-size: 0.9em;
    font-weight: 600;
    color: var(--light-teal);
    letter-spacing: 0.5px;
}

.info-section {
    background: rgba(42, 31, 25, 0.5);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-bottom: 20px;
    border-left: 5px solid var(--dark-teal);
}

.info-title {
    font-size: 1.2em;
    font-weight: 700;
    color: var(--medium-teal);
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.info-text {
    font-size: 1em;
    line-height: 1.7;
    color: var(--light-teal);
    opacity: 0.95;
}

.info-highlight {
    background: rgba(124, 162, 171, 0.3);
    padding: 4px 10px;
    border-radius: 8px;
    font-weight: 700;
    color: var(--light-teal);
    display: inline-block;
    margin: 3px;
}

/* ==================== CROSS-SELL ==================== */
.cross-sell {
    background: rgba(53, 111, 122, 0.3);
    border-radius: var(--radius-md);
    padding: 25px;
    margin-top: 25px;
    border: 2px solid rgba(124, 162, 171, 0.4);
}

.cross-sell-title {
    font-size: 1.3em;
    font-weight: 700;
    color: var(--light-teal);
    margin-bottom: 20px;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.cross-sell-items {
    display: grid;
    gap: 15px;
}

.cross-sell-item {
    background: rgba(42, 31, 25, 0.6);
    border: 2px solid rgba(124, 162, 171, 0.3);
    border-radius: var(--radius-sm);
    padding: 18px;
    display: flex;
    align-items: center;
    gap: 18px;
    transition: all var(--transition-normal);
    cursor: pointer;
}

.cross-sell-item:active {
    transform: scale(0.98);
    background: rgba(42, 31, 25, 0.8);
}

.cross-sell-item img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    flex-shrink: 0;
}

.cross-sell-content {
    flex: 1;
}

.cross-sell-name {
    font-weight: 700;
    color: var(--medium-teal);
    margin-bottom: 6px;
    font-size: 1.05em;
    letter-spacing: 0.5px;
}

.cross-sell-desc {
    font-size: 0.9em;
    color: var(--light-teal);
    opacity: 0.8;
    line-height: 1.5;
}

.qr-code {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    padding: 5px;
    background: white;
    border-radius: var(--radius-sm);
}

/* ==================== BUTTONS ==================== */
.btn {
    background: linear-gradient(135deg, var(--dark-teal) 0%, #2a5963 100%);
    border: 3px solid var(--medium-teal);
    color: var(--white);
    padding: 18px 40px;
    border-radius: var(--radius-xl);
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    transition: all var(--transition-normal);
    width: 100%;
    margin-top: 25px;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.3);
}

.btn:active {
    transform: scale(0.97);
}

.btn:hover {
    box-shadow: 0 8px 35px rgba(124, 162, 171, 0.4);
    border-color: var(--light-teal);
}

.btn-secondary {
    background: rgba(53, 111, 122, 0.3);
    border-color: rgba(124, 162, 171, 0.5);
    margin-top: 15px;
}

/* ==================== LOADING ==================== */
.loading {
    text-align: center;
    padding: 50px 30px;
}

.spinner {
    border: 5px solid rgba(124, 162, 171, 0.3);
    border-top: 5px solid var(--medium-teal);
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.loading-text {
    font-size: 1.2em;
    color: var(--light-teal);
    font-weight: 600;
    margin-bottom: 10px;
}

.loading-subtext {
    opacity: 0.7;
    font-size: 0.95em;
    color: var(--medium-teal);
}

/* ==================== UTILITY CLASSES ==================== */
.hidden {
    display: none !important;
}

.fade-in {
    animation: fadeIn 0.5s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.slide-up {
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 480px) {
    .language-grid,
    .occasion-grid {
        gap: 15px;
    }
    
    .logo-title {
        font-size: 2em;
    }
    
    .header-title {
        font-size: 1.5em;
    }
}
/* ==================== FLAG ICONS ==================== */
.flag-icon {
    width: 60px;
    height: 45px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
}

.language-card:hover .flag-icon {
    transform: scale(1.1);
    box-shadow: 0 4px 16px rgba(117, 162, 171, 0.4);
}

.language-card:active .flag-icon {
    transform: scale(0.95);
}

/* ==================== BACK BUTTON ==================== */
.back-button {
    position: fixed;
    top: 20px;
    left: 20px;
    background: rgba(117, 162, 171, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid var(--medium-teal);
    color: var(--white);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    z-index: 999;
    transition: all var(--transition-normal);
    font-family: var(--font-primary);
}

.back-button:hover {
    background: rgba(117, 162, 171, 0.3);
    border-color: var(--light-teal);
    transform: translateX(-4px);
    box-shadow: 0 4px 16px rgba(117, 162, 171, 0.3);
}

.back-button:active {
    transform: translateX(-2px) scale(0.98);
}

/* Responsive para móviles */
@media (max-width: 480px) {
    .back-button {
        padding: 10px 18px;
        font-size: 14px;
        top: 15px;
        left: 15px;
    }
    
    .flag-icon {
        width: 50px;
        height: 37px;
    }
}

/* ==================== FULL WIDTH BUTTON ==================== */
.full-width {
    width: 90%;
    margin: 30px auto;
    display: block;
}

/* ==================== FIXES CRÍTICOS ==================== */

/* 1. BOTÓN VOLVER - SIEMPRE VISIBLE EN 9:16 */
.back-button {
    position: absolute;
    top: 10px;
    left: 10px;
    background: rgba(53, 111, 122, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--light-teal);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius-lg);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1001;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

.back-button:hover {
    background: rgba(53, 111, 122, 1);
    transform: translateX(-2px);
    box-shadow: 0 4px 16px rgba(117, 162, 171, 0.5);
}

.back-button:active {
    transform: translateX(0px) scale(0.97);
}

/* 2. OCASIONES - IMÁGENES MÁS GRANDES */
.occasion-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 15px;
    max-width: 450px;
    margin: 0 auto;
}

.occasion-card {
    min-height: 250px;
    border: 3px solid rgba(124, 162, 171, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    background: rgba(53, 111, 122, 0.2);
}

.occasion-image-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.occasion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.occasion-label {
    padding: 18px;
    text-align: center;
    font-size: 1.2em;
    font-weight: 700;
    background: linear-gradient(180deg, transparent 0%, rgba(53, 111, 122, 0.4) 100%);
    letter-spacing: 0.5px;
}

/* 3. PREFERENCIAS - IMÁGENES MÁS GRANDES Y VISIBLES */
.preference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 15px;
    max-width: 450px;
    margin: 0 auto;
}

.preference-card {
    min-height: 180px;
    border: 3px solid rgba(124, 162, 171, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    background: rgba(53, 111, 122, 0.2);
    display: flex;
    flex-direction: column;
}

.preference-image-wrapper {
    width: 100%;
    height: 130px;
    overflow: hidden;
    position: relative;
}

.preference-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.preference-label {
    padding: 12px;
    text-align: center;
    font-size: 1.05em;
    font-weight: 700;
    background: rgba(53, 111, 122, 0.8);
    color: var(--white);
    letter-spacing: 0.5px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preference-card:hover {
    transform: scale(1.05);
    border-color: var(--light-teal);
    box-shadow: 0 8px 24px rgba(117, 162, 171, 0.3);
}

.preference-card:hover .preference-image {
    transform: scale(1.15);
}

/* 4. PANTALLAS - POSICIÓN RELATIVA PARA BOTÓN */
.screen {
    position: relative;
    min-height: calc(100vh - 80px);
    padding-top: 60px;
}

/* 5. LOGO FIJO - SIEMPRE VISIBLE */
.brand-logo {
    position: fixed;
    top: 15px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    opacity: 0.95;
}

.logo-image {
    height: 45px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* 6. ELIMINAR LOGO DUPLICADO EN PANTALLA IDIOMA */
.logo-container {
    display: none;
}

.language-screen {
    padding-top: 100px;
}

/* 7. RESPONSIVO MÓVIL */
@media (max-width: 480px) {
    .back-button {
        padding: 8px 16px;
        font-size: 14px;
        top: 8px;
        left: 8px;
    }
    
    .occasion-grid {
        gap: 15px;
        padding: 10px;
    }
    
    .occasion-image-wrapper {
        height: 180px;
    }
    
    .preference-grid {
        gap: 12px;
        padding: 10px;
    }
    
    .preference-image-wrapper {
        height: 110px;
    }
}

/* 8. PANTALLA ESTRECHA (9:16 / KIOSKO) */
@media (max-aspect-ratio: 9/16) {
    .app-container {
        max-width: 100%;
    }
    
    .back-button {
        position: absolute;
        top: 10px;
        left: 10px;
    }
    
    .brand-logo {
        top: 10px;
    }
}
/* ==================== FIXES: SIN SCROLL + TEXTOS OCASIONES ==================== */

/* CONTENEDOR PRINCIPAL - SIN SCROLL */
.app-container {
    max-width: 480px;
    height: 100vh;
    margin: 0 auto;
    background: linear-gradient(180deg, var(--dark-brown) 0%, #2a1f19 100%);
    position: relative;
    overflow: hidden; /* Bloquear scroll */
}

.content-wrapper {
    position: relative;
    z-index: 1;
    height: 100vh;
    overflow: hidden; /* Bloquear scroll */
    padding-top: 70px; /* Espacio para logo */
    display: flex;
    flex-direction: column;
}

/* PANTALLAS - SIN SCROLL */
.screen {
    position: relative;
    height: 100%;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 10px;
}

/* TÍTULOS MÁS COMPACTOS */
.screen-title {
    font-size: 1.3em;
    margin: 10px 0 15px 0;
    padding: 0 10px;
    text-align: center;
}

/* OCASIONES - MÁS COMPACTAS, CON TEXTOS */
.occasion-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
    max-width: 450px;
    margin: 0 auto;
    flex-shrink: 0;
}

.occasion-card {
    min-height: auto;
    border: 2px solid rgba(124, 162, 171, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    background: rgba(53, 111, 122, 0.2);
    display: flex;
    flex-direction: column;
}

.occasion-image-wrapper {
    width: 100%;
    height: 110px; /* Reducido de 200px */
    overflow: hidden;
    position: relative;
}

.occasion-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.occasion-label {
    padding: 8px;
    text-align: center;
    font-size: 0.9em;
    font-weight: 700;
    background: rgba(53, 111, 122, 0.8);
    color: var(--white);
    letter-spacing: 0.5px;
}

.occasion-description {
    padding: 6px 8px;
    text-align: center;
    font-size: 0.75em;
    font-weight: 400;
    color: var(--light-teal);
    background: rgba(53, 111, 122, 0.3);
    line-height: 1.2;
}

.occasion-card:hover {
    transform: scale(1.03);
    border-color: var(--light-teal);
    box-shadow: 0 6px 20px rgba(117, 162, 171, 0.3);
}

.occasion-card:hover .occasion-image {
    transform: scale(1.1);
}

/* PREFERENCIAS - MÁS COMPACTAS */
.preference-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 10px;
    max-width: 450px;
    margin: 0 auto;
    flex-shrink: 0;
}

.preference-card {
    min-height: auto;
    border: 2px solid rgba(124, 162, 171, 0.4);
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-normal);
    position: relative;
    background: rgba(53, 111, 122, 0.2);
    display: flex;
    flex-direction: column;
}

.preference-image-wrapper {
    width: 100%;
    height: 100px; /* Reducido de 130px */
    overflow: hidden;
    position: relative;
}

.preference-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.preference-label {
    padding: 10px;
    text-align: center;
    font-size: 0.95em;
    font-weight: 700;
    background: rgba(53, 111, 122, 0.8);
    color: var(--white);
    letter-spacing: 0.5px;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preference-card:hover {
    transform: scale(1.03);
    border-color: var(--light-teal);
    box-shadow: 0 6px 20px rgba(117, 162, 171, 0.3);
}

.preference-card:hover .preference-image {
    transform: scale(1.1);
}

/* PANTALLA IDIOMAS - MÁS COMPACTA */
.language-screen {
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    height: 100%;
}

.language-title {
    font-size: 1.3em;
    font-weight: 600;
    color: var(--light-teal);
    margin-bottom: 25px;
    text-align: center;
}

.language-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    max-width: 400px;
    width: 100%;
}

.language-card {
    padding: 15px;
}

.flag-icon {
    width: 55px;
    height: 41px;
}

/* BOTÓN VOLVER - MÁS COMPACTO */
.back-button {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(53, 111, 122, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--light-teal);
    color: var(--white);
    padding: 8px 16px;
    border-radius: var(--radius-lg);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    z-index: 1001;
    transition: all var(--transition-fast);
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.3);
}

/* LOGO MÁS COMPACTO */
.brand-logo {
    position: fixed;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1002;
    opacity: 0.95;
}

.logo-image {
    height: 38px; /* Reducido de 45px */
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.4));
}

/* RESPONSIVE MÓVIL */
@media (max-width: 480px) {
    .content-wrapper {
        padding-top: 60px;
    }
    
    .screen-title {
        font-size: 1.2em;
        margin: 8px 0 12px 0;
    }
    
    .occasion-grid,
    .preference-grid {
        gap: 10px;
        padding: 8px;
    }
    
    .occasion-image-wrapper {
        height: 100px;
    }
    
    .preference-image-wrapper {
        height: 90px;
    }
    
    .occasion-label,
    .preference-label {
        font-size: 0.85em;
        padding: 6px;
    }
    
    .occasion-description {
        font-size: 0.7em;
        padding: 4px 6px;
    }
}

/* PANTALLA ESTRECHA 9:16 */
@media (max-aspect-ratio: 9/16) {
    .app-container {
        max-width: 100%;
    }
    
    .occasion-image-wrapper {
        height: 95px;
    }
    
    .preference-image-wrapper {
        height: 85px;
    }
}

/* PANTALLA MUY PEQUEÑA */
@media (max-height: 700px) {
    .occasion-image-wrapper {
        height: 90px;
    }
    
    .preference-image-wrapper {
        height: 75px;
    }
    
    .screen-title {
        font-size: 1.1em;
        margin: 5px 0 10px 0;
    }
}
