:root {
    --azul-marino: #0b1c2d;
    --azul-marino-soft: #132f4c;
    --amarillo-oscuro: #c9a227;
    --amarillo-soft: #e6cf72;
    --blanco: #ffffff;
    --gris-claro: #f4f6f8;
    --sombra-suave: 0 20px 40px rgba(0,0,0,.18);
    --sombra-hover: 0 25px 60px rgba(0,0,0,.28);
}

/* ================= BASE ================= */
html, body {
    font-family: 'Poppins', sans-serif;
    margin: 0;
    scroll-behavior: smooth;
}

/* Fondo con overlay */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    background:
        linear-gradient(
            rgba(11,28,45,0.7),
            rgba(11,28,45,0.7)
        ),
        url("static/dante.jpg") center/cover;
    z-index: -1;
}

/* ================= NAVBAR ================= */
.custom-navbar {
    background: rgba(11,28,45,0.9);
    backdrop-filter: blur(10px);
    box-shadow: var(--sombra-suave);
    padding: 16px 0;
}

.navbar-logo {
    height: 60px;
}

.nav-link {
    font-weight: 500;
    position: relative;
    transition: color .3s ease;
}

.nav-link:hover {
    color: var(--amarillo-oscuro) !important;
}

/* ================= HERO ================= */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
}

.hero-title {
    font-size: clamp(3rem, 6vw, 4.5rem);
    font-weight: 800;
    color: var(--blanco);
    text-shadow:
        0 6px 15px rgba(0,0,0,.85),
        0 0 25px rgba(201,162,39,.45);
}

.hero-text {
    color: #f2f2f2;
    font-size: 1.15rem;
    max-width: 700px;
    margin: 0 auto;
}

/* ================= SECCIONES ================= */
section {
    scroll-margin-top: 120px;
}

/* ================= TARJETAS ================= */
.card {
    background: rgba(255,255,255,.97);
    border-radius: 26px;
    border: none;
    box-shadow: var(--sombra-suave);
    transition: transform .35s ease, box-shadow .35s ease;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--sombra-hover);
}

.card h2,
.card h5 {
    color: var(--azul-marino);
}

/* ================= LIST GROUP ================= */
.list-group {
    border-radius: 24px;
    overflow: hidden;
}

.list-group-item {
    padding: 18px 22px;
    font-size: .95rem;
}

/* ================= AVISO IMPORTANTE ================= */
.notice-btn {
    position: fixed;
    top: 200px;
    right: 20px;
    background: linear-gradient(
        135deg,
        var(--amarillo-oscuro),
        var(--amarillo-soft)
    );
    color: #000;
    font-weight: 600;
    border-radius: 50px;
    padding: 12px 22px;
    box-shadow: var(--sombra-suave);
    border: none;
    transition: transform .3s ease, box-shadow .3s ease;
    z-index: 999;
}

.notice-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--sombra-hover);
}

.notice-card {
    position: fixed;
    top: 150px;
    right: 20px;
    width: 360px;
    background: white;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--sombra-hover);
    display: none;
    z-index: 1000;
}

.notice-header {
    background: linear-gradient(
        135deg,
        var(--azul-marino),
        var(--azul-marino-soft)
    );
    color: white;
    padding: 16px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.notice-logo {
    width: 70px;
    height: auto;
}

.notice-body {
    padding: 18px;
    font-size: .9rem;
}

/* ================= FOOTER ================= */
.footer-custom {
    background: linear-gradient(
        135deg,
        var(--azul-marino),
        var(--azul-marino-soft)
    );
    color: white;
    padding: 30px 0;
    text-align: center;
    border-top-left-radius: 40px;
    border-top-right-radius: 40px;
}

.footer-custom p {
    margin: 4px 0;
    font-size: .9rem;
}

/* ================= RESPONSIVE ================= */
@media (max-width: 768px) {
    .notice-card {
        width: 90%;
        right: 5%;
    }

    .hero-title {
        font-size: 2.8rem;
    }
}
.img-box {
    width: 100%;
    height: 300px;              /* ambas iguales */
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 .5rem 1rem rgba(0,0,0,.15);
}

.img-box {
    width: 100%;
    height: 320px;
    border-radius: 14px;
    overflow: hidden;              /* CLAVE */
    box-shadow: 0 .75rem 1.5rem rgba(0,0,0,.15);
    background-color: #fff;
}

/* IZQUIERDA: cubre la caja */
.img-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;             /* llena */
}

/* DERECHA: logo intacto */
.img-contain {
    display: flex;
    align-items: center;
    justify-content: center;
}

.img-contain img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;           /* no se deforma */
}
