@font-face {
    font-family: 'Astron Boy Video';
    src: url('vinilos/astronbv.ttf') format('truetype');
}

:root {
    font-size: 100%;
    --borde: #3D3934;
    --precio: #D4A373;
    --btnsi: #4F6F52;
    --texto-principal: #F5EBE6;
    --texto-secundario: #A8A29E;
    --btnno: #A05244;
    --tx-serif: 'Noto Serif Display', serif;
    --tx-sans: 'Inter', sans-serif;
}

*, *::before, *::after {
    box-sizing: border-box;
}

body {
    width: 100%;
    margin: 0;
    padding: 0;
    background-color: #1A1917;
}

#all-container {
    position: relative;
    width: 100%;
    min-height: 100vh;
    padding: 0;
    margin: 0;
    display: grid;
    grid-template-areas:"banner carrito" 
                        "main carrito";
    grid-template-columns: 2fr 1fr;
    background: transparent;
}

#disco {
    position: fixed;
    top: 0;
    left: 0;
    aspect-ratio: 1 / 1;
    height: 170vh;
    width: auto;
    z-index:-1;
}

#banner {
    grid-area: banner;
    font-family: 'Astron Boy Video', 'Times New Roman', serif;
    font-size: 5vw;
    color: var(--texto-principal);
    position: fixed;
    top: 8px;
    left: 8px;
    z-index: 2;
}

button {
    background-color: var(--texto-secundario);
}
button:hover {
    filter: brightness(1.2);
}

button.disabled {
    color: #888;
    filter: grayscale(75%);
}

button.disabled:hover {
    filter: grayscale(75%);
}

/* Estilo del Botón Flotante */
#BtnUp {
    position: fixed;
    bottom: 10px;
    right: 34%;
    width: 50px;
    height: 50px;
    
    /* Fondo levemente transparente (usando tu color #1E1C1A con 40% opacidad) */
    background-color: rgba(30, 28, 26, 0.4);
    
    /* Efecto de cristal (opcional, mejora la legibilidad sobre el disco giratorio) */
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    
    border: 1px solid rgba(255, 255, 255, 0.2); /* Borde sutil */
    border-radius: 8px;
    cursor: pointer;
    z-index: 9; /* Por encima del fondo y del contenido */
    
    /* Centrar el SVG dentro del botón */
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    
    /* Transición suave */
    transition: all 0.3s ease;
    
}

/* Efecto Hover: Más opaco y se eleva */
#BtnUp:hover {
    background-color: rgba(30, 28, 26, 0.8); /* Más oscuro al pasar el mouse */
    
    box-shadow: 0 5px 15px rgba(0,0,0,0.5);
    border-color: rgba(255, 255, 255, 0.5);
}

@keyframes color-flecha {
    from {stroke: var(--texto-secundario);}
    to {stroke: #222;}
}
/* Ajuste del SVG interno */
#BtnUp svg {
    width: 24px;  /* Ancho de las flechas */
    height: 40px; /* Alto total de las dos flechas */
    fill: none;
    animation: color-flecha 1.2s ease infinite alternate both;
    stroke-width: 3;
    stroke-linecap: round;
    stroke-linejoin: round;
    padding: 0;
    margin-top: 0;
}

#BtnUp svg:hover {
    transform: translateY(-5px); /* Se mueve ligeramente hacia arriba */
    transition: transform 0.3s ease;
    color: var(--texto-principal);
}

@keyframes sombra-boton {
    from {box-shadow: 0 0 12px var(--texto-secundario);}
    to {box-shadow: 0 0 12px #222;}
}

#mobile-menu {
    display: none;
    cursor: pointer;
	background-color: rgba(30, 28, 26, 0.4);
    animation: sombra-boton 1.2s ease infinite alternate both;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
}

#mobile-menu-counter {
    display: block;
    position: absolute;
    color: var(--texto-principal);
    font-family: var(--tx-serif);
    font-size: 26px;
    z-index: 102;
}

/*------------------------------------------------------------------------------------------------------*/

#items {
    grid-area: main;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    row-gap: 2vh;
    margin-top: clamp(4rem, 6vw, 7rem);
}

.tarjeta {
    width: 30%;
    padding: 1px;
    margin: 0;
    background-color: #262421;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    z-index: 0;
}

.tarjeta:hover {
    background-color: #33302C;
    transition: background-color 0.5s ease;
    margin: 0;
    box-shadow: 0 0 6px #666;
}

.tarjeta:hover h5 {
    color: var(--texto-principal);
}

.cuerpo {
    flex-grow: 1;
    padding: 5px;
    display: grid;
    grid-template-areas: "titulo titulo"
                        "anio pais"
                        "productora productora"
                        "discos codigo"
                        "galeria galeria"
                        "media sleeve"
                        "precio boton";
    grid-template-columns: 1fr 1fr;
    text-align: center;
    gap: 5px;
    justify-content: center;
}

