/* ===================================
   RESET Y CONFIGURACIÓN BASE
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f9f9f9;
}

/* ===================================
   HEADER / NAVIGATION
   =================================== */
.header {
    background-color: #fff;
    padding: 1rem 2rem;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1400px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.3rem;
    color: #8B4513;
}

.logo svg {
    stroke: #8B4513;
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2.5rem;
}

.nav-links a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    transition: color 0.3s ease;
}

.nav-links a:hover {
    color: #8B4513;
}

.contact-phone a {
    text-decoration: none;
    color: #333;
    font-size: 0.95rem;
    font-weight: 500;
}

/* ===================================
   HERO SECTION
   =================================== */
.hero {
    position: relative;
    min-height: 450px;
    background-image: url('../assets/img/hero-home.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding: 0 4rem;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.3);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    max-width: 1400px;
    width: 100%;          /* ← NUEVO */
    margin: 0;            /* ← CAMBIADO de "0 auto" a "0" */
    padding-left: 0; 
}

.hero-title {
    font-size: 3rem;
    font-weight: 700;
    color: white;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.3);
    text-align: left;     /* ← NUEVO: alineación explícita a la izquierda */
    margin: 0;  
}

/* ===================================
   ABOUT SECTION
   =================================== */
.about {
    padding: 2rem 1rem;
    background-color: #fff;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1400px;
    margin: 0 auto;
    align-items: center;
}
.about-image {
    width: 100% !important; /* ¡ESTO CORRIGE EL ERROR! Quita los 600px */
    height: auto !important;    /* ← ALTO FIJO: 450px */
    margin: 0 auto;
    overflow: hidden; 
}

.about-image img {
    width: 100%;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.about-text h2 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #222;
    text-align: left;
}

.about-text p {
    font-size: 1.1rem;
    font-weight: 400;
    color: #555;
    line-height: 1.8;
}

/* ===================================
   WHY CHOOSE US SECTION
   =================================== */
.why-choose {
    padding: 5rem 2rem;
    background-color: #f9f9f9;
}

.why-choose h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.features {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto;
}

.feature {
    text-align: center;
    padding: 2rem 1rem;
}

.feature h3 {
    font-size: 1.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: #8B4513;
}

.feature p {
    font-size: 0.95rem;
    font-weight: 400;
    color: #666;
    line-height: 1.6;
}

/* ===================================
   SERVICES SECTION
   =================================== */
.services {
    padding: 5rem 2rem;
    background-color: #fff;
}

.services h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 3rem;
    text-align: center;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1400px;
    margin: 0 auto 3rem;
}

.service-card {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-image {
    width: 100%;
    height: 400px;
    background-size: cover;
    background-position: center;
    position: relative;
}

.service-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2rem;
    display: flex;
    align-items: flex-end;
}

.service-overlay h3 {
    color: white;
    font-size: 1.8rem;
    font-weight: 700;
}

/* Este es el bloque que hace la magia del centrado */
.button-wrapper {
    display: flex;
    justify-content: center; /* Centra horizontalmente */
    align-items: center;     /* Centra verticalmente */
    width: 100%;             /* Ocupa todo el ancho disponible */
    padding: 2rem 0;         /* Espacio arriba y abajo para que no esté pegado */
}

/* Tu código actual del botón con un pequeño ajuste */
.btn-all-service {
    display: inline-block;    /* Asegura que respete el centrado */
    padding: 1rem 2rem;
    background-color: #8B4513;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;    /* Por si usas <a> directamente */
}

.btn-all-service:hover {
    background-color: #5D2E0D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* ===================================
   FOOTER
   =================================== */
.footer {
    background-color: #222;
    color: white;
    text-align: left;
    padding: 3rem 2rem;
    margin-top: 4rem;
}

.footer-content p {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0.5rem 0;
}

.footer a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #8B4513;
}
/* ===================================
   RESPONSIVE DESIGN (Modificado)
   =================================== */
@media (max-width: 1024px) {
    .features {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* --- ESTILO PARA COMPUTADORA (Botón oculto) --- */
.menu-hamburger {
    display: none; 
    flex-direction: column;
    cursor: pointer;
    gap: 5px;
    z-index: 1100;
}

.menu-hamburger span {
    width: 25px;
    height: 3px;
    background-color: #333;
    border-radius: 2px;
    transition: 0.3s;
}

/* --- AJUSTES PARA CELULAR --- */
@media (max-width: 768px) {
    /* Mostramos las tres líneas */
    .menu-hamburger {
        display: flex; 
    }

    /* Modificamos nav-links para que sea el menú lateral */
    .nav-links {
        display: flex; /* Cambiado de 'none' a 'flex' para que sea visible */
        position: fixed;
        right: -100%; /* Lo mandamos fuera de la pantalla a la derecha */
        top: 0;
        background-color: white;
        width: 75%; 
        height: 100vh;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        gap: 30px;
        transition: 0.5s ease;
        box-shadow: -10px 0 20px rgba(0,0,0,0.1);
        z-index: 1050;
    }

    /* Esta clase la activa el JavaScript al hacer click */
    .nav-links.active {
        right: 0 !important;
    }

    /* Tus estilos originales de móvil se mantienen igual */
    .hero-title {
        font-size: 2.5rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }

    .contact-phone {
        display: none; 
    }
}

