/* Reset y Variables */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --text-light: #FFFFFF;
    --background-dark: #2C1810;
    --gradient-bg: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #B8860B 100%);
}


body {
    font-family: 'Playfair Display', serif;
    line-height: 1.6;
    color: var(--text-light);
    background: var(--gradient-bg);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow-x: hidden;
}

/* PWA Install Banner */
.install-banner {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: rgba(139, 69, 19, 0.95);
    color: var(--text-light);
    padding: 0.8rem 0;
    z-index: 10000;
    transform: translateY(-100%);
    transition: transform 0.3s ease;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    backdrop-filter: blur(10px);
}

.install-banner.show {
    transform: translateY(0);
}

.install-banner-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
}

.install-text {
    font-weight: 600;
    font-size: 1rem;
}

.install-text i {
    margin-right: 0.5rem;
    color: var(--accent-color);
}

.install-banner-button {
    background: var(--accent-color);
    color: var(--background-dark);
    border: none;
    padding: 0.5rem 1.5rem;
    border-radius: 25px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.install-banner-button:hover {
    background: #F5E400;
    transform: scale(1.05);
}

.install-banner-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0.25rem;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.install-banner-close:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--accent-color);
}

/* PWA Install Button (floating) */
.install-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--gradient-bg);
    color: var(--text-light);
    border: none;
    padding: 1rem;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    transition: all 0.3s ease;
    z-index: 1000;
    display: none;
}

.install-button:hover {
    transform: scale(1.1);
}

/* Main Content */
.main-content {
    max-width: 800px;
    padding: 2rem;
    animation: fadeInUp 1.5s ease-out;
}

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

/* Título Principal */
.main-title {
    font-family: 'Great Vibes', cursive;
    font-size: 5rem;
    font-weight: 400;
    color: var(--accent-color);
    text-shadow: 3px 3px 6px rgba(0,0,0,0.5);
    margin-bottom: 1rem;
    line-height: 1.2;
    animation: glow 3s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow: 
            0 0 10px var(--accent-color),
            0 0 20px var(--accent-color),
            0 0 30px var(--accent-color),
            3px 3px 6px rgba(0,0,0,0.5);
    }
    to {
        text-shadow: 
            0 0 20px var(--accent-color),
            0 0 30px var(--accent-color),
            0 0 40px var(--accent-color),
            3px 3px 6px rgba(0,0,0,0.5);
    }
}


/*subtitulo s*/

.subtitle {
    font-family: 'Cinzel', serif;
    font-size: 1.5rem;
    font-weight: 400;
    color: var(--text-light);
    opacity: 0.9;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 2rem;
}

/* Decoración */
.decoration {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    margin: 2rem 0;
}

.decoration i {
    font-size: 2rem;
    color: var(--accent-color);
    animation: bounce 2s infinite;
}

.decoration i:nth-child(2) {
    animation-delay: 0.3s;
}

.decoration i:nth-child(3) {
    animation-delay: 0.6s;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-10px);
    }
    60% {
        transform: translateY(-5px);
    }
}

.line {
    width: 100px;
    height: 2px;
    background: var(--accent-color);
    opacity: 0.7;
}

/* Loading Screen */
.loading {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--gradient-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s ease;
}

.loading.hidden {
    opacity: 0;
    pointer-events: none;
}

.spinner {
    width: 50px;
    height: 50px;
    border: 5px solid rgba(255, 255, 255, 0.3);
    border-top: 5px solid var(--accent-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* Responsive */
@media (max-width: 768px) {
    .main-title {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.2rem;
        letter-spacing: 1px;
    }

    .install-banner-content {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
        padding: 0 1rem;
    }

    .install-banner {
        padding: 1rem 0;
    }

    .decoration i {
        font-size: 1.5rem;
    }

    .line {
        width: 50px;
    }
}

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

    .subtitle {
        font-size: 1rem;
    }

    .main-content {
        padding: 1rem;
   }
}



/* ==============================================
   CONTENEDOR COMPACTO DE CONTACTO - TEMA MARIACHI
   ============================================== */

/* Variables del tema */
:root {
    --primary-color: #8B4513;
    --secondary-color: #D2691E;
    --accent-color: #FFD700;
    --text-light: #FFFFFF;
    --background-dark: #2C1810;
    --gradient-bg: linear-gradient(135deg, #8B4513 0%, #D2691E 50%, #B8860B 100%);
    --transition-speed: 0.3s;
}

/* Contenedor principal compacto */
.compact-contact-container {
    max-width: 400px;
    margin: 2rem auto;
    padding: 2rem 1.5rem;
    background: rgba(139, 69, 19, 0.15);
    border-radius: 20px;
    border: 2px solid rgba(255, 215, 0, 0.3);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(15px);
    position: relative;
    overflow: hidden;
    text-align: center;
}

/* Efecto de fondo dorado */
.compact-contact-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 215, 0, 0.1) 0%, 
        rgba(210, 105, 30, 0.05) 50%, 
        rgba(139, 69, 19, 0.1) 100%);
    z-index: -1;
}

