/* quenca un quenco */
*,
::before,
::after {
    box-sizing: border-box;
}

:root {
    --night-blue: #1a237e;
    --deep-purple: #4a148c;
    --star-yellow: #fff59d;
    --moon-white: #f5f5f5;
    --text-light: #e0e0e0;
    --accent-gold: #ffd700;
    --accent-purple: #9c27b0;
    --card-bg: rgba(255, 255, 255, 0.95);

    --font-playful: 'Montserrat', sans-serif;
}

body {
    margin: 0;
    padding: 0;
    font-family: var(--font-playful);
    background: linear-gradient(135deg, var(--night-blue), var(--deep-purple));
    color: #333;
    overflow-x: hidden;
    min-height: 100vh;
}

/* fondo */
.background-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
    /* Evitar bloquear clics en móviles */
}

.moon {
    position: absolute;
    top: 50px;
    right: 60px;
    width: 80px;
    height: 80px;
    background: var(--moon-white);
    border-radius: 50%;
    box-shadow: 0 0 40px rgba(255, 255, 255, 0.4);
    animation: glow 4s ease-in-out infinite;
}

.star {
    position: absolute;
    background: var(--star-yellow);
    clip-path: polygon(50% 0%, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%);
    animation: twinkle var(--duration) ease-in-out infinite;
}

.star-1 {
    top: 15%;
    left: 10%;
    width: 20px;
    height: 20px;
    --duration: 3s;
}

.star-2 {
    top: 40%;
    left: 85%;
    width: 15px;
    height: 15px;
    --duration: 4s;
}

.star-3 {
    top: 70%;
    left: 15%;
    width: 25px;
    height: 25px;
    --duration: 5s;
}

.cloud {
    position: absolute;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50px;
}

.cloud-1 {
    top: 20%;
    left: -100px;
    width: 200px;
    height: 60px;
    animation: drift 30s linear infinite;
}

.cloud-2 {
    top: 60%;
    right: -100px;
    width: 250px;
    height: 80px;
    animation: drift 40s linear infinite reverse;
}

/* Animations */
@keyframes glow {

    0%,
    100% {
        transform: scale(1);
        opacity: 0.8;
    }

    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

@keyframes twinkle {

    0%,
    100% {
        opacity: 0.3;
        transform: scale(0.8);
    }

    50% {
        opacity: 1;
        transform: scale(1.2);
    }
}

@keyframes drift {
    from {
        transform: translateX(-100px);
    }

    to {
        transform: translateX(calc(100vw + 200px));
    }
}

/* contido */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 80px 20px;
    text-align: center;
    position: relative;
    z-index: 1;
}

.poster-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 30px;
    padding: 40px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
    border: 4px solid rgba(255, 255, 255, 0.3);
    margin-bottom: 50px;
    animation: fadeInUp 1s ease-out;
}

.poster-image {
    width: 100%;
    max-width: 600px;
    border-radius: 20px;
    margin: 0 auto 30px;
    display: block;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.names-container {
    display: flex;
    justify-content: space-around;
    margin-bottom: 20px;
}

.artist-name {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-purple);
    text-transform: uppercase;
    letter-spacing: 2px;
}

.title-banner {
    background: var(--night-blue);
    padding: 15px 40px;
    display: inline-block;
    position: relative;
    margin: 20px 0;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.main-title {
    font-size: 3rem;
    font-weight: 800;
    color: white;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 3px;
    line-height: 1.1;
}

.description-container {
    max-width: 700px;
    margin: 30px auto;
    text-align: left;
}

.description {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #444;
    margin-bottom: 20px;
}

.description:last-child {
    margin-bottom: 0;
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-top: 40px;
}

@media (min-width: 700px) {
    .info-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.info-item {
    background: white;
    padding: 16px 14px;
    border-radius: 20px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    border: 1px solid #eee;
}

.info-item:nth-child(1) {
    grid-column: 1 / -1;
}

@media (min-width: 700px) {
    .info-item:nth-child(1) {
        grid-column: span 1;
    }
    .info-item:nth-child(4) {
        grid-column: 1 / -1;
    }
}

.info-label {
    display: block;
    font-size: 0.8rem;
    text-transform: uppercase;
    color: var(--accent-purple);
    font-weight: 800;
    letter-spacing: 0.5px;
    margin-bottom: 8px;
}

.info-value {
    font-size: 0.9rem;
    font-weight: 600;
    line-height: 1.5;
    color: var(--night-blue);
    word-wrap: break-word;
    overflow-wrap: break-word;
}

.btn-container {
    margin-top: 50px;
    margin-bottom: 30px;
    /* Añadido margen inferior para evitar pegarse al pie */
}

.btn {
    display: inline-block;
    padding: 15px 40px;
    background: var(--accent-purple);
    color: white;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    box-shadow: 0 10px 20px rgba(156, 39, 176, 0.3);
}

.btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(156, 39, 176, 0.4);
    background: var(--night-blue);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    box-shadow: none;
}

.btn-secondary:hover {
    background: white;
    color: var(--night-blue);
}

.btn-download {
    background: var(--accent-gold);
    color: var(--night-blue);
    box-shadow: 0 10px 20px rgba(255, 215, 0, 0.3);
}

.btn-download:hover {
    background: #ffea00;
    color: var(--night-blue);
    box-shadow: 0 15px 30px rgba(255, 215, 0, 0.4);
}

/* Footer Styles */
.footer {
    padding: 60px 0 40px;
    background: rgba(0, 0, 0, 0.3);
    text-align: center;
    margin-top: 80px;
    position: relative;
    z-index: 10;
}

.copyright {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 500;
    color: var(--moon-white);
}

.copyright a {
    color: white;
    font-weight: 700;
    text-decoration: underline;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .names-container {
        flex-direction: column;
        gap: 10px;
    }

    .main-title {
        font-size: 1.8rem;
        letter-spacing: 1px;
    }

    .title-banner {
        padding: 10px 20px;
        max-width: 90vw;
    }

    /* Ocultar las alas del lazo en móvil para evitar scroll horizontal */
    .title-banner::before,
    .title-banner::after {
        display: none;
    }

    .btn-container {
        margin-top: 20px;
        padding: 0 20px;
        /* Añadir espacio lateral */
    }

    .btn-secondary {
        margin-top: 20px;
        width: 100%;
        text-align: center;
    }

    .poster-card {
        padding: 20px;
    }
}