:root {
    --brand-primary: #6d28d9;
    --brand-primary-dark: #5b21b6;
    --brand-accent: #f59e0b;
    --brand-bg: #f5f3ff;
}

body {
    background-color: var(--brand-bg);
    min-height: 100vh;
}

.navbar-brand img {
    height: 40px;
    width: auto;
    margin-right: 8px;
    object-fit: contain;
    flex-shrink: 0;
}
.navbar .container-fluid {
    flex-wrap: nowrap;
    gap: .5rem;
}
.navbar-brand {
    white-space: normal;
    overflow-wrap: anywhere;
    min-width: 0;
    flex: 1 1 auto;
}
.navbar-brand span:not(#navbar-logo):not(.navbar-logo) {
    min-width: 0;
    overflow-wrap: anywhere;
}
@media (max-width: 575.98px) {
    .navbar-brand {
        font-size: .95rem;
        line-height: 1.2;
    }
    .navbar-brand img {
        height: 32px;
    }
}

.btn-primary {
    background-color: var(--brand-primary);
    border-color: var(--brand-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--brand-primary-dark);
    border-color: var(--brand-primary-dark);
}
.text-brand { color: var(--brand-primary); }
.bg-brand { background-color: var(--brand-primary); }

.nav-tabs .nav-link.active {
    color: var(--brand-primary);
    font-weight: 600;
    border-bottom: 3px solid var(--brand-primary);
}

/* ---- Fotos circulares uniformes (150x150 origen) ---- */
.foto-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #fff;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08);
}
.foto-avatar-lg {
    width: 150px;
    height: 150px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,.15);
}
.foto-avatar-preview {
    width: 100px;
    height: 100px;
    border-radius: .5rem;
    object-fit: cover;
    border: 1px solid #dee2e6;
}

/* ---- Landing / home ---- */
.pagina-inicio {
    min-height: 100vh;
    position: relative;
    background-image: url('../img/fondo/fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 2rem 1rem;
}
.inicio-overlay {
    position: fixed;
    inset: 0;
    background: linear-gradient(160deg, rgba(109,40,217,.55), rgba(15,23,42,.55) 55%, rgba(245,158,11,.35));
    z-index: 1;
}
.titulo-festivo {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 2rem;
    background: linear-gradient(90deg, #6d28d9, #db2777 45%, #f59e0b);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}
.hero-card {
    border: none;
    border-radius: 1.25rem;
    box-shadow: 0 20px 45px rgba(15,23,42,.35);
}
.hero-card--glass {
    background: rgba(255,255,255,.88);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,.6);
}
.hero-logo {
    max-height: 110px;
    max-width: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0,0,0,.15));
}
.opcion-card {
    border: none;
    border-radius: 1rem;
    border-top: 4px solid transparent;
    transition: transform .15s ease, box-shadow .15s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    background: #fff;
}
.opcion-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 14px 28px rgba(0,0,0,.16);
}
.opcion-icono {
    font-size: 2.75rem;
}
.opcion-icono-circulo {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
    color: #fff;
}
.opcion-card--votar { border-top-color: #7c3aed; }
.opcion-icono--votar { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }

.opcion-card--resultados { border-top-color: #0891b2; }
.opcion-icono--resultados { background: linear-gradient(135deg, #22d3ee, #0891b2); }

.opcion-card--config { border-top-color: #f59e0b; }
.opcion-icono--config { background: linear-gradient(135deg, #fbbf24, #ea580c); }

/* ---- Barra de contexto (jurado/modalidad actual + botones de cambio) ---- */
.contexto-bar {
    background: #fff;
    border-radius: .9rem;
    padding: .75rem;
    box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.btn-cambiar {
    font-weight: 600;
    border-radius: .7rem;
    padding: .6rem 1.1rem;
    border: none;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,.12);
    flex: 1 1 auto;
}
.btn-cambiar-jurado {
    background-color: #f59e0b;
}
.btn-cambiar-jurado:hover, .btn-cambiar-jurado:focus {
    background-color: #d97706;
    color: #fff;
}
.btn-cambiar-modalidad {
    background-color: #0ea5e9;
}
.btn-cambiar-modalidad:hover, .btn-cambiar-modalidad:focus {
    background-color: #0284c7;
    color: #fff;
}
@media (max-width: 575.98px) {
    .btn-cambiar { width: 100%; }
}

/* ---- Selección de jurado / modalidad (botones grandes táctiles) ---- */
.seleccion-btn {
    border: 2px solid #e5e0fa;
    border-radius: .9rem;
    background: #fff;
    padding: 1rem;
    text-align: center;
    width: 100%;
    transition: all .15s ease;
}
.seleccion-btn:hover, .seleccion-btn.activo {
    border-color: var(--brand-primary);
    background: #f3effe;
}

/* ---- Tarjeta de participante para votar ---- */
.participante-card {
    border: none;
    border-radius: 1rem;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
}
.participante-card.votado {
    box-shadow: 0 0 0 3px #22c55e, 0 4px 16px rgba(0,0,0,.08);
}
.badge-votado {
    background-color: #22c55e;
}

/* ---- Criterio slider ---- */
.criterio-bloque {
    background: #faf9ff;
    border-radius: .75rem;
    padding: .9rem 1rem;
    margin-bottom: .75rem;
}
.criterio-puntaje {
    font-weight: 700;
    font-size: 1.4rem;
    color: var(--brand-primary);
    min-width: 3.2rem;
    text-align: center;
}

/* ---- Resultados ---- */
.podio-1 { border-left: 6px solid #eab308; }
.podio-2 { border-left: 6px solid #94a3b8; }
.podio-3 { border-left: 6px solid #b45309; }

.table-responsive-cards .card { border-radius: .75rem; }

@media (max-width: 575.98px) {
    .opcion-icono { font-size: 2.25rem; }
    .criterio-puntaje { font-size: 1.2rem; }
}
