/* Variables y Reset Básico */
:root {
    --primary-color: #007bff; /* Azul vibrante */
    --secondary-color: #6c757d; /* Gris */
    --background-color: #f8f9fa; /* Fondo claro */
    --text-color: #343a40; /* Texto oscuro */
    --light-color: #ffffff; /* Color claro */
    --font-family: 'Roboto', sans-serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font-family);
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

/* --- Cabecera y Navegación --- */
.header {
    background: var(--light-color);
    color: var(--text-color);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.logo {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--primary-color);
}

.nav ul {
    list-style: none;
    display: flex;
}

.nav ul li {
    margin-left: 1.5rem;
}

.nav ul li a {
    text-decoration: none;
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

.nav ul li a:hover {
    color: var(--primary-color);
}

/* --- Sección Principal (Hero) --- */
.hero {
    background: url('./img/hero-bg.png') no-repeat center center/cover; /* Reemplaza con tu imagen */
    height: 80vh; /* Altura de la vista */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    /* Fondo oscuro semitransparente para mejor legibilidad */
    z-index: 1; 
}

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4); /* Capa oscura */
    z-index: -1;
}

.hero-content {
    color: var(--light-color);
    max-width: 800px;
    padding: 1rem;
    z-index: 10;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content p {
    font-size: 1.5rem;
    margin-bottom: 2rem;
}

.cta-button {
    display: inline-block;
    background-color: var(--primary-color);
    color: var(--light-color);
    padding: 0.75rem 2rem;
    text-decoration: none;
    border-radius: 5px;
    font-weight: 700;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.cta-button:hover {
    background-color: #0056b3; /* Tono más oscuro de azul */
    transform: translateY(-2px);
}

/* --- Sección de Servicios --- */
.services {
    padding: 4rem 5%;
    text-align: center;
}

.services h2 {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-container {
    display: flex;
    justify-content: space-around;
    gap: 20px;
    flex-wrap: wrap;
}

.service-card {
    background: var(--light-color);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    max-width: 300px;
    padding-bottom: 1.5rem;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden; /* Para que la imagen se vea bien */
}

.service-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.card-image {
    width: 100%;
    height: 200px; /* Altura fija para la imagen */
    object-fit: cover; /* Asegura que la imagen cubra el área */
    margin-bottom: 1rem;
    display: block;
}

.service-card h3 {
    color: var(--text-color);
    margin-bottom: 0.5rem;
    padding: 0 1rem;
}

.service-card p {
    color: var(--secondary-color);
    font-size: 1rem;
    padding: 0 1rem;
}

/* --- Pie de Página --- */
.footer {
    background: var(--text-color);
    color: var(--light-color);
    text-align: center;
    padding: 2rem 5%;
    font-size: 0.9rem;
}

.footer p {
    margin: 0.5rem 0;
}

/* --- Responsive (Para dispositivos móviles) --- */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        text-align: center;
    }

    .nav ul {
        margin-top: 1rem;
        justify-content: center;
    }

    .nav ul li {
        margin: 0 0.5rem;
    }

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

    .hero-content p {
        font-size: 1.2rem;
    }

    .services-container {
        flex-direction: column;
        align-items: center;
    }

    .service-card {
        max-width: 90%;
        margin-bottom: 1.5rem;
    }
}