* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Segoe UI", sans-serif;
}

body {
    background: #ffffff;
    color: #222;
}

/* ===== HEADER ===== */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 40px;
    background: #ffffff;
    border-bottom: 1px solid #eee;
}

.logo img {
    height: 50px;
}

.top-bar nav a {
    margin-left: 25px;
    text-decoration: none;
    color: #003b70;
    font-weight: 500;
}

.top-bar nav a:hover {
    color: #c62828;
}

/* ===== HERO ===== */
.hero {
    height: 90vh;
    background: linear-gradient(
        rgba(0,0,0,0.35),
        rgba(0,0,0,0.35)
    ),
    url("/img/banner.jpg") center/cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 15px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* BOTONES */
.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn {
    padding: 12px 28px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 600;
    transition: 0.3s;
}

.btn.primary {
    background: #c62828;
    color: #fff;
}

.btn.secondary {
    background: #1e3c72;
    color: #fff;
}

.btn.outline {
    border: 2px solid #fff;
    color: #fff;
}

.btn:hover {
    opacity: 0.85;
}

/* ===== SECCIÓN INFERIOR ===== */
.features {
    display: flex;
    justify-content: space-around;
    padding: 60px 10%;
    background: #f7f7f7;
}

.feature {
    width: 30%;
    text-align: center;
}

.feature h3 {
    color: #1e3c72;
    margin-bottom: 10px;
}

/* ===== FOOTER ===== */
footer {
    text-align: center;
    padding: 20px;
    background: #0e1b2a;
    color: #fff;
}

/* RESPONSIVE */
@media (max-width: 900px) {
    .features {
        flex-direction: column;
        gap: 30px;
    }

    .hero h1 {
        font-size: 2.2rem;
    }
}
.hero {
    width: 100%;
    min-height: 100vh; /* ocupa toda la altura de la pantalla */
    
    background-image: url("/img/background.jfif"); /* tu imagen */
    background-size: cover;       /* ocupa todo el ancho */
    background-position: center;  /* centrada */
    background-repeat: no-repeat;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;
    padding: 2rem;
}

.hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
}

.hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    color: #fff;
    max-width: 900px;
}

@media (max-width: 768px) {
    .hero {
        min-height: 80vh;
    }

    .hero-content h1 {
        font-size: 2rem;
    }
}
