/* ==== RESET GENERAL ==== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    background-color: #f4f6f9;
    color: #333;
    line-height: 1.6;
}

html {
    scroll-behavior: smooth;
}

/* ==== HEADER ==== */
header {
    background: url('../img/titulo.jpg') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 40px 20px;
}

/* ==== NAVBAR ==== */
nav {
    background: #111;
    position: sticky;
    top: 0;
    z-index: 1000;
    text-align: center;
    padding: 12px;
}

nav a {
    color: white;
    margin: 0 15px;
    text-decoration: none;
    font-weight: bold;
    transition: 0.3s;
}

nav a:hover {
    color: #0d6efd;
}

/* ===== SECCIONES ===== */
section {
    padding: 60px 20px;
    text-align: center;
}

section h2 {
    margin-bottom: 15px;
}

section p {
    max-width: 700px;
    margin: 10px auto;
}

ul, ol {
    max-width: 600px;
    margin: 20px auto;
    text-align: left;
}

/* ===== INICIO ===== */
#inicio {
    background: url('../img/inicio.jpg') center/cover no-repeat;
    color: white;
    position: relative;
}

#inicio::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.6);
}

#inicio * {
    position: relative;
    z-index: 1;
}

#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;
}

/* ===== COLORES POR SECCIÓN ===== */
#asesoria, #contacto {
    background: #e9f2ff;
}

#blog {
    background: #f9f9f9;
}

/* ===== FOOTER ===== */
footer {
    background: #111;
    color: white;
    text-align: center;
    padding: 15px;
}