/* ===== CONFIGURACIÓN GENERAL ===== */
html {
    scroll-behavior: smooth; /* Scroll suave */
}

body {
    margin: 0;
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
}

/* ===== HEADER ===== */
header {
    background: url('../img/titulo.jpg') no-repeat center center/cover;
    color: white;
    text-align: center;
    padding: 25px;
    font-size: 24px;
    letter-spacing: 1px;
}

/* ===== NAVBAR ===== */
nav {
    background-color: #111;
    position: sticky; /* Se queda arriba al hacer scroll */
    top: 0;
    z-index: 1000;
    padding: 12px 0;
    text-align: center;
}

nav a {
    color: white;
    text-decoration: none;
    margin: 0 15px;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #0d6efd;
}

/* ===== SECCIÓN INICIO ===== */
#inicio {
    background: url('../img/inicio.jpg') no-repeat center center/cover;
    height: 90vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

    color: white;
    text-align: center;
    position: relative;
}

/* Capa oscura encima de la imagen */
#inicio::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
}

/* Contenido encima */
#inicio h2,
#inicio p {
    position: relative;
    z-index: 1;
}

#inicio h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

#inicio p {
    font-size: 20px;
    max-width: 600px;
}

/* ===== SECCIONES GENERALES ===== */
section {
    padding: 60px 20px;
    text-align: center;
}

#servicios {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    max-width: 1200px;
    margin: auto;
}
.card {
    background: #ffffff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    transition: 0.3s;
}
.card:hover {
    transform: translateY(-8px);
}
.card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}
.card .contenido {
    padding: 20px;
}
.card h3 {
    margin-bottom: 10px;
}


/* ===== ASESORÍA ===== */
#asesoria {
    background: url('../img/asesoramiento.jpg') no-repeat center center/cover;
    padding: 100px 40px;
    position: relative;
    color: white;
    font-family: 'Poppins', 'Segoe UI', sans-serif; /* 🔥 fuente más moderna */
}

/* capa oscura bien controlada */
#asesoria::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
}

/* contenido visible encima */
.contenedor-asesoria {
    position: relative;
    z-index: 1;
    max-width: 1200px;
    margin: auto;
}

/* TEXTO */
.texto {
    max-width: 600px;
}

.texto h2 {
    font-size: 36px;
    font-weight: 800; /* 🔥 más grueso */
    margin-bottom: 15px;
}

.texto p {
    font-size: 20px;
    font-weight: 500;
}

.texto h3 {
    margin-top: 25px;
    font-size: 24px;
    font-weight: 700;
    color: #60a5fa; /* azul elegante */
}

.texto ul {
    margin-top: 15px;
    font-size: 20px;
    font-weight: 600;
}

/* BOTONES */
.botones {
    margin-top: 30px;
}

/* botón principal */
.btn-primary {
    background: #0d6efd;
    color: white;
    padding: 14px 28px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}

.btn-primary:hover {
    background: #0b5ed7;
}

/* botón secundario */
.btn-secondary {
    border: 2px solid #0d6efd;
    padding: 14px 28px;
    border-radius: 8px;
    color: #0d6efd;
    text-decoration: none;
    margin-left: 10px;
    font-weight: 700;
    display: inline-block;
    transition: 0.3s;
}

.btn-secondary:hover {
    background: #0d6efd;
    color: white;
}


/* ===== BLOG ===== */
#blog {
    background-color: #f9f9f9;
}

/* ===== CONTACTO ===== */
#contacto {
    background-color: #e9f2ff;
}

/* ===== FOOTER ===== */
footer {
    background-color: #111;
    color: white;
    text-align: center;
    padding: 15px;
}