/* ============================================
   ARMA EL SETLIST DE SERBIA
   Class Music – Identidad visual oficial
   Estética: punk editorial · oscuro · neón ácido
============================================ */

/* ---- Variables ---- */
:root {
    --sr-black:      #0a0a0a;
    --sr-dark:       #111111;
    --sr-card:       #161616;
    --sr-border:     #2a2a2a;
    --sr-red:        #c7ea4d;/*e81c2e*/
    --sr-red-glow:   rgba(199, 234, 77, 0.25);
    --sr-white:      #FFFFFF;
    --sr-grey:       #FFFFFF;
    --sr-grey-light: #FFFFFF;
    --sr-font-title: 'Bebas Neue', sans-serif;
    --sr-font-body:  'DM Sans', sans-serif;
    --sr-radius:     4px;
    --sr-transition: 0.22s ease;
}

@font-face {
    font-family: 'Cubano'; /* El nombre que usar��s en CSS */
    src: url('../fonts/Cubano.ttf') format('truetype'); /* Ruta al archivo y formato */
    font-weight: normal; /* Opcional, define el grosor por defecto */
    font-style: normal;  /* Opcional, define el estilo por defecto */
    font-display: swap;   /* Muestra una fuente del sistema mientras carga Cubano */
}

@font-face {
    font-family: 'Super Funnel'; /* El nombre que usarás en CSS */
    src: url('../fonts/Super Funnel.ttf') format('truetype'); /* Ruta al archivo y formato */
    font-weight: 100;    /* Ajustado a grosor delgado (Thin/Hairline) */
    font-style: normal;  /* Opcional, define el estilo por defecto */
    font-display: swap;  /* Muestra una fuente del sistema mientras carga la fuente */
}

/* ---- Reset base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--sr-black);
    color: var(--sr-white);
    font-family: var(--sr-font-body);
    font-size: 16px;
    line-height: 1.6;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Grain overlay global */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
    pointer-events: none;
    z-index: 9999;
    opacity: 0.4;
}

/* ============================================
   HEADER
============================================ */
.sr-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(10, 10, 10, 0.92);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--sr-border);
    padding: 12px 0;
}
.sr-header__inner {
    max-width: 1140px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.sr-logo { text-decoration: none; }
.sr-logo__text {
    font-family: 'Super Funnel';
    font-size: 1.4rem;
    letter-spacing: 0.12em;
    color: var(--sr-white);
    transition: color var(--sr-transition);
}
.sr-logo:hover .sr-logo__text { color: var(--sr-red); }

.sr-header__band {
    font-family: var(--sr-font-title);
    font-size: 1rem;
    letter-spacing: 0.3em;
    color: var(--sr-red);
    opacity: 0.8;
}

/* ============================================
   HERO BANNER
============================================ */
.sr-hero {
    position: relative;
    min-height: 340px;
    display: flex;
    align-items: flex-end;
    border-bottom: 1px solid var(--sr-border);
    overflow: hidden;
    padding: 60px 0 40px;
}

/* El contenedor del fondo y el overlay transparente */
/*.sr-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagenes/background.jpg') no-repeat center center / cover;
    opacity: 0.3; 
    z-index: 1; 
}*/
.sr-hero::after {
    content: 'SERBIA';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--sr-font-title);
    font-size: clamp(6rem, 20vw, 16rem);
    color: rgba(199, 234, 77, 0.04);
    letter-spacing: -0.02em;
    white-space: nowrap;
    pointer-events: none;
    user-select: none;
}

.sr-hero__content {
    position: relative;
    z-index: 2;
    max-width: 1140px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.sr-hero__eyebrow {
    font-family: var(--sr-font-body);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--sr-red);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.sr-hero__eyebrow::before {
    content: '';
    display: block;
    width: 32px;
    height: 1px;
    background: var(--sr-red);
}

.sr-hero__title {
    font-family: var(--sr-font-title);
    font-size: clamp(2.8rem, 8vw, 6rem);
    line-height: 0.92;
    letter-spacing: -0.01em;
    color: var(--sr-white);
    margin-bottom: 16px;
}
.sr-hero__title span { color: var(--sr-red); }

.sr-hero__sub {
    font-size: 1rem;
    color: var(--sr-grey);
    max-width: 480px;
    line-height: 1.5;
}

/* ============================================
   MAIN CONTENT
============================================ */
#sr-main {
    max-width: 1140px;
    margin: 0 auto;
    padding: 40px 20px 80px;
}

