@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400..900&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');


* { box-sizing: border-box; }

*, *::before, *::after {
  box-sizing: border-box;
}

a{
    text-decoration: none !important;
}


body {
    margin: 0;
    background-color: #0c0c1a;
    /*font-family: Arial, Helvetica, sans-serif;*/

    user-select: none;
    -webkit-user-select: none; /* Safari */
}

a {
    text-decoration: none !important;
}

.global-bg {
    position: fixed;
    inset: 0;
    background-image: url("../imagenes/definitivo/backdrop-definitivo.webp");
    background-size: cover;
    background-position: center;
    filter: blur(20px) brightness(0.8) saturate(0.5);
    z-index: -1;
}

.bandera{
    width: 90%;
    max-width: 1000px;
    position: relative;
    top: 0px;
    right: 0px;
    height: 0px;

    margin: 0 auto;
    z-index: -1;

}
.bandera img{
    float: right;
    height: 120px;
    width: auto;
}

.cont {
    width: 90%;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1; /* crea capa por encima del fondo global */
}

.cont-borde{
    border-radius: 10px;
    border: #ffffff2a 3px solid;
    transition: all 1s ease;
}

.cont-borde:hover{
    border-radius: 10px;
    border: #00b7ff 3px solid;
}


.cabecera img {
    max-width: 200px;
    margin: 40px 0;
}

/* GRID ALBUM PRINCIPAL */
.albp{
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    /*background-image: url(../imagenes/definitivo/backdrop-definitivo.webp);
    background-size: cover;
    background-position: center;*/
    padding: 0px;
    border-radius: 10px;
}


.alba{
    width: 100%;
    aspect-ratio: 2 / 1;
    margin: auto;
    text-align: center;
    border-radius: 5px;
    gap: 10px;
}

.albb {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    overflow: visible; /* IMPORTANTE */

}

/* FONDO ALBUM PRINCIPAL */

.cont:hover .alb-bg {
    transform: scale(1.15);
}

.alb-bg {
    position: absolute;
    inset: 0;
    background-image: url("../imagenes/definitivo/backdrop-definitivo.webp");
    background-size: cover;
    background-position: center;
    transition: transform 3s cubic-bezier(.22,.61,.36,1);
}

.albp,
.albb {
    position: relative !important;
    z-index: 2 !important;
}

.bg-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    border-radius: 10px;
    z-index: 1; /* estaba en 0 */

    border-radius: 7px;
}

.albp > * {
    position: relative;
    z-index: 2;
}

.albb:hover .alb-bg {
    transform: scale(1.15);
}

.card > * {
    position: relative;
    z-index: 1;
}

/* IMAGEN NÍTIDA */
.img-portada {
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);

    width: 80%;
    height: auto;

    z-index: 0;
    pointer-events: none;
}


/* GRID ARTS */
.arts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    /*grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));*/
    gap: 0px;
}

/* CARD */
.art {
    position: relative;
    width: 100%;
    aspect-ratio: 8 / 11;
    /*height: 330px;*/
    margin: 0 auto;
    overflow: visible;
    transition: transform 0.4s ease;

    transform-origin: center center;
    
    isolation: isolate;

    z-index: 1;
}

.art .btn-ui{
    border: none;
}


.art:hover {
    transform: scaleY(1.09);
    /*z-index: 10;*/
    z-index: 50;
}



/*.art::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: -15px;
    bottom: -15px; /* 330 + 30 = 360 visual *//*
    border-radius: 12px;
    background: transparent;
    z-index: -1;
    transition: all 0.25s ease;
}*/

.art::after {
    content: "";
    position: absolute;
    inset: -35px;          /* agranda el área interactiva */
    border-radius: 10px;
    background: transparent;

    z-index: 5;            /* ENCIMA de las otras cards */
    pointer-events: none;  /* 👈 ESTO ES LO QUE TE FALTA */
}

.art:hover::after {
    top: -30px;
    bottom: -30px;
}

/* TARJETA TRASERA (COMPRIMIDA EN EL CENTRO) */
.art-back {
    /*position: absolute;*/
    inset: 0;
    background: #161616a2;

    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);

    isolation: isolate;
    padding: 10px;
    border-radius: 10px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    /* CLAVE */
    transform: scaleY(0);
    transform-origin: center;
    transition: transform 0.4s ease;

    z-index: 1;

    position: absolute;
    overflow: hidden;
    
}


/* TARJETA FRONTAL */
.art-front {
    position: absolute;
    inset: 0;
    z-index: 2;
    transition: transform 0.4s ease;
}

.art-front img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

/* HOVER: EXPANSIÓN DESDE EL CENTRO */
.art:hover .art-back {
    transform: scaleY(1.05);

}

/* LA FRONTAL SE SEPARA UN POCO */
.art:hover .art-front {
    transform: scale(0.92);
    padding-top: 35px;
}

