/* ============================================================
   PUNTO CHIVILCOY — Sistema de Diseño Unificado 2026
   Archivo: estilo-portal.css
   ============================================================ */

/* ---------- VARIABLES CSS SISTEMA ---------- */
:root {
    /* Colores corporativos y temáticos */
    --primary-color: #1e3a8a;       /* Azul Corporativo */
    --primary-dark: #0f172a;
    --primary-light: #e0f2fe;

    --secondary-color: #0d9488;     /* Verde Gestión / Tecla */
    --secondary-dark: #0f766e;
    --secondary-light: #ccfbf1;

    --accent-color: #dc2626;        /* Rojo Emergencias */
    --accent-dark: #b91c1c;
    --accent-light: #fee2e2;

    --warning-color: #d97706;       /* Ámbar Alertas / Turnos */
    --warning-dark: #b45309;
    --warning-light: #fef3c7;

    /* Neutros y Fondos */
    --card-bg: #ffffff;
    --text-dark: #1e293b;
    --color-bg: #f4f6f8;
    --color-surface: #ffffff;
    --color-surface-hover: #f1f5f9;
    --color-border: #e2e8f0;
    --color-border-light: #f8fafc;

    --color-text: #0f172a;
    --color-text-secondary: #475569;
    --color-text-muted: #94a3b8;

    /* Sombras Elevadas y Glow */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-glow-primary: 0 4px 14px rgba(30,58,138,0.25);
    --shadow-glow-danger: 0 4px 14px rgba(220,38,38,0.25);

    /* Radios Bordes */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;

    /* Espaciado */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Tipografía */
    --font-body: 'Inter', system-ui, -apple-system, sans-serif;
    --font-display: 'Playfair Display', Georgia, serif;
}

/* ---------- RESET Y BASE ---------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text-dark);
    background-color: var(--color-bg);
    line-height: 1.6;
    min-height: 100vh;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ==========================================
   BANNER DINÁMICO DE NOVEDADES (RESPECTADO SIN CAMBIOS)
   ========================================== */
.banner-alerta {
    background-color: #fef3c7; /* Color amarillo/crema suave, no agresivo */
    border-bottom: 1px solid #fde68a;
    padding: 10px 20px;
    animation: fadeIn 0.5s ease-out;
}

.banner-contenido {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
    font-size: 14px;
    color: #92400e; /* Texto marrón oscuro para buen contraste */
    font-weight: 500;
    text-align: center;
}

.banner-contenido a {
    color: var(--color-principal, var(--primary-color));
    text-decoration: underline;
    font-weight: 600;
}

.banner-contenido a:hover {
    color: var(--color-secundario, var(--secondary-color));
}

.banner-icono {
    font-size: 16px;
}

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

/* Ajuste para celulares */
@media (max-width: 768px) {
    .banner-contenido {
        flex-direction: column;
        gap: 5px;
    }
}

/* ---------- ENCABEZADO ESTILO PERIÓDICO ---------- */
.newspaper-header {
    background-color: #ffffff;
    border-bottom: 4px double var(--primary-color);
    text-align: center;
    padding: 28px 15px;
}

/* ---------- GRID DE PERIÓDICO / LAYOUT ---------- */
.newspaper-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-6);
}

@media (min-width: 992px) {
    .newspaper-grid {
        grid-template-columns: 2.2fr 1fr;
        gap: var(--space-8);
    }
}

/* ---------- MÓDULOS Y TARJETAS DENTRO DEL PORTAL ---------- */
.news-module {
    background: var(--card-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    box-shadow: var(--shadow-md);
    margin-bottom: var(--space-6);
    transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.news-module:hover {
    box-shadow: var(--shadow-lg);
}

.news-module:last-child {
    margin-bottom: 0;
}

/* Títulos de módulos con estilo periódico rediseñado */
.module-heading {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--primary-color);
    border-bottom: 3px solid var(--primary-color);
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-5);
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* ---------- ITEMS LIMPIOS Y TARJETAS ---------- */
.item-card-clean {
    border-bottom: 1px dashed var(--color-border);
    padding-bottom: 18px;
    padding-top: 6px;
    transition: all 0.2s ease;
}

.item-card-clean:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

/* Tarjetas de barra lateral (Remises, Urgencias) */
.sidebar-card-accent {
    background: var(--color-surface-hover);
    border-left: 4px solid var(--secondary-color);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    padding: 14px;
    transition: all 0.2s ease;
}

.sidebar-card-accent:hover {
    transform: translateX(3px);
    background: #e2e8f0;
}

.urgente-card {
    border-left-color: var(--accent-color);
    background: #fef2f2;
}

.urgente-card:hover {
    background: #fee2e2;
}

.farmacia-card-mini {
    border-left: 4px solid var(--secondary-color);
    background: #f0fdfa;
    padding: 10px;
    border-radius: var(--radius-sm);
    transition: all 0.2s ease;
}

.farmacia-card-mini:hover {
    background: #ccfbf1;
}

/* ---------- BOTONES Y ENLACES DEL PORTAL ---------- */
.btn-newspaper {
    display: inline-flex;
    align-items: center;
    font-weight: 700;
    font-size: 0.85rem;
    color: var(--secondary-color);
    margin-top: 12px;
    transition: color 0.2s, gap 0.2s;
}

.btn-newspaper:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.btn-direct-call {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-weight: 800;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: var(--radius-sm);
    text-decoration: none !important;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    transition: all 0.2s ease;
}

.btn-direct-call:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-sm);
}

/* Pills de Marca / Logística */
.brand-pill {
    background-color: var(--color-border-light);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: 12px;
    font-weight: 700;
    font-size: 0.9rem;
    text-align: center;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    width: 100%;
    transition: all 0.2s ease;
}

.brand-pill:hover {
    border-color: var(--secondary-color);
    box-shadow: var(--shadow-sm);
}

/* ==========================================
   ACORDEÓN FAQ DE PREGUNTAS FRECUENTES (RESPECTADO SIN CAMBIOS)
   ========================================== */
.faq-accordion details summary {
    cursor: pointer;
    outline: none;
    list-style: none;
}

.faq-accordion details summary::-webkit-details-marker {
    display: none;
}

/* ---------- OPTIMIZACIÓN TÁCTIL Y MÓVIL ---------- */
a, button, [role="button"], .sidebar-card-accent, .item-card-clean {
    position: relative;
    z-index: 10;
    -webkit-tap-highlight-color: rgba(0, 0, 0, 0.1);
    touch-action: manipulation;
}

.sticky-header-container {
    pointer-events: none;
}

.sticky-header-container > * {
    pointer-events: auto;
}

/* ---------- PERSONALIZACIÓN DE SCROLLBAR ---------- */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--color-bg);
}

::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}