/* ============================================
   CARDS / SECTIONS
============================================ */
.sr-card {
    background: var(--sr-card);
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius);
    padding: 28px;
    margin-bottom: 24px;
}
.sr-card--highlight {
    border-color: var(--sr-red);
    box-shadow: 0 0 24px var(--sr-red-glow);
}

.sr-section-title {
    font-family: var(--sr-font-title);
    font-size: 1.6rem;
    letter-spacing: 0.06em;
    color: var(--sr-white);
    margin-bottom: 4px;
}
.sr-section-sub {
    font-size: 0.85rem;
    color: var(--sr-grey);
    margin-bottom: 20px;
}

/* ============================================
   FORM DATOS FAN
============================================ */
.sr-form-label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sr-grey);
    margin-bottom: 6px;
    display: block;
}
.sr-form-control {
    width: 100%;
    background: #1c1c1c;
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius);
    color: var(--sr-white);
    padding: 12px 14px;
    font-family: var(--sr-font-body);
    font-size: 0.95rem;
    outline: none;
    transition: border-color var(--sr-transition), box-shadow var(--sr-transition);
    -webkit-appearance: none;
}
.sr-form-control:focus {
    border-color: var(--sr-red);
    box-shadow: 0 0 0 3px var(--sr-red-glow);
}
.sr-form-control::placeholder { color: #919191; }
.sr-form-control option { background: #1c1c1c; color: var(--sr-white); }
/* Fuerza el color gris #919191 cuando el select tiene el valor vacío por defecto */
  .form-select-placeholder {
    color: #919191 !important;
  }
/* ============================================
   CONTADOR DE CANCIONES
============================================ */
.sr-counter {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
    padding: 12px 16px;
    background: #1c1c1c;
    border: 1px solid var(--sr-border);
    border-radius: var(--sr-radius);
}
.sr-counter__label {
    font-size: 0.8rem;
    color: var(--sr-grey);
}
.sr-counter__num {
    font-family: var(--sr-font-title);
    font-size: 1.3rem;
    color: var(--sr-white);
    transition: color var(--sr-transition);
}
.sr-counter__num.sr-counter--max { color: var(--sr-red); }
.sr-counter__bar-wrap {
    flex: 1;
    height: 3px;
    background: var(--sr-border);
    border-radius: 2px;
    margin: 0 16px;
    overflow: hidden;
}
.sr-counter__bar {
    height: 100%;
    background: var(--sr-red);
    border-radius: 2px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 8px var(--sr-red);
}

/* ============================================
   LISTA DE CANCIONES
============================================ */
.sr-songs {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.sr-song-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    background: #1a1a1a;
    border: 1px solid transparent;
    border-radius: var(--sr-radius);
    cursor: pointer;
    transition: border-color var(--sr-transition), background var(--sr-transition), box-shadow var(--sr-transition);
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.sr-song-item:hover {
    border-color: var(--sr-border);
    background: #202020;
}
.sr-song-item.sr-song--selected {
    border-color: var(--sr-red);
    background: rgba(232, 28, 46, 0.07);
    box-shadow: 0 0 12px rgba(232, 28, 46, 0.12);
}
.sr-song-item.sr-song--disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Checkbox visual */
.sr-song__check {
    width: 20px;
    height: 20px;
    min-width: 20px;
    border: 1.5px solid var(--sr-grey-light);
    border-radius: 3px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color var(--sr-transition), background var(--sr-transition);
    color: transparent;
    font-size: 0.7rem;
}
.sr-song-item.sr-song--selected .sr-song__check {
    background: var(--sr-red);
    border-color: var(--sr-red);
    color: #fff;
}

.sr-song__name {
    font-size: 0.95rem;
    font-weight: 400;
    color: var(--sr-white);
    flex: 1;
    transition: color var(--sr-transition);
}
.sr-song-item.sr-song--selected .sr-song__name {
    color: #fff;
    font-weight: 500;
}

.sr-song__num {
    font-family: var(--sr-font-title);
    font-size: 0.8rem;
    color: var(--sr-grey-light);
    min-width: 24px;
    text-align: right;
}

/* ============================================
   BOTÓN PRINCIPAL
============================================ */
.sr-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-family: var(--sr-font-title);
    font-size: 1.1rem;
    letter-spacing: 0.1em;
    padding: 14px 32px;
    border: none;
    border-radius: var(--sr-radius);
    cursor: pointer;
    transition: all var(--sr-transition);
    text-decoration: none;
    white-space: nowrap;
}
.sr-btn--primary {
    background: var(--sr-red);
    color: #208281;
    box-shadow: 0 4px 20px var(--sr-red-glow);
}
.sr-btn--primary:hover {
    background: #208281;
    box-shadow: 0 4px 28px rgba(232, 28, 46, 0.45);
    transform: translateY(-1px);
    color: #fff;
}
.sr-btn--primary:active { transform: translateY(0); }
.sr-btn--outline {
    background: transparent;
    color: var(--sr-white);
    border: 1px solid var(--sr-border);
}
.sr-btn--outline:hover {
    border-color: var(--sr-red);
    color: var(--sr-red);
}
.sr-btn--full { width: 100%; }
.sr-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.sr-btn--outline-Boletos {
    background: transparent;
    color: #c7ea4d;
    border: 1px solid #c7ea4d;
}
.sr-btn--outline-Boletos:hover {
    background: #c7ea4d;
    border-color: #c7ea4d;
    color: #000000;
}

/* ============================================
   RESULTADOS – TOP 34
============================================ */
.sr-results-header {
    text-align: center;
    padding: 32px 20px 24px;
    border-bottom: 1px solid var(--sr-border);
    margin-bottom: 24px;
}
.sr-results-header__icon {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
    animation: sr-pulse 2s ease-in-out infinite;
}
@keyframes sr-pulse {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.6; }
}
.sr-results-header__title {
    font-family: var(--sr-font-title);
    font-size: clamp(1.6rem, 5vw, 2.8rem);
    color: var(--sr-white);
    margin-bottom: 8px;
}
.sr-results-header__msg {
    font-size: 0.9rem;
    color: var(--sr-grey);
    max-width: 480px;
    margin: 0 auto;
    line-height: 1.55;
}

/* Ranking lista */
.sr-rank-list { list-style: none; }

.sr-rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid rgba(42, 42, 42, 0.6);
    animation: sr-fadeIn 0.4s ease both;
}
.sr-rank-item:last-child { border-bottom: none; }

