/* =========================================
   CONFIGURACIÓN GENERAL
========================================= */

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

:root {

    --cafe-oscuro: #351106;
    --cafe-medio: #4b1b0d;

    --dorado: #f2ae2e;
    --amarillo: #ffb82e;

    --rojo: #f23838;
    --crema: #fff6e1;

    --azul: #4aa2d9;

    --cafe-claro: #6b2c18;
}


body {

    background-color: var(--cafe-oscuro);

    color: var(--crema);

    font-family: "Quicksand", sans-serif;

    min-height: 100vh;

    overflow-x: hidden;
}



/* =========================================
   PATRÓN DE FONDO
========================================= */

body::before {

    content: "";

    position: fixed;

    inset: 0;

    pointer-events: none;

    opacity: 0.12;

    background-image:
        linear-gradient(
            45deg,
            transparent 40%,
            #8d4a21 41%,
            #8d4a21 44%,
            transparent 45%
        );

    background-size: 90px 90px;

    z-index: -2;
}



/* =========================================
   BORDES DECORATIVOS
========================================= */

.decoracion-superior {

    width: 100%;

    height: 75px;

    background-color: #260b04;

    border-top: 3px solid var(--dorado);

    border-bottom: 3px solid var(--dorado);

    position: relative;

    overflow: hidden;
}


.patron {

    width: 100%;

    height: 100%;

    background-image:
        repeating-linear-gradient(
            45deg,
            transparent,
            transparent 15px,
            var(--dorado) 16px,
            var(--dorado) 20px,
            transparent 21px,
            transparent 35px
        );

    opacity: 0.7;
}



/* =========================================
   HEADER
========================================= */

.header {

    max-width: 1300px;

    margin: auto;

    padding: 80px 50px 60px;

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 80px;

    align-items: center;
}



/* =========================================
   LOGO / IDENTIDAD
========================================= */

.logo-texto {

    border-left: 6px solid var(--dorado);

    padding-left: 30px;

    transform: rotate(-0.5deg);
}


.pequeno {

    font-family: "Rye", serif;

    font-size: 17px;

    letter-spacing: 2px;

    color: var(--crema);
}


.logo-texto h1 {

    font-family: "Rye", serif;

    font-size: clamp(55px, 7vw, 100px);

    line-height: 1;

    color: var(--dorado);

    margin: 18px 0 12px;
}


.logo-texto h1 span {

    display: block;

    color: var(--rojo);
}


.logo-texto h2 {

    font-family: "Rye", serif;

    font-size: clamp(28px, 4vw, 52px);

    color: var(--rojo);

    line-height: 1.15;
}


.logo-texto p {

    margin-top: 20px;

    color: var(--crema);

    font-size: 18px;

    letter-spacing: 4px;
}



/* =========================================
   TITULO PRINCIPAL
========================================= */

.titulo-seccion {

    text-align: left;

    border-bottom: 2px solid var(--dorado);

    padding-bottom: 30px;
}


.pre-titulo {

    font-family: "Rye", serif;

    font-size: 25px;

    color: var(--crema);

    letter-spacing: 3px;
}


.titulo-seccion h2 {

    font-family: "Rye", serif;

    font-size: clamp(60px, 8vw, 110px);

    line-height: 0.9;

    color: var(--rojo);

    margin: 15px 0 30px;
}


.titulo-seccion p {

    font-size: 21px;

    line-height: 1.5;

    color: var(--azul);

    max-width: 550px;
}


/* Panel pequeño con imagen/título y reproductor */
.panel-musica {
    display: flex;
    gap: 20px;
    align-items: center;
    margin-top: 18px;
}

.imagen-principal {
    width: 100%;
    max-width: 380px;
    margin-bottom: 18px;
}

.imagen-principal img {
    width: auto;
    height: clamp(120px, 18vw, 320px);
    display: block;
    object-fit: cover;
    border: 2px solid rgba(255,255,255,0.06);
    border-radius: 6px;
}

.imagen-titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.placeholder-img {
    width: 120px;
    height: 80px;
    background-color: rgba(255,255,255,0.06);
    border: 1px dashed rgba(255,255,255,0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--crema);
    font-weight: bold;
}

.placeholder-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.img-titulo {
    font-size: 14px;
    color: var(--crema);
    text-align: center;
}

.mini-reproductor {
    border: 2px solid rgba(255,255,255,0.06);
    padding: 10px 12px;
    background-color: rgba(0,0,0,0.15);
    border-radius: 6px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    min-width: 220px;
}

.label-musica {
    font-weight: 700;
    color: var(--dorado);
    letter-spacing: 2px;
}

.mini-reproductor audio {
    width: 100%;
}



/* =========================================
   CONTENIDO
========================================= */

.contenido {

    max-width: 1150px;

    margin: auto;

    padding: 20px 30px 100px;
}



/* =========================================
   INTRO
========================================= */