.cuerpo p {
    font-weight: 600;
    margin: auto;
    font-size: clamp(1rem, 1.5vw, 1.125rem);
    font-family: var(--tx-serif);
}

.cuerpo div {
    background-color: rgba(247, 158, 158, 0.3);
}

h5 {
    font-family: var(--tx-serif);
    color: var(--texto-secundario);
    height: auto;
    font-size: clamp(1.2rem, 2vw, 1.4rem);
    margin: auto;
    line-height: 1;
}

h6 {
    font-family: var(--tx-sans);
    font-size: clamp(0.9rem, 1.3vw, 1rem);
    font-weight: normal;
    margin: 2px auto;
}

.titulo {
    grid-area: titulo;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 180px;
    padding: 4px;
    text-align: center;
    line-height: 1.1;
    font-size: 1rem;
    word-break: break-word;
    overflow: hidden;
}

.anio {
    grid-area: anio;
}

.pais {
    grid-area: pais;
}

.productora {
    grid-area: productora;
}

.productora p {
    font-size: small;
}

.discos {
    grid-area: discos;
}

.codigo {
    grid-area: codigo;
}

.codigo p {
    font-size: 80%;
}

.media {
    grid-area: media;
}

.sleeve {
    grid-area: sleeve;
}

.galeria {
    grid-area: galeria;
    background-color: transparent !important;
}

.imagen-principal {
    width: 100%;
    border-radius: 8px;
}

.btn-nav {
    width: 46%;
    height: 35px;
    margin: 0 4px;
    border-radius: 6px;
}

.precio {
    font-family: var(--tx-serif);
    color: var(--texto-principal);
    text-shadow: 18px 0 13px black,
        -18px 0 13px black;
    grid-area: precio;
    background-color: var(--precio);
    width: 100%;
    height: 50px;
    align-content: center;
    font-size: large !important;
}

.tarj-boton {
    font-family: var(--tx-sans);
    grid-area: boton;
    width: 100%;
    height: 50px;
    background-color: var(--btnsi);
}

/*------------------------------------------------------------------------------------------------*/

#carrito {
    display: flex;
    flex-direction: column;
    grid-area: carrito;
    background-color: rgba(30, 28, 26, 0.7);
    height: 96vh;
    width: 33%;
    position: fixed;
    top: 2vh;
    right: 0;
    z-index: 8;
    overflow: auto;
    gap: 8px;
}

h4 {
    font-family: var(--tx-serif);
    color: var(--texto-secundario);
    font-size: 1.5rem;
    margin: 0 30px;
    padding: 0;
}

#items-carrito {
    width: 99%;
    height: 43%;
    overflow: auto;
    margin: 0;
    padding: 5px;
}

.item-lista {
    color: var(--texto-secundario);
    padding: 8px;
    border: 1px solid var(--borde);
    list-style: decimal inside;
    position: relative;
    top: 0;
    left: 0;
    border-radius: 4px;
}

.item-lista:hover {
    background-color: rgba(250,250,250,0.1);
}

.item-texto {
    font-family: var(--tx-sans);
    margin: 0;
}

.btn-borrar {
    display: block;
    background-color: var(--btnno);
    position: absolute;
    right: 5px;
    top: 5px;
    aspect-ratio: 1/1;
    height: 1.5rem;
    border-radius: 50%;
    margin: 0;
}

#botones-lista {
    margin: 0 auto;
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 5px;
}

#btn-vaciar,
#confirmar {
    width: 40%;
    padding: 8px;
}

#btn-vaciar {
    background-color: var(--btnno);
}

#confirmar {
    background-color: var(--btnsi);
}
/*--------------------------------------------------------------------------------------------------*/

#seccion-total p {
    height: 10%;
    margin: 2vh;
    font-size: clamp(12px, 1.5rem, 18px);
    text-align: center;
    font-family: var(--tx-serif);
}

#total {
    color: var(--texto-principal);
    font-weight: bold;
    font-size: clamp(14px, 1.6rem, 22px);
}

#seccion-total {
    color: var(--texto-principal);
}
/*---------------------------------------------------------------------------------------------------*/

#texto-informativo {
    display: flex;
    flex-direction: column;
    row-gap: 5px;
    padding: 5px;
    font-size: 0.8rem;
    width: 100%;
    height: 37%;
}

#texto-informativo nav {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 100%;
    justify-content: center;
}

#texto-informativo nav button {
    width: auto;
    padding: 1vw;
    line-height: 1;
}

#sobreLaPagina {
    display: block;
}

#sobreMi {
    display: none;
}

#sobreTransporte {
    display: none;
}

#info {
    width: 99%;
    border: 1px solid var(--borde);
    border-radius: 4px;
    overflow: auto;
}

