* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== ESTILOS PRINCIPALES ===== */
body {
    font-family: 'Poppins', sans-serif;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px;
    position: relative;
    background: linear-gradient(145deg, #f8f9fa 0%, #e9ecef 100%);
    transition: background 0.3s ease;
}

/* Overlay semitransparente para legibilidad */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
    transition: background 0.3s;
    pointer-events: none;
}

.overlay.light {
    background: rgba(0, 0, 0, 0.2);
}

/* ===== CONTENEDOR PRINCIPAL - VERSIÓN OSCURA SÓLIDA ===== */
.container {
    position: relative;
    z-index: 1;
    max-width: 500px;
    width: 100%;
    background: #000000;
    border-radius: 32px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    padding: 24px 20px 20px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: all 0.3s ease;
}

/* ===== HEADER CON NOMBRE ARRIBA Y LOGO CON BANDERAS ===== */
.header-with-logo {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 28px;
}

/* Fila superior: Solo el nombre del negocio */
.business-name-row {
    width: 100%;
    text-align: center; /* Centrado para darle protagonismo */
    margin-bottom: 5px;
}

#business-name {
    font-size: 1.6rem; /* Ligeramente más grande al estar solo */
    font-weight: 700;
    color: white;
    line-height: 1.3;
    word-break: break-word;
    letter-spacing: -0.02em;
    margin: 0;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Fila inferior: Logo y selector de idiomas juntos */
.logo-language-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

/* Contenedor del logo */
.logo-section {
    display: flex;
    align-items: center;
    flex: 1;
    min-width: 200px;
}

/* ===== LOGO MÁS GRANDE Y CENTRADO CON BANDERAS ===== */
.business-logo {
    max-width: 100px;
    max-height: 90px;
    width: auto;
    height: auto;
    border-radius: 8px;
    object-fit: contain;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ===== SELECTOR DE IDIOMAS ===== */
.language-selector {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 40px;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.lang-btn:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.lang-btn.active {
    background: var(--color-primary, #667eea);
    border-color: var(--color-primary, #667eea);
}

.lang-btn.active .lang-name {
    color: white;
}

.lang-btn img {
    width: 20px;
    height: 15px;
    border-radius: 3px;
    object-fit: cover;
}

.lang-name {
    font-size: 0.8rem;
    font-weight: 500;
    color: rgba(255, 255, 255, 0.9);
}

/* ===== BOTONES PRINCIPALES - COLORES SÓLIDOS Y VIBRANTES ===== */
.buttons {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 16px;
    border-radius: 60px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1.2rem;
    border: none;
    cursor: pointer;
    transition: all 0.25s ease;
    color: white;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    width: 100%;
    text-align: center;
}

.btn i {
    font-size: 1.4rem;
}

.btn:active {
    transform: scale(0.98);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Colores específicos de botones - SÓLIDOS */
.btn-menu {
    background: #FF4444;
}

.btn-wifi {
    background: #00C3A0;
}

.btn-whatsapp {
    background: #25D366;
}

.btn-whatsapp i {
    font-size: 1.6rem;
}

.btn-feedback {
    background: #FFA235;
}

/* ===== REDES SOCIALES ===== */
.social-row {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin: 6px 0 2px;
}

.social-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 28px;
    color: white;
    font-size: 1.8rem;
    text-decoration: none;
    transition: all 0.2s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
}

.social-btn.instagram {
    background: #d62976;
    background: radial-gradient(circle at 30% 30%, #fdf497, #fd5949, #d6249f, #285aeb);
}

.social-btn.facebook {
    background: #1877f2;
}

.social-btn:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
}

/* ===== FOOTER ===== */
footer {
    margin-top: 28px;
    text-align: center;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 16px;
}

/* ===== MODAL WIFI ===== */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.modal-content {
    background: rgba(30, 30, 30, 0.98);
    backdrop-filter: blur(10px);
    padding: 28px 24px;
    border-radius: 28px;
    max-width: 400px;
    width: 100%;
    position: relative;
    text-align: center;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.5);
    animation: modalFadeIn 0.3s;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.close {
    position: absolute;
    right: 18px;
    top: 12px;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.5);
    transition: color 0.2s;
}

.close:hover {
    color: white;
}

.modal h2 {
    margin-bottom: 20px;
    color: white;
    font-size: 1.6rem;
}

.wifi-info {
    background: rgba(255, 255, 255, 0.1);
    padding: 16px;
    border-radius: 16px;
    margin: 16px 0;
    text-align: left;
}

.wifi-info p {
    margin: 8px 0;
    font-size: 1.1rem;
    word-break: break-word;
    color: rgba(255, 255, 255, 0.9);
}

.wifi-info strong {
    color: rgba(255, 255, 255, 0.8);
    min-width: 100px;
    display: inline-block;
}

#wifi-ssid,
#wifi-pass {
    font-weight: 600;
    color: white;
    background: rgba(255, 255, 255, 0.15);
    padding: 4px 10px;
    border-radius: 20px;
    margin-left: 8px;
}

.btn-copy {
    background: #4ecdc4;
    color: white;
    border: none;
    padding: 14px 24px;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1.1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 10px 0;
    transition: background 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.btn-copy:hover {
    background: #3aa9a1;
}

.hint {
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 16px;
}

/* ===== VARIABLES ===== */
:root {
    --color-primary: #667eea;
}

/* ===== AJUSTES POR TIPO DE FONDO ===== */
body.dark-text .btn {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.4);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 480px) {
    .container {
        padding: 20px 16px;
    }
    
    .business-name-row {
        text-align: center;
    }
    
    #business-name {
        font-size: 1.4rem; /* Ajustado para móvil */
    }
    
    .logo-language-row {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }
    
    .logo-section {
        width: 100%;
        min-width: auto;
        justify-content: center;
    }
    
    .business-logo {
        max-width: 80px;
        max-height: 70px;
        padding: 3px;
    }
    
    .language-selector {
        align-self: center;
        justify-content: center;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .container {
        padding: 18px 14px;
    }
    
    #business-name {
        font-size: 1.3rem;
    }
    
    .business-logo {
        max-width: 70px;
        max-height: 60px;
        padding: 2px;
    }
    
    .btn {
        padding: 16px 12px;
        font-size: 1.1rem;
    }
    
    .btn i {
        font-size: 1.2rem;
    }
    
    .social-btn {
        width: 48px;
        height: 48px;
        font-size: 1.5rem;
    }
    
    .lang-name {
        display: none;
    }
}

@media (min-width: 768px) {
    .container {
        max-width: 600px;
        padding: 32px;
    }
    
    #business-name {
        font-size: 1.8rem; /* Más grande en pantallas grandes */
    }
    
    .btn {
        padding: 20px;
        font-size: 1.3rem;
    }
}
/* ===== FORZAR TEMA OSCURO ===== */
.container {
    background: #000000 !important;
}

#business-name,
.btn,
.lang-name,
footer,
.modal h2,
.wifi-info p,
.wifi-info strong,
#wifi-ssid,
#wifi-pass {
    color: white !important;
}

.btn i,
.social-btn i {
    color: white !important;
}

.wifi-info {
    background: rgba(255, 255, 255, 0.1) !important;
}

#wifi-ssid,
#wifi-pass {
    background: rgba(255, 255, 255, 0.15) !important;
}

.lang-btn {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.2) !important;
}
/* ===== MODO OSCURO DEL SISTEMA ===== */
@media (prefers-color-scheme: dark) {
    body:not(.custom-bg) {
        background: linear-gradient(145deg, #1a1e24, #0f1217);
    }
}