/* BOTONES */
.downloads {
    display: flex;
    gap: 10px;
}

.btn {
    flex: 1;
    padding: 8px;
    text-align: center;
    font-family: Orbitron, sans-serif;
    font-weight: bold;
    border-radius: 5px;
    font-size: 14px;
    border: none;
    cursor: pointer;
}

.flac, .mp3 {
    background: #242424;
    color: #fff;
    cursor: pointer;
    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        border-color 0.25s ease;

}

.flac:hover, .mp3:hover {
    background: #f00;
    color: #fff;
    cursor: pointer;
}

.art-front {
    pointer-events: auto;
}

.art:hover .art-front {
    pointer-events: none;
}

/* TAG */
.tag {
    position: relative;
    width: max-content;
    /*top: 15px;
    left: 15px;*/

    background: #323232c0;
    color: #fff;
    padding: 6px 8px;
    font-family: Orbitron, sans-serif;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;
    z-index: 3;

    margin-right: 3px;
    margin-bottom: 3px;
    float: left;

    transition: background 0.25s ease, transform 0.15s ease;
}

.tagcont{
    margin: 10px;
}

.alb-logo-wrap{
    position: relative;  /* 👈 ancla */

    width: 100%;
    height: 100%;
}

.alb-logo {
    position: absolute;
    width: 80%;
    max-width: 200px;
    bottom: 10px;
    left: 10px;
    /*left: 50%;
    transform: translateX(-50%);*/

    width: 80%;
}

.tag:hover {
    background-color: #f00 !important;
    color: #fff !important;
}

.tag-l{
    border-radius: 7px 3px 3px 7px !important;
}

.tag-m{
    border-radius: 3px !important;
}

.tag-r{
    border-radius: 3px 7px 7px 3px !important;
}

.tag-sep{
    border-radius: 3px !important;
    background-color: #242424a4 !important;
    color: #f00;
    padding: 6px 6px !important;
}

/* SEPARADOR */
.sep{
    width: max-content;
    margin: 0 auto;
    margin-top: 10px;
    padding: 10px;

    text-align: center;
    font-family: Orbitron, sans-serif;
    font-weight: bold;
    font-size: 14px;
    letter-spacing: 2px;
    color: #fff;
    background-color: #2424248c;
    border-radius: 5px;

    

}

/* PLAYER */
.player {
    display: flex;
    align-items: center;
    gap: 8px;
}


.progress {
    flex: 1;
    height: 6px;
    background: #333;
    border-radius: 3px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: #e10600;
    transition: background 0.25s ease, transform 0.15s ease;
}

.progress-bar:hover {
    height: 100%;
    width: 0%;
    background: #00b7ff;
}

.play {
    background: #242424;
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.25s ease, transform 0.15s ease;
}

.play:hover {
    background: #00b7ff;
}

.progress {
    cursor: pointer;
}

.progress-bar::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #e10600;
    border-radius: 50%;
    transform: translate(50%, -50%);
    display: none !important;
}

.art:hover .progress-bar::after {
    display: block;
}

.art.playing {
    box-shadow:
        0 0 calc(10px + var(--glow-intensity, 0) * 40px)
        rgba(255, 0, 0, calc(0.3 + var(--glow-intensity, 0) * 0.7));
    transition: box-shadow 0.08s linear;
}

.art-front img {
    transition: filter 0.12s ease;
}


/* EFECTO TARGETA 3D */
.arts {
    perspective: 1200px;
}

.art {
    transform-style: preserve-3d;
    transition: transform 0.15s ease;
    will-change: transform;
    overflow: visible;
}

.art-front,
.art-back {
    backface-visibility: hidden;
    transform-style: preserve-3d;
}

/*.art {
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}*/

/* ILUMINACION DEL PUNTERO */

.gloss {
    position: absolute;
    inset: 0;
    border-radius: 10px;
    pointer-events: none;

    transform: translateZ(60px);

    z-index: 5;

    background:
      radial-gradient(
        circle at 50% 50%,
        rgba(255,255,255,0.45),
        rgba(255,255,255,0.15) 30%,
        transparent 65%
      );

    mix-blend-mode: screen;
    opacity: 0;
    transition: opacity 0.2s;
}


.art:hover .gloss {
    opacity: 1;
}

@media (hover: none), (pointer: coarse) {
    .gloss {
        display: none !important;
    }
}


/* PRELOADER PANTALLA */
#preloader {
    position: fixed;
    inset: 0;
    background: #0b0b0b;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

/* TAMAÑO LOGO */
.logopl {
    width: 180px;
}

@keyframes fillUp {
    to { transform: scaleY(1); }
}

.logopl-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(225,6,0,0.5), transparent 70%);
    border-radius: 50%;
    filter: blur(35px);
    animation: pulseGlow 2s ease-in-out infinite;
}

