@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700;800&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body{
    background-color:#f4f4f4;
    font-family:
    'Poppins',
    Gill Sans,
    Gill Sans MT,
    Myriad Pro,
    DejaVu Sans Condensed,
    Helvetica,
    Arial,
    'sans-serif';
}
html {
    scroll-behavior: smooth;
  }

/*..................................NAVIGATION...............................*/

/* Estilos base */
.menu-container {
    max-width: 100%;
    height: 70px;
    margin: auto;
    background-color: white;
    border: 3px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    padding: 0 20px;
}

.logo {
    height: 60px;
    width: 80px;
    margin-right: 10px;
}

.logo_name {
    display: flex;
    align-items: center;
    color: #576c54;
    font-weight: 600;
}

/* Contenedor del menú hamburguesa */
.hamburger-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

/* Estilos del botón hamburguesa */
.menu-toggle {
    display: none;
}

.hamburger-btn {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 24px; /* Más pequeño */
    height: 18px; /* Más pequeño */
    background: transparent;
    border: none;
    padding: 0;
    z-index: 1001;
    margin-left: auto; /* Empuja a la derecha */
}

.hamburger-line {
    width: 100%;
    height: 2px; /* Líneas más delgadas */
    background-color: #576c54;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* Menú de navegación principal (escritorio) */
.main-nav ul.nav-list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

.main-nav ul.nav-list li {
    margin-left: 20px;
}

.main-nav ul.nav-list li a {
    font-size: 16px;
    font-weight: 600;
    color: #576c54;
    text-decoration: none;
    padding: 10px 15px;
    display: block;
}

.main-nav ul.nav-list li a:hover {
    color: rgb(140, 158, 145);
}

/* Estilos responsivos */
@media (max-width: 768px) {
    .hamburger-btn {
        display: flex; /* Mostrar solo en móvil */
    }
    
    .main-nav {
        position: absolute;
        top: 100%; /* Justo debajo del botón */
        right: 0; /* Alineado a la derecha */
        width: 200px; /* Ancho compacto */
        background-color: white;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        transform: translateY(-10px) scaleY(0);
        transform-origin: top;
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        border-radius: 0 0 0 8px;
    }
    
    .menu-toggle:checked ~ .main-nav {
        transform: translateY(0) scaleY(1);
        opacity: 1;
    }
    
    .main-nav ul.nav-list {
        flex-direction: column;
        padding: 5px 0; /* Menos padding */
    }
    
    .main-nav ul.nav-list li {
        margin: 0;
        text-align: center; /* Alineado a la derecha */
    }
    
    .main-nav ul.nav-list li a {
        padding: 10px 15px; /* Más compacto */
        font-size: 14px; /* Texto más pequeño */
    }
}
/*..................................HEADER...............................*/
.hero {
    height: 100vh;
    background-image: url('https://images.unsplash.com/photo-1501854140801-50d01698950b');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 0 1rem;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
}

.hero-content {
    position: relative;
    max-width: 800px;
    padding: 2rem;
}

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

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

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.btn {
    padding: 1rem 2rem;
    border-radius: 50px;
    text-decoration: none;
    font-weight: bold;
    transition: transform 0.3s;
}

.btn:hover {
    transform: translateY(-3px);
}

.btn-primary {
    background: white;
    color: #008000;
}

.btn-secondary {
    border: 2px solid white;
    color: white;
}

/*..................................SERVICES...............................*/

.services {
    padding: 5rem;
    background: #f4f4f4;
}

.services h2 {
    margin-bottom: 2rem;
    text-align: center;
    font-size: 40px;
    color: white;
    background-color: #307230;
    border-radius: 7px;
    margin-left: 290px;
    width: 50%;
}

.service-line {
    width: 80px;
    height: 4px;
    background: #008000;
    margin: 0 auto 2rem;
}

.section-description {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 4rem;
    color: #666;
}

@media (max-width: 1000px) {
    .menu .navbar ul {
        margin-left: 200px; /* Ajuste progresivo */
    }
    .services h2 {
        margin-left: 200px; /* Ajuste proporcional */
        width: 60%; /* Ligero ajuste */
    }
}
@media (max-width: 768px) {
    .menu .navbar ul {
        display: none; /* Ocultamos la navegación normal */
    }
    .services h2 {
        margin-left: 80px;
        width: 70%;
        font-size: 35px;
    }
}

@media (max-width: 480px) {
    .services h2 {
        margin-left: 20px;
        width: 90%;
        font-size: 26px;
    }
    .services {
        padding: 6rem 5%;
    }
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    transition: transform 0.3s, box-shadow 0.3s;
    text-align: center;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.service-icon {
    width: 64px;
    height: 64px;
    background: #f0f9f0;
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.service-card h3 {
    color: #234a38;
    margin-bottom: 1rem;
}

.service-card p {
    color: #666;
}

/*..................................FOOTER...............................*/

footer {
    background: #1a1a1a;
    color: white;
    padding: 4rem 5% 2rem;
    margin-top: 100px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section h3 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1.5rem;
}
.social-icon {
    width: 40px;
    height: 40px;
    background: #333;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease; 
}

.social-icon svg, 
.social-icon i {
    width: 20px;
    height: 20px;
    color: white;
    transition: transform 0.3s ease; 
}

.social-icon:hover {
    background: #008000;
}

.social-icon:hover svg,
.social-icon:hover i {
    transform: scale(0.8); /* Reduce el tamaño al 80% */
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: #ccc;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #008000;
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .navbar {
        flex-direction: column;
        padding: 1rem;
    }
    
    nav ul {
        margin-top: 1rem;
        gap: 1rem;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero-buttons {
        flex-direction: column;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        justify-content: center;
    }
}
