/* Fuentes */
@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;700&display=swap');

/* Variables CSS */
:root {
    --primary: #ff3e7f;
    --secondary: #00ffaa;
    --accent: #ffcc00;
    --dark: #252638;
    --darker: #191a27;
    --light: #f5f5f7;
    --shadow: rgba(0, 0, 0, 0.2);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Rubik', sans-serif;
    background-color: var(--darker);
    color: var(--light);
    line-height: 1.6;
    overflow-x: hidden;
    perspective: 1000px;
}

/* Contenedor de vídeo */
.video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: -2;
    overflow: hidden;
}

#video-background {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translateX(-50%) translateY(-50%);
    filter: brightness(0.4) contrast(1.2);
}

/* Fondo con polígonos */
.poly-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.poly {
    position: absolute;
    animation: float 15s infinite ease-in-out;
    transition: transform 0.5s ease;
    opacity: 0.7;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0) rotateZ(0deg);
    }
    50% {
        transform: translateY(-15px) rotateZ(3deg);
    }
}

/* Header y navegación */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 5%;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    background: rgba(25, 26, 39, 0.8);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

header.scrolled {
    padding: 1rem 5%;
    background: rgba(25, 26, 39, 0.95);
}

.logo {
    font-size: 2rem;
    font-weight: 700;
    color: var(--secondary);
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 0 0 10px rgba(0, 255, 170, 0.5);
    animation: glow 3s infinite alternate;
}

@keyframes glow {
    0% {
        text-shadow: 0 0 5px rgba(0, 255, 170, 0.5);
    }
    100% {
        text-shadow: 0 0 20px rgba(0, 255, 170, 0.8), 0 0 30px rgba(0, 255, 170, 0.6);
    }
}

nav ul {
    display: flex;
    list-style: none;
}

nav li {
    margin-left: 2rem;
}

nav a {
    color: var(--light);
    text-decoration: none;
    font-weight: 500;
    position: relative;
    padding: 0.5rem 0;
    transition: all 0.3s;
}

nav a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: 0;
    left: 0;
    background-color: var(--primary);
    transition: width 0.3s ease;
}

nav a:hover {
    color: var(--primary);
}

nav a:hover::after {
    width: 100%;
}

/* Sección Hero */
.hero {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 0 5%;
    position: relative;
    transform-style: preserve-3d;
}

.hero h1 {
    font-size: 5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--secondary);
    text-shadow: 0 0 15px rgba(0, 255, 170, 0.7);
    transform: translateZ(50px);
    animation: pulse 4s infinite alternate;
}

@keyframes pulse {
    0%, 100% {
        transform: translateZ(50px) scale(1);
    }
    50% {
        transform: translateZ(50px) scale(1.05);
    }
}

.hero p {
    font-size: 1.5rem;
    max-width: 800px;
    margin-bottom: 2rem;
    color: var(--light);
    transform: translateZ(30px);
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    transform: translateZ(20px);
}

.button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--light);
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.2);
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.button::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: rgba(255, 255, 255, 0.1);
    transform: rotate(45deg);
    z-index: -1;
    transition: transform 0.5s;
}

.button:hover {
    transform: translateY(-5px);
    box-shadow: 0 9px 0 rgba(0, 0, 0, 0.2);
}

.button:hover::before {
    transform: rotate(45deg) translateX(50%) translateY(50%);
}

.button:active {
    transform: translateY(0);
    box-shadow: 0 2px 0 rgba(0, 0, 0, 0.2);
}

.button.secondary {
    background-color: transparent;
    border: 2px solid var(--secondary);
    color: var(--secondary);
}

.button.secondary:hover {
    background-color: rgba(0, 255, 170, 0.1);
}

/* Sección de características */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding: 5rem 5%;
    background-color: rgba(25, 26, 39, 0.7);
    position: relative;
    z-index: 1;
}

.feature-card {
    background: linear-gradient(145deg, rgba(37, 38, 56, 0.8), rgba(25, 26, 39, 0.95));
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.05);
    transform-style: preserve-3d;
    transform: perspective(1000px) rotateX(0deg);
}

.feature-card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, 
        rgba(255, 62, 127, 0) 0%, 
        rgba(255, 62, 127, 0.1) 50%, 
        rgba(255, 62, 127, 0) 100%);
    animation: shine 3s infinite linear;
    z-index: -1;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

.feature-card:hover {
    transform: perspective(1000px) rotateX(5deg) translateY(-10px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    display: inline-block;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
    color: var(--light);
}

.feature-card p {
    color: rgba(245, 245, 247, 0.7);
}

/* Sección de galería */
.gallery {
    padding: 5rem 5%;
    text-align: center;
    background-color: rgba(25, 26, 39, 0.5);
    position: relative;
    z-index: 1;
}

.gallery h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--accent);
    position: relative;
    display: inline-block;
}

.gallery h2::after {
    content: '';
    position: absolute;
    width: 50%;
    height: 4px;
    bottom: -10px;
    left: 25%;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1.5rem;
    margin-top: 3rem;
}

.gallery-item {
    height: 200px;
    background-color: rgba(37, 38, 56, 0.7);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--light);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    position: relative;
    transform-style: preserve-3d;
}

