html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    display: flex;
    flex-direction: column;
    background: #f8f9fa;
}

.page-wrapper {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.page-content {
    flex: 1;
}

/* =========================
   HERO
========================= */

.hero {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;

    color: white;
    position: relative;

    background: url('/fondo.webp') no-repeat center center;
    background-size: cover;

    height: 20vh;
    min-height: 130px;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.70);
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 16px;
}

.hero-content h1 {
    font-weight: 800;
    margin: 0;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
}

/* =========================
   NAVBAR
========================= */

.navbar-brand {
    font-weight: 700;
}

.navbar-brand img {
    margin-right: 6px;
}

/* =========================
   BOTONES
========================= */

.btn-primary {
    background-color: #4a90e2;
    border: none;
    padding: 10px 20px;
    font-size: 1.1rem;
}

.btn-primary:hover {
    background-color: #357ab8;
}

.btn-primary:focus,
.btn-primary:active {
    background-color: #357ab8;
    box-shadow: 0 0 0 0.20rem rgba(74, 144, 226, 0.25);
}

.btn-loading {
    opacity: 0.85;
    cursor: not-allowed;
}

/* =========================
   CARDS GENERALES
========================= */

.app-card {
    border-radius: 15px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
    border: 1px solid #dee2e6;
    background: #ffffff;
}

/* =========================
   ALERTAS
========================= */

.alert {
    border-radius: 12px;
}

/* =========================
   FOOTER
========================= */

footer {
    margin-top: auto;
}

footer a {
    font-weight: 600;
}

/* =========================
   RESPONSIVE
========================= */

@media (max-width: 768px) {
    .hero {
        height: 16vh;
        min-height: 110px;
    }

    .hero-content h1 {
        font-size: 1.8rem;
    }

    .btn-primary {
        font-size: 1rem;
    }
}