/* === RESET Y VARIABLES CSS === */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    /* Modo oscuro (predeterminado) */
    --gradient-start: #0E2244;
    --gradient-end: #083957;
    --button-bg: #044A76;
    --button-shadow: #B61414;
    --footer-bg: #0A131F;
    --text-color: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.2);
    --modal-bg: linear-gradient(135deg, #0E2244 0%, #083957 100%);
    --input-bg: rgba(255, 255, 255, 0.1);
    --input-border: rgba(255, 255, 255, 0.2);
    --divider-color: rgba(255, 255, 255, 0.1);
    --overlay-bg: rgba(0, 0, 0, 0.7);

    /* Tipografía */
    --font-family: 'Rubik', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

body.light-mode {
    /* Modo claro */
    --gradient-start: #f0f4f8;
    --gradient-end: #d9e2ec;
    --text-color: #1a202c;
    --text-secondary: #4a5568;
    --card-bg: #ffffff;
    --card-border: #e2e8f0;
    --button-bg: #044A76;
    --button-shadow: #B61414;
    --footer-bg: #e2e8f0;
    --modal-bg: #ffffff;
    --input-bg: #ffffff;
    --input-border: #d1d5db;
    --divider-color: #e5e7eb;
    --overlay-bg: rgba(0, 0, 0, 0.5);
}

/* === ESTILOS GENERALES === */
body {
    font-family: var(--font-family);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    /* Degradado lineal según especificaciones */
    background: linear-gradient(135deg, var(--gradient-start) 0%, var(--gradient-end) 100%);
    background-attachment: fixed;
}

.container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px 0 20px;
}

/* Main content con altura suficiente para que footer quede fuera de vista */
main {
    flex: 1;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* === HEADER === */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    position: relative;
}

/* Logo en esquina superior izquierda */
.logo-container {
    display: flex;
    align-items: center;
}

.logo {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Estilos para logo con imagen */
.logo-image {
    width: 200px;
    height: 200px;
    object-fit: contain;
}

/* Header derecho con estado y WhatsApp */
.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

/* Botón de tema en página de inicio */
.theme-toggle {
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 20px;
    backdrop-filter: blur(10px);
}

.theme-toggle:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(15deg);
}

body.light-mode .theme-toggle {
    background: rgba(0, 0, 0, 0.1);
    border-color: rgba(0, 0, 0, 0.2);
}

body.light-mode .theme-toggle:hover {
    background: rgba(0, 0, 0, 0.2);
}

/* Indicador de estado Abierto/Cerrado */
.store-status {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 500;
    font-size: 14px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.status-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #22c55e; /* Verde para abierto */
    animation: pulse 2s infinite;
}

.status-indicator.closed {
    background: #ef4444; /* Rojo para cerrado */
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Botón de WhatsApp */
.whatsapp-container {
    position: relative;
}

.whatsapp-btn {
    width: 50px;
    height: 50px;
    background: #25D366;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.4);
}

/* === CONTENIDO PRINCIPAL === */
.main-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 0;
}

.welcome-section {
    text-align: center;
    width: 100%;
    max-width: 600px;
}

/* Título principal con fuente Rubik */
.main-title {
    font-family: var(--font-family);
    font-size: 3.5rem;
    font-weight: 700;
    color: var(--text-color);
    margin-bottom: 40px;
    line-height: 1.2;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Dirección con enlace a Google Maps */
.location-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-bottom: 50px;
    cursor: pointer;
    padding: 12px 20px;
    border-radius: 25px;
    transition: all 0.3s ease;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
}

.location-container:hover {
    background: rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.location-icon {
    font-size: 1.5rem;
}

.location-text {
    font-size: 1.1rem;
    font-weight: 500;
    color: var(--text-color);
}

/* Botón "Menú✅" con formato moderno (sin sombra roja) */
.menu-button {
    background: var(--button-bg);
    color: #ffffff;
    border: none;
    padding: 20px 50px;
    font-size: 1.5rem;
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    border-radius: 12px;
    transition: all 0.3s ease;
    position: relative;
}

.menu-button:hover {
    background: #033a61;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(4, 74, 118, 0.3);
}

.menu-button:active {
    transform: translateY(0);
    box-shadow: 0 2px 6px rgba(4, 74, 118, 0.3);
}

/* === FOOTER === */
.footer {
    /* Color de fondo según especificaciones */
    background: var(--footer-bg);
    /* Color de fuente según especificaciones */
    color: var(--text-color);
    padding: 20px 0;
    text-align: center;
}

body.light-mode .footer {
    background: var(--footer-bg);
    color: var(--text-color);
}

.footer-text {
    margin: 0;
    font-size: 0.9rem;
}

.footer-text strong {
    color: var(--text-color);
    font-weight: 600;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .header {
        padding: 15px 0;
    }

    .logo {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .main-title {
        font-size: 2.5rem;
        margin-bottom: 30px;
    }

    .location-container {
        margin-bottom: 40px;
        padding: 10px 16px;
    }

    .location-text {
        font-size: 1rem;
    }

    .menu-button {
        padding: 16px 40px;
        font-size: 1.3rem;
        box-shadow: 4px 4px 0px var(--button-shadow);
    }

    .menu-button:hover {
        box-shadow: 6px 6px 0px var(--button-shadow);
    }

    .whatsapp-btn {
        width: 45px;
        height: 45px;
    }

    .store-status {
        font-size: 12px;
        padding: 6px 12px;
    }
}

@media (max-width: 480px) {
    .main-title {
        font-size: 2rem;
    }

    .menu-button {
        padding: 14px 35px;
        font-size: 1.2rem;
    }

    .header-right {
        gap: 10px;
    }
}

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

.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ============================================
   FOOTER COPYRIGHT - BARRA NEGRA PROFESIONAL
   ============================================ */

.site-footer-home {
    position: static;
    width: 100%;
    background: #1a1a1a;
    border-top: 1px solid #333;
    padding: 15px 20px;
    text-align: center;
    margin-top: 40px;
}

.site-footer-home .copyright {
    color: #ffffff;
    font-size: 13px;
    margin: 0 0 6px 0;
    font-weight: 400;
    letter-spacing: 0.5px;
}

.site-footer-home .developer {
    color: #888888;
    font-size: 11px;
    margin: 0;
    font-weight: 300;
}

.site-footer-home .developer a,
.site-footer .developer a {
    color: #888888;
    text-decoration: none;
    transition: color 0.3s ease;
}

.site-footer-home .developer a:hover,
.site-footer .developer a:hover {
    color: #25D366;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .site-footer-home {
        padding: 12px 15px;
    }

    .site-footer-home .copyright {
        font-size: 11px;
    }

    .site-footer-home .developer {
        font-size: 10px;
    }

    /* Ajustar contenido para que no quede detrás del footer */
    .container {
        padding-bottom: 90px;
    }
}
