/* ===== RESET GLOBAL ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    color: #1f2d3d;
    line-height: 1.6;
    background: #f4f7fb;
}

/* ===== NAVBAR ===== */
nav {
    background: #ffffff;
    padding: 15px;
    text-align: center;
    border-bottom: 1px solid #ddd;
    position: sticky;
    top: 0;
    z-index: 1000;
}

nav a {
    margin: 0 12px;
    text-decoration: none;
    color: #0b3d5c;
    font-weight: 600;
    transition: 0.3s;
}

nav a:hover {
    color: #1e6f9f;
}

/* ===== CONTENEDOR ===== */
.container {
    max-width: 1100px;
    margin: auto;
    padding: 60px 20px;
}

/* ===== SECCIONES ===== */
.section {
    margin-bottom: 80px;
}

/* ===== TITULOS ===== */
h1, h2 {
    color: #0b3d5c;
}

h2 {
    margin-bottom: 20px;
    font-size: 1.8em;
}

/* ===== TEXTO ===== */
p {
    margin-bottom: 15px;
    font-size: 1.05em;
}

/* ===== IMÁGENES ===== */
img {
    width: 100%;
    border-radius: 12px;
}

/* ===== FLEX LAYOUT ===== */
.flex {
    display: flex;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.flex.reverse {
    flex-direction: row-reverse;
}

.flex img {
    max-width: 420px;
}

.flex .text {
    flex: 1;
}

/* ===== LISTAS ===== */
ul {
    padding-left: 20px;
}

/* ===== BOTONES ===== */
a.button {
    display: inline-block;
    background: #0b3d5c;
    color: white;
    padding: 12px 25px;
    border-radius: 6px;
    text-decoration: none;
    transition: 0.3s;
}

a.button:hover {
    background: #1e6f9f;
}

/* ===== HERO PROFESIONAL ===== */
.hero {
    background: linear-gradient(rgba(11,61,92,0.7), rgba(11,61,92,0.7)),
                url('/assets/img/banner.jpg') center/cover no-repeat;
    min-height: 340px;
    height: 45vh;
    max-height: 500px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* CONTENIDO HERO */
.hero-content {
    color: white;
    padding: 0 20px;
}

/* TÍTULO HERO (SOLUCIONADO DEFINITIVO) */
.hero-content h1 {
    color: #ffffff;
    font-size: 3em;
    font-weight: 700;
    letter-spacing: 1px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

/* SUBTÍTULO HERO */
.hero-content p {
    color: #ffffff;
    margin-top: 10px;
    font-size: 1.4em;
    opacity: 0.95;
}

/* ===== TARJETAS (BLOG FUTURO) ===== */
.card {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.06);
    transition: 0.3s;
}

.card:hover {
    transform: translateY(-6px);
}

/* ===== FOOTER ===== */
footer {
    background: #0b3d5c;
    color: white;
    text-align: center;
    padding: 35px;
    margin-top: 50px;
}

footer p {
    margin: 10px 0;
}

footer a {
    color: white;
    text-decoration: none;
    margin: 5px;
    opacity: 0.85;
    transition: 0.3s;
}

footer a:hover {
    text-decoration: underline;
    opacity: 1;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {

    .flex {
        flex-direction: column;
        text-align: center;
    }

    .flex.reverse {
        flex-direction: column;
    }

    nav a {
        display: inline-block;
        margin: 8px;
    }

    .hero {
        height: 260px;
    }

    .hero-content h1 {
        font-size: 2em;
    }

    .hero-content p {
        font-size: 1.1em;
    }
}