/* Título principal */
.compact-title {
    font-family: 'Great Vibes', cursive;
    font-size: 2.2rem;
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    animation: subtleGlow 3s ease-in-out infinite alternate;
}

@keyframes subtleGlow {
    from {
        text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    }
    to {
        text-shadow: 0 0 15px var(--accent-color), 0 2px 8px rgba(0, 0, 0, 0.6);
    }
}

/* Mensajes de estado */
.compact-message {
    padding: 0.8rem 1rem;
    border-radius: 10px;
    margin-bottom: 1rem;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.9rem;
    display: none;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.compact-success {
    background: linear-gradient(135deg, #4CAF50, #45a049);
    color: white;
    border: 2px solid #2e7d32;
}

.compact-error {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border: 2px solid #c62828;
}

/* Grid 2x2 para botones de contacto */
.compact-contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

/* Botones base del grid */
.compact-btn {
    padding: 1rem 0.8rem;
    border-radius: 12px;
    text-decoration: none;
    transition: all var(--transition-speed) ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Cinzel', serif;
    font-weight: 600;
    font-size: 0.85rem;
}

.compact-btn div {
    text-align: center;
    z-index: 2;
    position: relative;
}

.compact-btn:hover {
    transform: translateY(-2px) scale(1.02);
}

/* Icono de los botones */
.btn-icon {
    font-size: 1.8rem;
    margin-bottom: 0.3rem;
    display: block;
}

/* Botones de WhatsApp */
.compact-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.3);
}

.compact-whatsapp:hover {
    background: linear-gradient(135deg, #128C7E, #075E54);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
    border-color: var(--accent-color);
}

/* Botones de teléfono */
.compact-phone {
    background: linear-gradient(135deg, var(--secondary-color), #FF8C00);
    color: white;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 4px 15px rgba(210, 105, 30, 0.3);
}

.compact-phone:hover {
    background: linear-gradient(135deg, #A0522D, var(--secondary-color));
    box-shadow: 0 6px 20px rgba(210, 105, 30, 0.5);
    border-color: var(--accent-color);
}

/* Sección de ubicación */
.compact-location-section {
    margin-top: 1.5rem;
}

.compact-promo {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Botón mega de ubicación */
.compact-mega-btn {
    background: linear-gradient(135deg, var(--accent-color), #DAA520);
    color: var(--background-dark);
    border: none;
    padding: 1.2rem 2rem;
    border-radius: 25px;
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all var(--transition-speed) ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(255, 215, 0, 0.4);
    border: 2px solid transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin: 0 auto 1rem;
    width: 100%;
    max-width: 280px;
}

.compact-mega-btn:hover {
    background: linear-gradient(135deg, #DAA520, var(--accent-color));
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(255, 215, 0, 0.6);
    border-color: var(--secondary-color);
}

.compact-mega-btn:active {
    transform: translateY(-1px) scale(1.01);
}

/* Icono de ubicación */
.compact-location-icon {
    font-size: 1.3rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* Efectos de brillos (sparkles) */
.compact-sparkle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: white;
    border-radius: 50%;
    animation: sparkle 2s linear infinite;
}

.compact-sparkle:nth-child(1) {
    top: 20%;
    left: 20%;
    animation-delay: 0s;
}

.compact-sparkle:nth-child(2) {
    top: 20%;
    right: 20%;
    animation-delay: 0.5s;
}

.compact-sparkle:nth-child(3) {
    bottom: 20%;
    left: 20%;
    animation-delay: 1s;
}

.compact-sparkle:nth-child(4) {
    bottom: 20%;
    right: 20%;
    animation-delay: 1.5s;
}

@keyframes sparkle {
    0%, 100% {
        opacity: 0;
        transform: scale(0);
    }
    50% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Texto secundario */
.compact-sub-text {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: var(--text-light);
    opacity: 0.8;
    font-style: italic;
}

/* Estados de carga */
.compact-mega-btn.loading {
    pointer-events: none;
    opacity: 0.8;
}

.compact-mega-btn.loading .compact-location-icon {
    animation: spin 1s linear infinite;
}

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

/* Responsive design */
@media (max-width: 480px) {
    .compact-contact-container {
        margin: 1rem;
        padding: 1.5rem 1rem;
    }
    
    .compact-title {
        font-size: 1.8rem;
    }
    
    .compact-contact-grid {
        gap: 0.8rem;
    }
    
    .compact-btn {
        padding: 0.8rem 0.5rem;
        font-size: 0.75rem;
        min-height: 70px;
    }
    
    .btn-icon {
        font-size: 1.5rem;
    }
    
    .compact-mega-btn {
        font-size: 1rem;
        padding: 1rem 1.5rem;
    }
    
    .compact-promo {
        font-size: 1rem;
    }
}