@keyframes sr-fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

.sr-rank__pos {
    font-family: var(--sr-font-title);
    font-size: 1rem;
    color: var(--sr-grey-light);
    min-width: 28px;
    text-align: center;
}
.sr-rank-item:nth-child(1) .sr-rank__pos { color: #FFD700; font-size: 1.1rem; }
.sr-rank-item:nth-child(2) .sr-rank__pos { color: #C0C0C0; }
.sr-rank-item:nth-child(3) .sr-rank__pos { color: #cd7f32; }

.sr-rank__info { flex: 1; min-width: 0; }
.sr-rank__name {
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--sr-white);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sr-rank__bar-wrap {
    height: 4px;
    background: var(--sr-border);
    border-radius: 2px;
    margin-top: 5px;
    overflow: hidden;
}
.sr-rank__bar {
    height: 100%;
    background: linear-gradient(90deg, var(--sr-red), #ff5555);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--sr-red-glow);
    transition: width 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.sr-rank__pct {
    font-family: var(--sr-font-title);
    font-size: 0.95rem;
    color: var(--sr-grey);
    min-width: 38px;
    text-align: right;
}

/* ============================================
   COMPARTIR
============================================ */
.sr-share {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-top: 24px;
}
.sr-share__btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 9px 18px;
    border-radius: var(--sr-radius);
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    border: none;
    cursor: pointer;
    transition: filter var(--sr-transition), transform var(--sr-transition);
}
.sr-share__btn:hover { filter: brightness(1.15); transform: translateY(-1px); }
.sr-share__btn--wa   { background: #25d366; color: #fff; }
.sr-share__btn--tw   { background: #1d1d1d; color: #fff; border: 1px solid #333; }
.sr-share__btn--fb   { background: #1877f2; color: #fff; }
.sr-share__btn--copy { background: var(--sr-card); color: var(--sr-white); border: 1px solid var(--sr-border); }

/* ============================================
   ENCUESTA CERRADA / 404
============================================ */
.sr-closed {
    text-align: center;
    padding: 80px 20px;
}
.sr-closed__icon {
    font-size: 3rem;
    margin-bottom: 16px;
    opacity: 0.5;
}
.sr-closed__title {
    font-family: var(--sr-font-title);
    font-size: 2rem;
    margin-bottom: 8px;
}
.sr-closed__msg { color: var(--sr-grey); max-width: 400px; margin: 0 auto; }

/* ============================================
   DIVIDER DECORATIVO
============================================ */
.sr-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 28px 0;
    color: var(--sr-grey-light);
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}
.sr-divider::before, .sr-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--sr-border);
}

/* ============================================
   BADGE LIVE
============================================ */
.sr-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--sr-red);
    padding: 4px 10px;
    border: 1px solid var(--sr-red);
    border-radius: 2px;
}
.sr-live-badge__dot {
    width: 5px;
    height: 5px;
    background: var(--sr-red);
    border-radius: 50%;
    animation: sr-blink 1.2s ease infinite;
}
@keyframes sr-blink {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.1; }
}

/* ============================================
   FOOTER
============================================ */
.sr-footer {
    background: var(--sr-dark);
    border-top: 1px solid var(--sr-border);
    padding: 32px 20px;
    margin-top: 60px;
}
.sr-footer__text {
    font-size: 0.75rem;
    color: var(--sr-grey-light);
    margin-bottom: 8px;
}
.sr-footer__privacy {
    font-size: 0.7rem;
    color: #444;
    max-width: 560px;
    margin: 0 auto;
    line-height: 1.55;
}

/* ============================================
   LOADING SPINNER
============================================ */
.sr-spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255,255,255,0.2);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sr-spin 0.6s linear infinite;
}
@keyframes sr-spin {
    to { transform: rotate(360deg); }
}

