/* --- RESET Y VARIABLES GLOBALES --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #005f6b; /* Un verde azulado oscuro del logo */
    --secondary-color: #8db600; /* Un verde lima del logo */
    --dark-grey: #333333;
    --light-grey: #f4f4f4;
    --white-color: #ffffff;
    --font-family: 'Poppins', sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-family);
    color: var(--dark-grey);
    line-height: 1.6;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* --- BARRA DE NAVEGACIÓN --- */
.header {
    background-color: var(--white-color);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100px;
}

.nav.container {
    max-width: 960px; /* Reducimos el ancho máximo solo para la navegación */
}

.logo img {
    height: 50px;
}

.nav-menu {
    list-style: none;
    display: flex;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: var(--dark-grey);
    font-weight: 600;
    transition: color 0.3s ease;
}

.nav-link:hover {
    color: var(--primary-color);
}

.btn-primary {
    text-decoration: none;
    background-color: var(--primary-color);
    color: var(--white-color);
    padding: 10px 20px;
    border-radius: 5px;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.btn-primary:hover {
    background-color: #004c57; /* Un poco más oscuro */
}

.hero {
    background: linear-gradient(rgba(0, 95, 107, 0.8), rgba(0, 95, 107, 0.8)), url('imagenes/fondo.png') no-repeat center center/cover;
    height: 80vh;
    color: var(--white-color);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding-top: 80px; /* Para compensar la barra de nav fija */
}

.hero-content {
    max-width: 800px;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
}

.btn-secondary {
    text-decoration: none;
    background-color: var(--secondary-color);
    color: var(--dark-grey);
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background-color: #a2d100;
    transform: translateY(-2px);
}

/* --- SECCIÓN DE SERVICIOS --- */
.services {
    padding: 5rem 0;
    background-color: var(--light-grey);
}

.services h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 3rem;
    color: var(--primary-color);
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.service-card {
    background-color: var(--white-color);
    padding: 2.5rem;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}

.service-icon {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--primary-color);
}

/* --- PIE DE PÁGINA (FOOTER) --- */
.footer {
    background-color: var(--dark-grey);
    color: var(--light-grey);
    padding-top: 4rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    padding-bottom: 3rem;
}

.footer-brand .logo img {
    height: 40px;
    margin-bottom: 1rem;
}

.footer h3 {
    color: var(--secondary-color);
    margin-bottom: 1rem;
}

.footer-copyright {
    text-align: center;
    padding: 1.5rem 0;
    border-top: 1px solid #444;
}

/* --- RESPONSIVE DESIGN (PARA CELULARES) --- */
@media (max-width: 768px) {
    .nav-menu {
        display: none; /* En un proyecto real, aquí iría un menú hamburguesa */
    }

    .hero h1 {
        font-size: 2.2rem;
    }

    .hero p {
        font-size: 1rem;
    }

    .services-grid {
        grid-template-columns: 1fr;
    }
}

/* --- SECCIÓN QUIÉNES SOMOS --- */


.about {
    padding: 5rem 0;
    background-color: var(--white-color); /* Alternamos el color de fondo para separar secciones */
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr; /* Creamos dos columnas de igual tamaño */
    gap: 3rem; /* Espacio entre el texto y la imagen */
    align-items: center; /* Alineamos verticalmente el contenido */
}

.about-text h2 {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.about-text h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--secondary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    margin-bottom: 1rem;
    line-height: 1.8;
}


/* --- RESPONSIVE DESIGN (PARA CELULARES) --- */
@media (max-width: 768px) {
    /* ... aquí están tus otros estilos responsive ... */