#info p {
    margin: 0;
    padding: 5px;
    font-family: var(--tx-sans);
    color: var(--texto-secundario);
}

#btn-laPagina.active,
#btn-mi.active,
#btn-transporte.active {
    background-color: var(--precio);
}

/*-------------------------------------------------------------------------------------------------*/

#contacto {
    display: none;
    flex-direction: column;
    overflow: auto;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60%;
    max-height: 80vh;
    background-color: var(--texto-secundario);
    z-index: 9999;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 0 82px gray;
}

#repasar-carrito {
    margin-bottom: 10px;
    margin-top: 0;
}

#comentarios {
    width: auto;
    height: 200px;
    margin-bottom: 10px;
}

#nombre, #correo {
    width: 50%;
    margin-bottom: 10px;
}

#botones-pedido {
    display: flex;
    flex-direction: row;
    gap: 5px;
    width: 25%;
    margin: 0 auto;
}

#cancelar-pedido {
    background-color: var(--btnno);
    width: 45%;
    font-size: 16px;
}

#confirmar-pedido {
    background-color: var(--btnsi);
    width: 45%;
    font-size: 16px;
}
/*----------------------------------------------------------------------------------------------------*/

@media (max-width: 700px) {
    #all-container {
        grid-template-areas: "banner"
                            "toggle"
                            "carrito"
                            "main";
        grid-template-columns: 1fr;
        margin: 0;
        width: 100%;
        padding: 0;
    }

    #banner {
        font-size: 10vw;
    }
    
    #BtnUp {
        right: 3vw;
    }

    #disco {
        height: 120vh;
        width: auto;
    }

    #mobile-menu {
        grid-area: toggle;
        display: flex;
        justify-content: center;
        align-items: center;
        width: 7vh;
        min-width: 70px;
        height: 7vh;
        min-height: 70px;
        position: fixed;
        top: 3px;
        right: 3px;
        z-index: 100;
    }

    #mobile-menu img {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 85%;
        z-index: 101;
    }

    /*#mobile-menu svg {
        position: absolute;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        width: 24px;
        height: 30px;
        fill: none;
        animation: color-flecha 2s ease infinite alternate both;
        stroke-width: 3;
        stroke-linecap: round;
        stroke-linejoin: round;
        padding: 0;
        background-color: rgba(230, 228, 226, 0.1);
        backdrop-filter: blur(1px);
        -webkit-backdrop-filter: blur(1px);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: 8px;
        z-index: 102;
    }*/

    h4 {
        display: none;
    }

    #carrito {
        display: block;
        transform: translateY(-150%);
        transition: transform 0.4s ease-in-out;
        order: -1;
        width: 100%;
        height: calc(100vh-70px);
        margin: 0;
        background-color: rgba(30, 28, 26, 0.9);
        position: fixed;
        top: 0;
        margin-top: 60px;
        z-index: 10;
        overflow: auto;
    }

    #carrito.active {
        display: block;
        transform: translateY(0);
    }
                
    #items {
        gap: 3vh;
    }

    #items-carrito {
        height: 60%;
    }

    #texto-informativo {
        height: 20%;
    }

    .tarjeta {
        width: 98%;
        margin: 0;
        padding: 12px 0;
    }

    .titulo {
        height: auto;
        min-height: auto;
        font-size: 1rem;
        overflow: visible;
    }

    #contacto {
        display: none;
        flex-direction: column;
        overflow-y: auto;
        gap: 6px;
        width: 95%;
        background-color: var(--texto-secundario);
        padding: 15px;
        border-radius: 8px;
        box-shadow: 0 0 62px gray;
    }

    #contacto input, #contacto label {
        margin: 0;
        padding: 0;
    }

    #repasar-carrito {
        margin: 0;
    }

    #comentarios {
        width: 100%;
        min-height: 25vh;
    }

    #botones-pedido {
        width: 80%;
    }

    #texto-informativo nav button {
        padding: 1vh;
    }
}

@media (min-width: 701px) and (max-width: 910px) {
    #banner {
        font-size: 7vw;
    }

    #disco {
        height: 120vh;
    }
    
    .tarjeta {
        width: 45%;
    }

    #items-carrito {
        height: 60%;
    }

    #texto-informativo {
        height: 30%;
    }

    #texto-informativo nav button {
        padding: 2%;
    }

    #botones-pedido {
        width: 80%;
    }
}

@media only screen and (min-width: 1367px) and (orientation: landscape) {
    #BtnUp {
        width: 50px;
        height: 50px;
    }

    #items {
        margin-top: 10%;
    }
    
    .tarjeta {
        width: 23%;
    }

    #banner {
        font-size: clamp(4rem, 6vw, 10rem);
    }

     #items-carrito {
        height: 60%;
    }

    #texto-informativo {
        height: 30%;
    }
}