/* Definición de variables globales */
:root {
    /* Colores principales */
    --primary-color: #ff6b95;
    --secondary-color: #7e57c2;
    --accent-color: #00bcd4;
    --background-color: #fef6fb;
    --text-color: #333333;
    --gradient: linear-gradient(135deg, #ff6b95, #7e57c2);
    --shadow-color: rgba(255, 107, 149, 0.25);
    
    /* Variables heredadas para compatibilidad */
    --new-primary: var(--primary-color);
    --new-secondary: var(--secondary-color);
    --new-accent: var(--accent-color);
    --new-background: var(--background-color);
    --new-text: var(--text-color);
    --new-gradient: var(--gradient);
    --new-shadow: var(--shadow-color);
}

/* Estilos básicos */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Arial', sans-serif;
    background-color: var(--background-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
    overflow-x: hidden;
    color: var(--text-color);
    transition: all 0.3s ease;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ff6b95' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.flowers {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    opacity: 0.1;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path fill="%23ff6b95" d="M10 2a8 8 0 100 16 8 8 0 000-16z"/></svg>') repeat;
    transition: background 0.3s ease;
    background-size: 100px 100px;
}

/* Contenedor de partículas dinámicas */
.dynamic-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-heart {
    position: absolute;
    color: var(--primary-color);
    font-size: 20px;
    opacity: 0.6;
    pointer-events: none;
}

.floating-star {
    position: absolute;
    color: var(--accent-color);
    font-size: 12px;
    opacity: 0.4;
    pointer-events: none;
}

.mouse-particle {
    position: absolute;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 10;
}

.version-badge {
    position: fixed;
    top: 1rem;
    right: 1rem;
    background: var(--gradient);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.9rem;
    box-shadow: 0 2px 10px var(--shadow-color);
    z-index: 100;
    transition: all 0.3s ease;
    transform: translateX(100px);
    opacity: 0;
}

/* Contador de tiempo */
.counter-container {
    text-align: center;
    margin: 1rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: min(90%, 600px);
    border: 2px solid rgba(255, 107, 149, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform: translateY(50px);
    opacity: 0;
}

.counter-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.counter-container h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: 1rem;
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    font-weight: bold;
    transition: background 0.3s ease;
    letter-spacing: 1px;
}

.counter {
    font-size: clamp(1.1rem, 3vw, 1.8rem);
    color: var(--primary-color);
    margin: 1rem 0;
    line-height: 1.4;
    word-wrap: break-word;
    transition: color 0.3s ease;
    font-weight: 500;
}

/* Carrusel de fotos */
.carousel-container {
    margin: 2rem auto;
    width: min(90%, 500px);
    background: white;
    border-radius: 20px;
    padding: 1.2rem;
    box-shadow: 0 10px 30px var(--shadow-color);
    transition: all 0.3s ease;
    overflow: hidden;
    transform: translateY(50px);
    opacity: 0;
}

.carousel-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.carousel {
    width: 100%;
    height: 350px;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 1rem;
}

.carousel-inner {
    display: flex;
    transition: transform 0.5s ease;
    height: 100%;
    touch-action: pan-y pinch-zoom;
}

.carousel-item {
    min-width: 100%;
    height: 100%;
    position: relative;
}

.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 15px;
    transition: transform 0.3s ease;
}

.carousel-item:hover img {
    transform: scale(1.02);
}

.carousel-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.2rem;
    text-align: center;
    font-style: italic;
    color: var(--primary-color);
    font-size: 1rem;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
    transition: all 0.3s ease;
    backdrop-filter: blur(5px);
    transform: translateY(100%);
    opacity: 0;
}

