
:root {
    --rosa: #ff6b8b;
    --rosa-claro: #ffb8c6;
    --blanco: #fff9fb;
    --dorado: #ffd700;
    --azul-oscuro: #1a237e;
    --negro-suave: #222;
    --sombra: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e);
    color: var(--blanco);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
}

.stars-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
}

.star {
    position: absolute;
    background: white;
    border-radius: 50%;
    animation: twinkle 5s infinite;
    opacity: 0;
}

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

.container {
    width: 100%;
    max-width: 1200px;
    margin: 2rem auto;
    position: relative;
    z-index: 1;
}

h1 {
    font-family: 'Dancing Script', cursive;
    text-align: center;
    font-size: 4rem;
    color: var(--rosa-claro);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(255, 107, 139, 0.5);
}

.subtitle {
    text-align: center;
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: var(--blanco);
    margin-bottom: 2rem;
    font-weight: 400;
    opacity: 0.9;
}

.premium-carousel {
    width: 100%;
    height: 70vh;
    min-height: 500px;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--sombra);
    position: relative;
}

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

.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1.5s ease, transform 1.5s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 2rem;
    background-size: cover;
    background-position: center;
    transform: scale(0.95);
}

.carousel-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.carousel-slide.active {
    opacity: 1;
    transform: scale(1);
    z-index: 1;
}

.carousel-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.carousel-lyrics,
.carousel-caption {
    position: relative;
    z-index: 2;
}

.carousel-lyrics {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: var(--blanco);
    margin-bottom: 1.5rem;
    line-height: 1.4;
    text-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    max-width: 800px;
}

.carousel-caption {
    font-style: italic;
    font-size: 1.2rem;
    color: var(--rosa-claro);
    opacity: 0.9;
    max-width: 600px;
}

.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    color: var(--blanco);
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: all 0.3s;
}

.carousel-control:hover {
    background: var(--rosa);
    transform: translateY(-50%) scale(1.1);
}

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

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

.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s;
}

.indicator.active {
    background: var(--rosa);
    transform: scale(1.3);
    box-shadow: 0 0 10px var(--rosa);
}

.floating-heart {
    position: absolute;
    font-size: 24px;
    color: var(--rosa);
    animation: float 8s linear infinite;
    opacity: 0;
    z-index: 2;
    pointer-events: none;
}

@keyframes float {
    0% { transform: translateY(100vh) rotate(0deg); opacity: 0; }
    20% { opacity: 0.8; }
    100% { transform: translateY(-100px) rotate(360deg); opacity: 0; }
}

.heart-beat {
    position: absolute;
    font-size: 100px;
    color: var(--rosa);
    opacity: 0;
    animation: heartBeat 1.5s ease-in-out infinite;
    z-index: 0;
}

@keyframes heartBeat {
    0% { transform: scale(0.8); opacity: 0.3; }
    50% { transform: scale(1.2); opacity: 0.7; }
    100% { transform: scale(0.8); opacity: 0.3; }
}

footer {
    text-align: center;
    margin-top: 2rem;
    font-size: 1rem;
    color: var(--blanco);
    opacity: 0.7;
    font-family: 'Playfair Display', serif;
}

.start-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--rosa);
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1.5rem;
    border-radius: 50px;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s;
}

.start-button:hover {
    background: var(--rosa-claro);
    transform: translate(-50%, -50%) scale(1.1);
}

@media (max-width: 768px) {
    h1 { font-size: 2.2rem; margin-bottom: 0.2rem; }
    .subtitle { font-size: 1rem; margin-bottom: 1rem; padding: 0 1rem; }
    .carousel-lyrics { font-size: 1.5rem; padding: 0 10px; }
    .carousel-caption { font-size: 1rem; }
    .premium-carousel { height: 50vh; min-height: 350px; }
    .carousel-control { width: 40px; height: 40px; font-size: 1.2rem; }
    .carousel-control.prev { left: 10px; }
    .carousel-control.next { right: 10px; }
    footer { margin-top: 1rem; font-size: 0.85rem; padding-bottom: 1rem; }
}

@media (max-height: 600px) {
    /* Ajuste para celulares en modo horizontal o pantallas muy bajas */
    h1 { font-size: 1.8rem; }
    .subtitle { display: none; } /* Ocultamos subtitulo para dar prioridad al carrusel */
    .premium-carousel { height: 65vh; min-height: 250px; }
}
