* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: 'Source Sans 3', sans-serif;
    background: #f8f5f0;
    color: #1a1a1a;
    line-height: 1.55;
}

.masthead {
    background: linear-gradient(135deg, #002D62, #001a3a);
    color: white;
    padding: 18px 0;
    border-bottom: 5px solid #CE1126;
}

.header-inner {
    max-width: 1280px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    gap: 20px;
}

.logo h1 {
    font-family: 'Playfair Display', serif;
    font-size: 2.6rem;
    font-weight: 900;
    letter-spacing: 2px;
    text-align: center;
}

.logo p { 
    font-size: 0.95rem; 
    opacity: 0.9; 
    text-align: center; 
}

.fecha-reloj { 
    font-size: 0.95rem; 
    min-width: 180px; 
}

.reloj-box {
    margin-top: 6px;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: 1px;
}

.edicion { 
    text-align: right; 
    font-size: 0.9rem; 
    min-width: 140px; 
}

/* TICKER / CINTA */
.ticker-wrap {
    background: #CE1126;
    color: white;
    overflow: hidden;
    white-space: nowrap;
    padding: 10px 0;
    font-weight: 600;
}

.ticker {
    display: inline-block;
    animation: scroll 35s linear infinite;
}

.ticker span {
    display: inline-block;
    padding: 0 60px;
}

@keyframes scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* LAYOUT */
.layout {
    max-width: 1280px;
    margin: 25px auto;
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 30px;
    padding: 0 20px;
}

.sidebar {
    position: sticky;
    top: 20px;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    height: fit-content;
}

.sidebar img {
    width: 100%;
    height: 340px;
    object-fit: cover;
    display: block;
}

.caption {
    background: #002D62;
    color: white;
    text-align: center;
    padding: 12px;
    font-weight: 700;
}

.credito-foto {
    font-size: 0.75rem;
    color: #666;
    text-align: center;
    padding: 8px 10px 12px;
    font-style: italic;
    line-height: 1.3;
    background: #f8f8f8;
}

.about { 
    padding: 15px; 
    font-size: 0.95rem; 
    color: #444; 
}

/* PERSONAJE */
.personaje {
    background: white;
    border-radius: 12px;
    padding: 25px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.07);
    border-top: 4px solid #CE1126;
}

.sec-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}

.sec-header h2 { 
    font-family: 'Playfair Display', serif; 
    color: #002D62; 
}

.sec-header span { 
    background: #f0f0f0; 
    padding: 5px 12px; 
    border-radius: 20px; 
    font-size: 0.85rem; 
}

.card {
    display: flex;
    gap: 25px;
    align-items: flex-start;
}

.card img {
    width: 180px;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    flex-shrink: 0;
}

.rol { 
    color: #CE1126; 
    font-weight: 600; 
    margin: 6px 0 12px; 
}

/* NOTICIAS */
.noticias h2 {
    font-family: 'Playfair Display', serif;
    color: #002D62;
    margin-bottom: 20px;
    border-bottom: 3px solid #CE1126;
    padding-bottom: 8px;
}

.principal {
    background: white;
    padding: 22px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
}

.principal h3 { 
    font-size: 1.5rem; 
    margin-bottom: 8px; 
}

.meta { 
    color: #666; 
    font-size: 0.9rem; 
    margin-bottom: 10px; 
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.grid article {
    background: white;
    padding: 18px;
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
}

.espacios-pub {
    margin-top: 35px;
}

.espacios-pub h2 {
    font-family: 'Playfair Display', serif;
    color: #002D62;
    margin-bottom: 20px;
    border-bottom: 3px solid #CE1126;
    padding-bottom: 8px;
}

.espacios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px;
}

.espacio-card {
    background: white;
    border-radius: 10px;
    padding: 16px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.05);
    text-decoration: none;
    color: inherit;
    display: block;
    min-height: 180px;
}

.espacio-card img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 10px;
}

.espacio-card h3 {
    font-size: 1.05rem;
    margin-bottom: 6px;
    color: #002D62;
}

.espacio-vacio {
    color: #999;
    text-align: center;
    padding: 40px 10px;
    font-style: italic;
}

.banner-pub {
    max-width: 1280px;
    margin: 10px auto 0;
    padding: 0 20px 10px;
}

.banner-inner {
    display: flex;
    gap: 20px;
    align-items: center;
    background: white;
    border-radius: 12px;
    padding: 18px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.06);
    border-left: 6px solid #CE1126;
    text-decoration: none;
    color: inherit;
}

.banner-inner img {
    width: 220px;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    flex-shrink: 0;
}

.banner-texto h3 {
    color: #002D62;
    margin-bottom: 6px;
}

@media (max-width: 700px) {
    .banner-inner {
        flex-direction: column;
        text-align: center;
    }
    .banner-inner img {
        width: 100%;
        height: 160px;
    }
}

footer {
    background: #001a3a;
    color: #ccc;
    text-align: center;
    padding: 30px 20px;
    margin-top: 50px;
    font-size: 0.95rem;
}

footer p { margin: 6px 0; }

@media (max-width: 900px) {
    .layout { grid-template-columns: 1fr; }
    .sidebar { position: static; max-width: 400px; margin: 0 auto; }
    .header-inner { flex-direction: column; text-align: center; }
    .card { flex-direction: column; align-items: center; text-align: center; }
    .logo h1 { font-size: 2rem; }
}
