/* =========================================
   1. Variables Globales y Configuración
   ========================================= */
:root {
    --peru-red: #D91023;       /* Rojo Bandera */
    --peru-red-dark: #b90e1e;  /* Rojo Oscuro para hover */
    --dark-gray: #1a1a1a;      /* Texto principal */
    --light-gray: #f8fafc;     /* Fondo general */
    --border-color: #e2e8f0;
}

/* =========================================
   2. Tipografía
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700;800&family=Roboto:wght@300;400;500&display=swap');

body {
    font-family: 'Roboto', sans-serif;
    background-color: var(--light-gray);
    color: #333;
    line-height: 1.6;
}

/* Encabezados con fuente Montserrat (Marca) */
h1, h2, h3, h4, h5, h6, .brand-font {
    font-family: 'Montserrat', sans-serif;
}

/* =========================================
   3. Utilidades Personalizadas
   ========================================= */
.text-peru { color: var(--peru-red); }
.bg-peru { background-color: var(--peru-red); }
.border-peru { border-color: var(--peru-red); }

.hover\:text-peru:hover { color: var(--peru-red); }
.hover\:bg-peru:hover { background-color: var(--peru-red); }

/* =========================================
   4. Componentes de Sondeos (Polls)
   ========================================= */

/* Contenedor de la barra gris de fondo */
.poll-bar-container {
    background: #e2e8f0;
    border-radius: 4px;
    overflow: hidden;
    height: 100%; /* Se adapta al contenedor padre */
    min-height: 8px;
}

/* Barra de relleno (progreso) */
.poll-bar-fill {
    height: 100%;
    background-color: var(--peru-red);
    width: 0%; /* Inicia en 0 para la animación JS */
    transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Botón de Votar (Transiciones suaves) */
.vote-btn {
    transition: all 0.2s ease-in-out;
}
.vote-btn:active {
    transform: scale(0.98);
}

/* Tarjetas de Sondeos */
.poll-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.poll-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

/* =========================================
   5. Publicidad (AdSense Placeholders)
   ========================================= */
.ad-slot {
    background-color: #f1f5f9;
    border: 2px dashed #cbd5e1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 0.85rem;
    font-weight: 500;
    overflow: hidden;
    border-radius: 0.5rem;
    position: relative;
}

/* Etiqueta "Publicidad" */
.ad-slot::after {
    content: 'Publicidad';
    position: absolute;
    bottom: 5px;
    right: 5px;
    font-size: 0.6rem;
    background: rgba(255,255,255,0.8);
    padding: 2px 4px;
    border-radius: 2px;
}

/* =========================================
   6. Alertas y Avisos Legales
   ========================================= */
.alert-referencial {
    background-color: #fffbeb; /* yellow-50 */
    border-left: 4px solid #f59e0b; /* yellow-500 */
    color: #92400e; /* yellow-800 */
    padding: 1rem;
    font-size: 0.875rem;
}