.carousel-item:hover .carousel-caption {
    transform: translateY(0);
    opacity: 1;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: var(--gradient);
    border: none;
    width: clamp(40px, 8vw, 50px);
    height: clamp(40px, 8vw, 50px);
    cursor: pointer;
    border-radius: 50%;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: clamp(1rem, 2vw, 1.3rem);
    color: white;
    opacity: 0.8;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.carousel-control:hover {
    opacity: 1;
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: 15px;
}

.carousel-control.next {
    right: 15px;
}

/* Botón de corazón */
.heart-container {
    margin: 2rem;
    text-align: center;
    transform: scale(0);
    opacity: 0;
}

.heart-btn {
    background: none;
    border: none;
    cursor: pointer;
    font-size: clamp(2.5rem, 6vw, 4rem);
    color: var(--primary-color);
    transition: transform 0.3s, color 0.3s;
    padding: 1rem;
    touch-action: manipulation;
    filter: drop-shadow(0 5px 15px rgba(255, 107, 149, 0.4));
    position: relative;
}

.heart-btn:hover {
    transform: scale(1.1);
}

.heart-btn.pulse {
    animation: pulse 1.5s infinite;
}

.heart-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(255, 107, 149, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: -1;
    animation: pulse-ring 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes pulse-ring {
    0% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(1.5);
        opacity: 0;
    }
}

/* Sección de próximas características */
.coming-soon {
    margin: 2rem auto;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 10px 30px var(--shadow-color);
    width: min(90%, 600px);
    text-align: center;
    border: 2px solid rgba(126, 87, 194, 0.2);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    transform: translateY(50px);
    opacity: 0;
}

.coming-soon:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px var(--shadow-color);
}

.coming-soon h3 {
    background: var(--gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 1rem;
    font-size: 1.8rem;
    transition: background 0.3s ease;
}

.coming-soon p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.preview-image {
    width: 100%;
    height: 180px;
    background: linear-gradient(45deg, rgba(255, 107, 149, 0.1), rgba(126, 87, 194, 0.1));
    border-radius: 15px;
    margin: 1.5rem 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.preview-image::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    transition: transform 0.5s ease;
}

.preview-image:hover::before {
    transform: rotate(45deg) translateX(100%);
}

.preview-image i {
    font-size: 3.5rem;
    transition: transform 0.5s ease;
    position: relative;
    z-index: 1;
}

.preview-image:hover i {
    transform: rotate(15deg) scale(1.1);
}

/* Pie de página */
.footer {
    margin-top: 2rem;
    padding: 1.5rem;
    text-align: center;
    width: 100%;
    font-size: 1rem;
    color: var(--primary-color);
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border-radius: 10px;
    transform: translateY(30px);
    opacity: 0;
}

.footer p {
    margin: 0.5rem 0;  
}

.footer-date {
    font-size: 0.9rem;
    opacity: 0.8;
}

.footer i {
    color: var(--primary-color);
    animation: heartbeat 1.5s infinite;
}

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

/* Stardust animation */
.stardust-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
    overflow: hidden;
}

.stardust-heart {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.stardust-particle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

@keyframes twinkle {
    0%, 100% {
        opacity: 0.2;
        transform: scale(0.8);
    }
    50% {
        opacity: 0.7;
        transform: scale(1.2);
    }
}

/* Efectos de hover mejorados */
.counter-container,
.carousel-container,
.coming-soon {
    position: relative;
    overflow: hidden;
}

.counter-container::before,
.carousel-container::before,
.coming-soon::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.5s ease;
    pointer-events: none;
}

.counter-container:hover::before,
.carousel-container:hover::before,
.coming-soon:hover::before {
    left: 100%;
}

/* Media queries */
@media (max-width: 768px) {
    .carousel {
        height: 300px;
    }
}

@media (max-width: 480px) {
    .carousel {
        height: 250px;
    }

    .carousel-caption {
        font-size: 0.9rem;
        padding: 0.8rem;
    }
}

/* Modo oscuro */
@media (prefers-color-scheme: dark) {
    :root {
        --background-color: #1a1018;
        --text-color: #f8f8f8;
    }

    .counter-container,
    .coming-soon,
    .carousel-container {
        background: rgba(32, 19, 30, 0.95);
        border-color: rgba(255, 107, 149, 0.3);
    }

    .carousel-caption {
        background: rgba(32, 19, 30, 0.9);
    }
    
    .footer {
        background: rgba(32, 19, 30, 0.5);
    }
}

/* Estilos adicionales para animaciones GSAP */
.gsap-fade-up {
    transform: translateY(50px);
    opacity: 0;
}

.gsap-fade-left {
    transform: translateX(-50px);
    opacity: 0;
}

.gsap-fade-right {
    transform: translateX(50px);
    opacity: 0;
}

.gsap-scale-up {
    transform: scale(0);
    opacity: 0;
}

/* Efectos de partículas */
.particle-trail {
    position: absolute;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 5;
}

/* Brillo dinámico */
.dynamic-glow {
    position: relative;
}

.dynamic-glow::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 0 20px var(--primary-color);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.dynamic-glow:hover::after {
    opacity: 0.3;
}