.gallery-item::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: linear-gradient(45deg, 
        rgba(255, 62, 127, 0.2), 
        rgba(0, 255, 170, 0.2), 
        rgba(255, 204, 0, 0.2));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Sección de cuenta regresiva */
.countdown {
    padding: 5rem 5%;
    text-align: center;
    background-color: rgba(37, 38, 56, 0.7);
    position: relative;
    z-index: 1;
}

.countdown h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--primary);
}

.timer {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.time-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.time-value {
    font-size: 3rem;
    font-weight: 700;
    background: linear-gradient(45deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    position: relative;
    min-width: 80px;
    text-align: center;
}

.time-value::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    z-index: -1;
    transform: skewX(-5deg);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.time-label {
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--light);
    margin-top: 0.5rem;
    letter-spacing: 2px;
}

/* Sección de testimonios */
.testimonials {
    padding: 5rem 5%;
    text-align: center;
    background-color: rgba(25, 26, 39, 0.6);
    position: relative;
    z-index: 1;
}

.testimonials h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: var(--secondary);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.testimonial-card {
    background: linear-gradient(145deg, rgba(37, 38, 56, 0.7), rgba(25, 26, 39, 0.9));
    border-radius: 12px;
    padding: 2rem;
    text-align: left;
    transition: all 0.3s ease;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.03);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 10px;
    left: 10px;
    font-size: 8rem;
    color: rgba(255, 255, 255, 0.05);
    font-family: serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

.testimonial-text {
    font-size: 1.1rem;
    margin-bottom: 1rem;
    color: var(--light);
    position: relative;
    z-index: 1;
}

.testimonial-author {
    font-size: 0.9rem;
    color: var(--accent);
    font-weight: 500;
    font-style: italic;
}

/* Footer */
footer {
    padding: 3rem 5%;
    background-color: var(--darker);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    position: relative;
    z-index: 1;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--light);
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
}

.social-link:hover {
    background-color: var(--primary);
    transform: translateY(-5px);
}

.footer-text {
    color: rgba(245, 245, 247, 0.5);
    font-size: 0.9rem;
}

/* Efectos adicionales y animaciones */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

section {
    animation: fadeIn 1s ease forwards;
}

/* Responsive */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 1rem 5%;
    }
    
    nav ul {
        margin-top: 1rem;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    nav li {
        margin: 0.5rem;
    }
    
    .hero h1 {
        font-size: 3.5rem;
    }
    
    .hero p {
        font-size: 1.2rem;
    }
    
    .timer {
        flex-wrap: wrap;
        gap: 1rem;
    }
    
    .time-value {
        font-size: 2.5rem;
        min-width: 60px;
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .cta-buttons {
        flex-direction: column;
        width: 100%;
    }
    
    .button {
        width: 100%;
        text-align: center;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
}

/* Estilos adicionales para mejorar el efecto low poly */
.poly-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><polygon points="0,0 100,0 50,100" style="fill:rgba(255,255,255,0.03);"/></svg>');
    background-size: 20px 20px;
    pointer-events: none;
    z-index: -1;
    opacity: 0.3;
}

/* Efecto de desplazamiento 3D al hacer scroll */
.parallax-scroll {
    transform-style: preserve-3d;
    transition: transform 0.1s;
}

/* Script CSS para añadir interactividad al mouse */
:root {
    --mouse-x: 0;
    --mouse-y: 0;
}

.mouse-parallax {
    transition: transform 0.2s ease;
}


/* Reservas */
/* Selector de pista (adaptado al tema existente) */
.pista-selector {
    padding: 1rem;
    border-radius: 8px;
    background-color: rgba(25, 26, 39, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--light);
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    box-shadow: 0 4px 10px var(--shadow);
    backdrop-filter: blur(4px);
}

/* Estilo del calendario */
.calendario {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 1rem;
    padding: 1rem;
    background: rgba(37, 38, 56, 0.6);
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.calendario button {
    padding: 0.75rem;
    border-radius: 6px;
    border: none;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    cursor: pointer;
    font-family: 'Rubik', sans-serif;
    transition: all 0.3s ease;
    backdrop-filter: blur(3px);
}

.calendario button:hover {
    background-color: var(--primary);
    color: #fff;
}

.calendario button.selected {
    background-color: var(--secondary);
    color: #000;
    font-weight: bold;
}

/* Estilo de horas disponibles */
.horas {
    margin-top: 2rem;
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    padding: 1rem;
    background: rgba(25, 26, 39, 0.6);
    border-radius: 12px;
}

.hora {
    padding: 0.75rem 1.25rem;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--light);
    cursor: pointer;
    transition: background 0.3s ease;
}

.hora:hover {
    background-color: var(--primary);
    color: #fff;
}

.hora.selected {
    background-color: var(--secondary);
    color: #000;
    font-weight: bold;
}

/* Botón reservar */
.reservar-btn {
    margin-top: 2rem;
    padding: 1rem 2rem;
    background-color: var(--primary);
    color: var(--light);
    border: none;
    border-radius: 8px;
    font-family: 'Rubik', sans-serif;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.reservar-btn:hover {
    background-color: var(--secondary);
    color: #000;
    transform: translateY(-2px);
}
