/* Reset básico y variables */
:root {
    --bg-dark: #121212;
    --bg-card: rgba(30, 30, 30, 0.75);
    --primary-neon: #39FF14; /* Lime green neon */
    --secondary-orange: #FF5722; /* Monster Orange */
    --warning-yellow: #FFC107;
    --text-light: #F5F5F5;
    --text-muted: #B0B0B0;
    --border-glow: rgba(57, 255, 20, 0.4);
    --font-action: 'Bangers', cursive;
    --font-mech: 'Russo One', sans-serif;
    --font-base: 'Montserrat', sans-serif;
}

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

body {
    background-color: var(--bg-dark);
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 87, 34, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(57, 255, 20, 0.12) 0px, transparent 50%),
        linear-gradient(45deg, #181818 25%, #121212 25%, #121212 50%, #181818 50%, #181818 75%, #121212 75%, #121212 100%);
    background-size: 100% 100%, 100% 100%, 40px 40px; /* Textura de rayas industriales ligeras de fondo */
    color: var(--text-light);
    font-family: var(--font-base);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow-x: hidden;
}

/* Pantalla de Entrada (Gate) */
.gate-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #0e0e0e;
    background-image: repeating-linear-gradient(45deg, #1b1b1b, #1b1b1b 10px, #0e0e0e 10px, #0e0e0e 20px);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.8s cubic-bezier(0.77, 0, 0.175, 1), visibility 0.8s;
    padding: 20px;
}

.gate-overlay.fade-out {
    opacity: 0;
    visibility: hidden;
}

.gate-content {
    background: rgba(20, 20, 20, 0.9);
    border: 4px solid var(--secondary-orange);
    border-radius: 20px;
    padding: 40px 30px;
    max-width: 500px;
    width: 100%;
    text-align: center;
    box-shadow: 0 0 30px rgba(255, 87, 34, 0.3), inset 0 0 15px rgba(255, 87, 34, 0.1);
    position: relative;
    overflow: hidden;
}

.warning-tape {
    background: var(--warning-yellow);
    border-top: 3px dashed #000;
    border-bottom: 3px dashed #000;
    color: #000;
    font-weight: 800;
    font-family: var(--font-mech);
    padding: 8px;
    margin-bottom: 25px;
    transform: rotate(-2deg);
    box-shadow: 0 4px 10px rgba(0,0,0,0.5);
    font-size: 1.1rem;
    letter-spacing: 2px;
}

.gate-title {
    font-family: var(--font-action);
    font-size: 3.5rem;
    color: #fff;
    text-shadow: 3px 3px 0px var(--secondary-orange), -1px -1px 0px #000, 1px -1px 0px #000, -1px 1px 0px #000, 1px 1px 0px #000;
    letter-spacing: 2px;
    line-height: 1;
    margin-bottom: 10px;
}

.gate-subtitle {
    font-size: 1.1rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-bottom: 30px;
}

.truck-icon-container {
    font-size: 4rem;
    margin-bottom: 30px;
    display: flex;
    justify-content: center;
    gap: 15px;
    animation: bounce 2s infinite ease-in-out;
}

/* Animaciones */
@keyframes bounce {
    0%, 100% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-15px) scale(1.05); }
}

@keyframes pulse-shadow {
    0% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(57, 255, 20, 0); }
    100% { box-shadow: 0 0 0 0 rgba(57, 255, 20, 0); }
}

/* Diseño de la invitación principal */
.main-layout {
    width: 100%;
    max-width: 600px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
    opacity: 1;
    transition: opacity 0.5s ease-in-out;
}

.main-layout.hidden {
    display: none;
    opacity: 0;
}

.audio-control-floating {
    position: fixed;
    top: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #252525;
    border: 3px solid var(--primary-neon);
    color: #fff;
    font-size: 1.5rem;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    box-shadow: 0 0 15px var(--border-glow);
    z-index: 1000;
    transition: transform 0.2s, background-color 0.2s;
}

.audio-control-floating:hover {
    transform: scale(1.1);
    background: #353535;
}

.audio-control-floating.muted {
    border-color: var(--secondary-orange);
    box-shadow: 0 0 15px rgba(255, 87, 34, 0.4);
}

.main-header {
    text-align: center;
}

.badge-vip {
    background-color: var(--primary-neon);
    color: #000;
    font-family: var(--font-mech);
    font-weight: 800;
    padding: 4px 15px;
    border-radius: 5px;
    display: inline-block;
    font-size: 0.9rem;
    letter-spacing: 2px;
    margin-bottom: 8px;
    box-shadow: 0 0 10px rgba(57, 255, 20, 0.4);
}