@keyframes pulseGlow {
    0%   { transform: scale(0.9); opacity: 0.5; }
    50%  { transform: scale(1.2); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.5; }
}

/* LANZAMIENTOS ANTERIORES */
.albant{
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 1;
    margin: auto;
    text-align: center;
    border-radius: 10px;
    gap: 10px;
    padding-bottom: 15px;
}

.datex {
    height: max-content;
    display: flex;
    flex-wrap: wrap;
}

.coversant {
    display: block;
    width: calc(100% - 20px);
    max-width: 450px;
    margin: 0px auto 0 auto;
    border-radius: 5px;
    z-index: 5;
}

.gloss-light {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transition: background 0.2s ease;
}

.gloss2{
    border-radius: 10px;
    z-index: 0;
}

.albpuno{
    grid-template-columns: 1fr 1fr 1fr !important;
}

.albpuno img {
  position: relative;
  z-index: 2;
}

.albpuno > *:not(.gloss-light) {
  position: relative;
  z-index: 2;
}

/* INFO */

.toggle-info {
    margin: 10px auto 0 auto;
    display: block;
    background: #242424;
    color: #fff;
    border: 1px solid #ffffff30;
    border-radius: 5px;
    padding: 6px 12px;
    font-family: Orbitron, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
}

.toggle-info:hover {
    background: #e10600;
}

/* INFO CERRADA */
.info{
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transform: translateY(-5px);
    transition:
        max-height 0.5s cubic-bezier(.22,.61,.36,1),
        opacity 0.3s ease,
        transform 0.3s ease;

    width: 90%;
    margin: 0 auto;
    color: #fff;
    font-family: Roboto, sans-serif;
    text-align: left;
    font-weight: regular;
    font-size: 12px;
    letter-spacing: 1px;
}


/* INFO ABIERTA */
.info.open {
    max-height: 1000px; /* valor grande */
    opacity: 1;
    transform: translateY(0);
}

/* BOTONES DESCARGA EN MINI ALBUMES */

.btn-ui {
    margin: 10px auto 0 auto;
    /*display: block;*/
    background: #242424;
    color: #fff;
    border: 1px solid #ffffff30;
    border-radius: 5px;
    padding: 6px 12px;
    font-family: Orbitron, sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: center;
    text-decoration: none; /* por si es <a> */
    
    display: inline-block;  /* o sacá el display:block */
    margin: 0;  
}

.btn-row {
  display: flex;
  gap: 8px;           /* espacio entre botones */
  justify-content: center; /* centrados */
  margin-top: 10px;
}


.btn-ui:hover {
    background: #e10600;
}

/* FOOTER */
.footer{
    margin-top: 10px;
    margin-bottom: 10px;
    display: grid;
    /*background-color: #2424249a;*/
    border-radius: 10px;
    /*border: #323232c0 3px solid;*/
    grid-template-columns: repeat(3, 1fr);
    padding: 10px;

}

.foot{
    margin: 0 auto;
    text-align: center;
    width: 100%;

    font-family: Orbitron, sans-serif;
    color: #fff;
    font-weight: bold;
    font-size: 12px;
    letter-spacing: 1px;

      display: flex;
    justify-content: center; /* centro horizontal */
    align-items: center;     /* centro vertical */
    text-align: center;      /* por si hay texto */
}

.icono-footer{
    margin: 0px 10px 10px 0px;
    width: 28px;
}

.social-link {
  width: 28px;
  cursor: pointer;
  transition: transform .2s ease;
}

.social-link:hover {
  transform: scale(1.1);
}

.foot a{
    color: #fff;
}
.foot a:hover{
    color: #f00;
}

/* RESPONSIVE */

@media (max-width: 1000px){
 .cont {
     width: 90%;
     max-width: auto;
 }

 .arts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    /*grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));*/
    gap: 0px; 
  }

  .albpuno{
        grid-template-columns: 1fr 1fr !important;
    }
}

@media (max-width: 850px){

 .arts {
    width: 90%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr !important;
    /*grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));*/
    gap: 0px;
    }

    .cont-mini{
        display: grid;
        width: 100% !important;
    }


}

.lant {
    background-color: #2424249a;
}



@media (max-width: 800px){

    .alba{
        aspect-ratio: 4 / 3;
    }

    .img-portada {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .cont {
        overflow-x: clip;
    }
    .footer{
        grid-template-columns: 1fr;
    }

    .foot{
        padding: 10px;
    }

    .albpuno{
        grid-template-columns: 1fr !important;
    }
    
}

@media (max-width: 600px) {
    .logopl {
        width: 140px;
    }

    .logopl-glow {
        width: 200px;
        height: 200px;
        filter: blur(25px);
    }

    .art-back {
        box-shadow: none;
    }

    .btn {
        font-size: 12px;
    }

    
}
