/* =========================
   VARIABLES DE COLOR
========================= */
:root {
    --negro-pastel: #1b1b1b;
    --negro-overlay: rgba(27,27,27,0.78);
    --rojo-colonial: #8a2d2d;
    --rojo-colonial-claro: #a44a4a;
    --blanco-suave: #f4f4f4;
    --gris-claro: #d9d9d9;
}

/* =========================
   BASE
========================= */
html, body {
    margin: 0;
    font-family: 'Poppins', Arial, sans-serif;
    color: var(--blanco-suave);
    scroll-behavior: smooth;
}

body {
    position: relative;
}

/* =========================
   FONDO
========================= */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("static/El Milagro.jpg");
    background-size: cover;
    background-position: center;
    opacity: 0.45;
    z-index: -1;
}

/* =========================
   NAVBAR
========================= */
.custom-navbar {
    background: var(--negro-overlay);
    backdrop-filter: blur(8px);
    box-shadow: 0 4px 18px rgba(0,0,0,0.45);
    padding: 18px 0;
    z-index: 1050;
}

.navbar-brand {
    font-weight: 700;
    letter-spacing: 0.5px;
}

.navbar-logo {
    height: 70px;
    width: auto;
}

.nav-link {
    color: var(--blanco-suave) !important;
    font-weight: 500;
    position: relative;
}

.nav-link::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -4px;
    width: 0;
    height: 2px;
    background: var(--rojo-colonial);
    transition: width 0.3s ease;
}

.nav-link:hover::after {
    width: 100%;
}

/* =========================
   HERO
========================= */
.hero-section {
    min-height: 100vh;
    padding-top: 120px;
    display: flex;
    align-items: center;
}

.hero-title {
    color: #ffffff !important;          /* Blanco puro */
    font-size: 4rem;                    /* Más grande */
    font-weight: 800;
    text-shadow:
        0 4px 8px rgba(0,0,0,0.85),      /* Sombra principal */
        0 0 18px rgba(0,0,0,0.6);        /* Glow suave */
}

.hero-text {
    color: #f0f0f0;
    text-shadow: 0 2px 6px rgba(0,0,0,0.7);
}

/* =========================
   SECCIONES
========================= */
section {
    scroll-margin-top: 120px;
}

/* =========================
   TARJETAS
========================= */
.card {
    background: rgba(255,255,255,0.96);
    color: #333;
    border-radius: 16px;
    border: none;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.card h5,
.card h3 {
    color: var(--rojo-colonial);
}

/* =========================
   MISIÓN / VISIÓN
========================= */
.mision-vision {
    background: var(--negro-overlay);
    border-radius: 24px;
    padding: 50px 30px;
}

.mision-vision h2 {
    color: var(--rojo-colonial-claro);
}

/* =========================
   NOTICIAS
========================= */
.news-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.news-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.3);
}

/* =========================
   AVISO IMPORTANTE
========================= */
.notice-logo {
    width: 110px;
    height: 110px;
    object-fit: contain;
    border-radius: 4px;
}

.notice-btn {
    position: fixed;
    top: 200px;
    right: 20px;
    z-index: 999;
    background: var(--rojo-colonial);
    border: none;
}

.notice-card {
    position: fixed;
    top: 150px;
    right: 20px;
    width: 340px;
    background: #fff;
    color: #333;
    border-radius: 14px;
    overflow: hidden;
    z-index: 1000;
}

.notice-header {
    background: var(--rojo-colonial);
    color: white;
    padding: 14px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-body {
    padding: 16px;
    font-size: 14px;
}

/* =========================
   FOOTER
========================= */
footer {
    background: var(--negro-pastel);
    color: var(--gris-claro);
    margin-top: 80px;
}

/* =========================
   BOTONES
========================= */
.btn-primary {
    background: var(--rojo-colonial);
    border: none;
}

.btn-primary:hover {
    background: var(--rojo-colonial-claro);
}
/* =========================
   FOOTER
========================= */.footer-custom {
    background-color: #8b1e1e; /* rojo colonial */
    color: #ffffff;
    padding: 25px 0;
    font-family: 'Poppins', sans-serif;
}

.footer-custom p {
    margin: 0;
    font-size: 0.9rem;
}

.footer-custom .fw-semibold {
    font-weight: 600;
}