/* ============================================
   RECAPTCHA
============================================ */
.g-recaptcha { margin: 16px 0; }

/* ============================================
   RESPONSIVE
============================================ */
@media (min-width: 768px) {
    .sr-songs {
        grid-template-columns: 1fr 1fr;
    }
    #sr-main { padding: 48px 20px 100px; }
}

@media (max-width: 576px) {
    .sr-card { padding: 20px 16px; }
    .sr-hero { padding: 48px 0 32px; }
    .sr-share { gap: 8px; }
    .sr-share__btn { font-size: 0.8rem; padding: 8px 14px; }
}


.btn-privacidad {
    background: none !important;       /* Quita el fondo blanco */
    border: none !important;           /* Quita el borde negro */
    padding: 0 !important;             /* Quita rellenos internos */
    box-shadow: none !important;       /* Elimina cualquier sombra de enfoque */
    
    /* Elige el color que mejor contraste con tu fondo oscuro */
    color: #c7ea4d !important;         /* Un azul clásico de enlace, o usa el color de tu marca */
    text-decoration: underline;        /* Subrayado opcional para que se entienda que es cliqueable */
    cursor: pointer;
}

/* Cambiar el color al pasar el mouse por encima */
.btn-privacidad:hover {
    color: #208281 !important;
    text-decoration: none;
}
