/* assets/css/style.css */

/* Importar Bootstrap 5 desde CDN en el HTML, aquí override */

:root {
    --primary-color: #7f1d1c;
    /* Specific Red requested */
    --ochre-faint: #F9EBEB;
    /* Very light red for buttons */
    --ochre-footer: #FDF7F7;
    /* Very light red for footer */
    --text-dark: #333333;
    --bg-light: #f8f9fa;
}

/* Force Bootstrap bg-primary to use our custom color (Social Bar) */
.bg-primary {
    background-color: var(--primary-color) !important;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-light);
    color: var(--text-dark);
}

/* Header & Banner */
.header-banner {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-bottom: 5px solid var(--primary-color);
}

/* Navbar Personalizado */
.navbar-custom {
    background-color: #fff;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    padding: 0.8rem 1rem;
}

.nav-link {
    font-weight: 600;
    color: #5d4d35 !important;
    /* Brownish text for contrast */
    background-color: var(--ochre-faint);
    /* Ocre Tenue Default */
    padding: 0.5rem 1rem !important;
    border-radius: 5px;
    transition: all 0.3s ease;
    margin: 0 4px;
    /* Increased spacing slightly */
    display: flex;
    align-items: center;
    gap: 0;
    /* "sin separación" requested, but browser adds space for icon. We handle via html or here. Flex gap 0 is safest. */
}

/* Remove default space from icon if any */
.nav-link i {
    margin-right: 5px;
    /* "Separación normal" requested in clarification */
}

.nav-link:hover,
.nav-link.active {
    color: #fff !important;
    background-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* Social Icons in Header */
.social-link {
    color: rgba(255, 255, 255, 0.8);
    transition: color 0.3s, transform 0.3s;
    margin-left: 10px;
}

.social-link:hover {
    color: #fff;
    transform: scale(1.1);
}

/* Tarjetas de Noticias */
.card-news {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    border-radius: 10px;
    overflow: hidden;
}

.card-news:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.card-news img {
    height: 200px;
    object-fit: cover;
}

.date-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(255, 255, 255, 0.9);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

/* Footer */
footer {
    background-color: var(--ochre-footer);
    color: #5d4d35;
    /* Dark text for contrast */
    padding-top: 40px;
    border-top: 1px solid #e0d8c3;
}

footer h5 {
    color: var(--primary-color);
    font-weight: bold;
    margin-bottom: 20px;
}

footer a {
    color: #5d4d35;
    text-decoration: none;
}

footer a:hover {
    color: var(--primary-color);
}

/* Marcos Elegantes para Contenido */
.elegant-frame {
    background-color: #ffffff;
    border: 1px solid #e0d8c3;
    border-left: 5px solid var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: 0 10px 10px 0;
    box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.03);
    position: relative;
    text-align: justify;
}

/* Justificación para modals de noticias y otros contenidos */
.modal-body,
.card-text {
    text-align: justify !important;
}

.elegant-frame::after {
    content: '';
    position: absolute;
    top: 10px;
    right: 10px;
    bottom: 10px;
    left: 10px;
    border: 1px solid rgba(127, 29, 28, 0.05);
    /* Subtle inner border */
    pointer-events: none;
    border-radius: 5px;
}

/* ── Video Player ── */
.video-frame {
    position: relative;
    padding-bottom: 56.25%;
    /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background: #000;
}

.video-frame iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}