.intro {

    display: flex;

    gap: 30px;

    align-items: center;

    margin-bottom: 50px;
}


.numero {

    font-family: "Rye", serif;

    font-size: 70px;

    color: var(--dorado);

    line-height: 1;
}


.intro h2 {

    font-family: "Rye", serif;

    font-size: 45px;

    color: var(--dorado);
}


.intro h2 span {

    color: var(--rojo);
}


.intro p {

    max-width: 700px;

    margin-top: 10px;

    color: var(--crema);

    font-size: 17px;

    line-height: 1.6;
}



/* =========================================
   TARJETAS DE MÚSICA
========================================= */

.musicas {

    display: flex;

    flex-direction: column;

    gap: 25px;
}


.tarjeta-musica {

    position: relative;

    display: grid;

    grid-template-columns: 120px 1fr;

    background-color: rgba(53, 17, 6, 0.85);

    border: 2px solid #6e311b;

    transition: 0.3s ease;

    overflow: hidden;
}


.tarjeta-musica::before {

    content: "";

    position: absolute;

    left: 0;

    top: 0;

    width: 7px;

    height: 100%;

    background-color: var(--dorado);
}


.tarjeta-musica:hover {

    transform: translateX(8px);

    border-color: var(--dorado);

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}



/* =========================================
   NÚMERO DE CANCIÓN
========================================= */

.numero-musica {

    display: flex;

    justify-content: center;

    align-items: center;

    font-family: "Rye", serif;

    font-size: 55px;

    color: var(--dorado);

    background-color: rgba(242, 174, 46, 0.06);

    border-right: 1px solid #6e311b;
}



/* =========================================
   INFORMACIÓN
========================================= */

.info-musica {

    padding: 30px 35px;
}


.categoria {

    font-size: 13px;

    font-weight: bold;

    letter-spacing: 3px;

    color: var(--azul);
}


.info-musica h3 {

    font-family: "Rye", serif;

    font-size: 30px;

    margin: 10px 0;

    color: var(--crema);
}


.info-musica p {

    color: #d8c6ad;

    line-height: 1.5;

    margin-bottom: 20px;
}



/* =========================================
   REPRODUCTOR
========================================= */

audio {

    width: 100%;

    height: 45px;

    accent-color: var(--dorado);
}



/* =========================================
   FOOTER
========================================= */

footer {

    text-align: center;

    padding: 50px 20px 60px;

    background-color: #260b04;

    border-top: 3px solid var(--dorado);
}


.linea-footer {

    width: 150px;

    height: 5px;

    background-color: var(--rojo);

    margin: 0 auto 30px;
}


footer h2 {

    font-family: "Rye", serif;

    font-size: 20px;

    line-height: 1.5;

    color: var(--crema);
}


footer h2 span {

    color: var(--dorado);

    display: block;
}


footer p {

    margin-top: 15px;

    color: #bda993;
}


.redes {

    margin-top: 20px;

    color: var(--azul);

    font-weight: bold;
}



/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 850px) {

    .header {

        grid-template-columns: 1fr;

        gap: 60px;

        padding: 60px 30px;
    }


    .titulo-seccion {

        text-align: center;
    }


    .titulo-seccion p {

        margin: auto;
    }

}



/* =========================================
   RESPONSIVE - CELULAR
========================================= */

@media (max-width: 600px) {

    .decoracion-superior {

        height: 50px;
    }


    .header {

        padding: 45px 20px;
    }


    .logo-texto {

        padding-left: 20px;
    }


    .pequeno {

        font-size: 12px;
    }


    .logo-texto h1 {

        font-size: 55px;
    }


    .logo-texto h2 {

        font-size: 27px;
    }


    .titulo-seccion h2 {

        font-size: 60px;
    }


    .contenido {

        padding: 20px 15px 70px;
    }


    .intro {

        align-items: flex-start;

        gap: 15px;
    }


    .numero {

        font-size: 45px;
    }


    .intro h2 {

        font-size: 28px;
    }


    .tarjeta-musica {

        grid-template-columns: 1fr;
    }


    .numero-musica {

        justify-content: flex-start;

        padding: 15px 25px;

        font-size: 35px;

        border-right: none;

        border-bottom: 1px solid #6e311b;
    }


    .info-musica {

        padding: 25px 20px;
    }


    .info-musica h3 {

        font-size: 24px;
    }


    footer h2 {

        font-size: 15px;
    }

}

/* Mayan Square: if you have the font file, place it in /fonts/ and it will be used; otherwise Rye is fallback */
@font-face {
    font-family: 'Mayan Square';
    src: local('Mayan Square'), url('fonts/MayanSquare.woff2') format('woff2');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

/* Headings use Mayan Square (fallback to Rye) */
h1, h2, h3, .logo-texto h1, .logo-texto h2, .titulo-seccion h2, .info-musica h3 {
    font-family: 'Mayan Square', 'Rye', serif;
}