.main-title {
    font-family: var(--font-action);
    font-size: 4rem;
    line-height: 1;
    color: #fff;
    text-shadow: 4px 4px 0px var(--secondary-orange);
}

.main-subtitle {
    font-family: var(--font-mech);
    font-size: 1rem;
    color: var(--text-muted);
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-top: 5px;
}

/* Tarjeta de invitación */
.invitation-card {
    background: var(--bg-card);
    border: 3px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 15px;
    width: 100%;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    position: relative;
    overflow: hidden;
}

.card-glow {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 6px;
    background: linear-gradient(90deg, var(--secondary-orange), var(--primary-neon));
}

.invitation-image-wrapper {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: flex;
    justify-content: center;
    align-items: center;
}

.invitation-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
}

/* Tarjeta Alternativa */
.alternative-card {
    padding: 30px 20px;
    text-align: center;
    background: linear-gradient(135deg, #1f1f1f 0%, #151515 100%);
    width: 100%;
    border-radius: 12px;
    border: 2px dashed rgba(255, 255, 255, 0.15);
}

.alternative-header {
    font-family: var(--font-action);
    font-size: 2.5rem;
    color: var(--primary-neon);
    margin-bottom: 20px;
    letter-spacing: 1px;
}

.alternative-body h3 {
    font-family: var(--font-mech);
    font-size: 1.3rem;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.alt-text-highlight {
    font-family: var(--font-action);
    font-size: 3rem;
    color: var(--secondary-orange);
    line-height: 1;
    margin: 15px 0;
}

.alt-details {
    margin-top: 25px;
    background: rgba(0,0,0,0.3);
    padding: 15px;
    border-radius: 8px;
    text-align: left;
}

.alt-details p {
    font-size: 0.95rem;
    margin-bottom: 8px;
    color: var(--text-light);
}

.alt-details p:last-child {
    margin-bottom: 0;
}

.alt-details strong {
    color: var(--primary-neon);
}

/* Cuenta regresiva */
.countdown-section {
    width: 100%;
    background: rgba(20, 20, 20, 0.8);
    border: 2px solid rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.countdown-title {
    font-family: var(--font-mech);
    font-size: 1rem;
    letter-spacing: 2px;
    color: var(--warning-yellow);
    margin-bottom: 15px;
}

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

.countdown-item {
    background: #202020;
    border-bottom: 4px solid var(--primary-neon);
    padding: 10px 5px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset 0 2px 5px rgba(0,0,0,0.5);
}

.countdown-num {
    font-family: var(--font-mech);
    font-size: 1.8rem;
    color: #fff;
    line-height: 1.2;
}

.countdown-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-top: 3px;
}

/* Botones de acción */
.actions-section {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-action {
    display: block;
    width: 100%;
    padding: 18px;
    font-family: var(--font-mech);
    font-size: 1rem;
    font-weight: 800;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.2s, box-shadow 0.2s, filter 0.2s;
    letter-spacing: 1px;
}

.btn-action:hover {
    transform: translateY(-3px);
}

.btn-action:active {
    transform: translateY(1px);
}

.pulse {
    animation: pulse-shadow 2s infinite;
}

#btn-start {
    background-color: var(--primary-neon);
    color: #000;
    font-size: 1.3rem;
    padding: 20px;
    margin: 0 auto;
    max-width: 320px;
    border-bottom: 5px solid #2bc40f;
}

#btn-start:hover {
    filter: brightness(1.1);
    box-shadow: 0 0 25px rgba(57, 255, 20, 0.6);
}

.map-btn {
    background-color: #3f51b5;
    color: #fff;
    border-bottom: 5px solid #283593;
}

.map-btn:hover {
    box-shadow: 0 0 20px rgba(63, 81, 181, 0.5);
    filter: brightness(1.1);
}

.whatsapp-btn {
    background-color: #25D366;
    color: #fff;
    border-bottom: 5px solid #128C7E;
}

.whatsapp-btn:hover {
    box-shadow: 0 0 20px rgba(37, 211, 102, 0.5);
    filter: brightness(1.1);
}

/* Footer */
.main-footer {
    text-align: center;
    padding: 20px 0;
    color: var(--text-muted);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
}

/* Responsividad extra */
@media (max-width: 480px) {
    .gate-title {
        font-size: 2.8rem;
    }
    .main-title {
        font-size: 3rem;
    }
    .countdown-num {
        font-size: 1.4rem;
    }
    .btn-action {
        font-size: 0.9rem;
        padding: 15px;
    }
}
