/* Fuentes editoriales de alta gama */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@700;900&family=Inter:wght@400;500;600;800&display=swap');

:root {
    --csg-blue: #0066CC;
    --csg-red: #CC0000;
    --csg-yellow: #FFD700;
    --csg-dark: #1a1a1a;
    --font-header: 'Playfair Display', serif;
    --font-body: 'Inter', sans-serif;
}

body {
    font-family: var(--font-body);
    background-color: #fdfdfd;
    color: var(--csg-dark);
}

/* --- HEADER AZUL INSTITUCIONAL --- */
.topbar-csg {
    background-color: var(--csg-blue) !important;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-bottom: 3px solid var(--csg-yellow);
}

.motto-csg {
    color: var(--csg-yellow) !important;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    font-size: 0.8rem;
}

/* --- TICKER / AVISO LUMINOSO --- */
.ticker-wrap {
    width: 100%;
    overflow: hidden;
    background-color: var(--csg-yellow);
    border-bottom: 2px solid var(--csg-blue);
    white-space: nowrap;
    position: relative;
    z-index: 100;
}

.ticker-label {
    display: inline-block;
    background: var(--csg-blue);
    color: white;
    padding: 10px 25px;
    font-weight: 800;
    position: absolute;
    left: 0; top: 0; z-index: 110;
    text-transform: uppercase;
    font-size: 0.85rem;
}

.ticker-move {
    display: inline-block;
    white-space: nowrap;
    padding-left: 100%;
    animation: ticker-animation 40s linear infinite;
}

.ticker-item {
    display: inline-block;
    padding: 10px 40px;
    color: var(--csg-blue);
    font-weight: 700;
    font-size: 0.95rem;
}

@keyframes ticker-animation {
    0% { transform: translate3d(0, 0, 0); }
    100% { transform: translate3d(-100%, 0, 0); }
}

.ticker-wrap:hover .ticker-move { animation-play-state: paused; }

/* --- HERO CAROUSEL (EFECTO ZOOM) --- */
.hero-carousel {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.3);
}

.hero-carousel img {
    height: 600px;
    object-fit: cover;
    filter: brightness(0.7);
    transition: transform 12s linear;
}

.carousel-item.active img { transform: scale(1.2); }

.hero-overlay {
    background: linear-gradient(to top, rgba(0, 50, 100, 0.95) 0%, rgba(0,0,0,0.2) 70%, transparent 100%);
    padding: 60px !important;
}

.hero-overlay h2 {
    font-family: var(--font-header);
    font-size: 3.5rem;
    font-weight: 900;
    line-height: 1.1;
}

/* --- TARJETAS PREMIUM (ACCESOS RÁPIDOS) --- */
.quick-card {
    background: #ffffff;
    border-radius: 20px;
    text-decoration: none;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    border: 1px solid rgba(0,0,0,0.05);
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.quick-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; width: 100%; height: 6px;
    background: var(--csg-blue);
}

.quick-card.card-red::before { background: var(--csg-red); }
.quick-card.card-yellow::before { background: var(--csg-yellow); }

.quick-card i {
    font-size: 3rem;
    margin-bottom: 15px;
    background: linear-gradient(45deg, var(--csg-blue), var(--csg-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.quick-card span {
    font-family: var(--font-header);
    font-weight: 800;
    color: var(--csg-dark);
    font-size: 1.1rem;
    text-transform: uppercase;
}

.quick-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

/* Grilla móvil */
@media (max-width: 991px) {
    .quick-grid-mobile {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 15px;
        padding: 10px;
    }
    .quick-card { padding: 20px 10px; }
    .quick-card i { font-size: 2.2rem; }
    .quick-card span { font-size: 0.9rem; }
}

/* --- NOTICIAS Y SECCIONES --- */
.section-title {
    font-family: var(--font-header);
    font-weight: 900;
    font-size: 2.3rem;
    border-bottom: 5px solid var(--csg-blue);
    display: inline-block;
    padding-bottom: 5px;
    margin-bottom: 40px;
}

.card-news { border-bottom: 1px solid #eee; padding-bottom: 30px; margin-bottom: 30px; }
.category-tag { color: var(--csg-red); font-weight: 800; text-transform: uppercase; letter-spacing: 1.2px; font-size: 0.75rem; }

@media (max-width: 768px) {
    .hero-overlay h2 { font-size: 2.2rem !important; }
    .hero-carousel img { height: 450px; }
}