@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';
}
section[id] {
    scroll-margin-top: 70px; /* Altura de tu header */
    padding-top: 40px;        /* Espacio interno */
    margin-top: -40px;        /* Compensa el espacio */
  }
  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 */
    }
}
/*..................................SERVICES HEADER...............................*/
.services {
    padding: 8rem 5%;
}

.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: 100px;
        width: 70%;
        font-size: 35px;
    }
}

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

.services-container {
    margin: -140px auto;
    width: 96%;
    padding: 0 2rem;
}

.service-card {
    background: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    margin-bottom: 3rem;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.service-card.reverse {
    flex-direction: row-reverse;
}

.service-img-container {
    flex: 1;
    min-height: 300px;
    overflow: hidden;
}

.service-img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.service-card:hover .service-img {
    transform: scale(1.05);
}

.service-content {
    flex: 1;
    padding: 2.5rem;
}

.service-content h3 {
    font-size: 1.8rem;
    color: #234a38;
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
    margin-top: 30px;   
}

.service-content p {
    color: #666;
    line-height: 1.8;
    margin-top: -30px;
    margin-bottom: 1.5rem;
}

    .date-author-container {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 15px;
    }
    
    .date-author {
        margin-top: -10px;
        display: flex;
        gap: 30px;
        align-items: center;
    }
    
    .author, .date {
        display: flex;
        align-items: center;
        gap: 5px;
        color: #333333;
    }
    
    .article-title-link {
        text-decoration: none;
        color: inherit;
    }
    
    .article-title {
        transition: color 0.3s ease;
        margin: 10px 0;
    }
    
    .article-title:hover {
        text-decoration: underline;
        color: #5d865f; /* Cambia a verde al hacer hover */
    }
    
    .read-more-btn {
        display: inline-block;
        padding: 10px 20px;
        background-color: green;
        font-weight: bold;
        color: white;
        text-decoration: none;
        border-radius: 5px;
        border: none;
        cursor: pointer;
        transition: all 0.3s ease;
        margin-top: 15px;
    }
    
    .read-more-btn:hover {
        background-color: #45a049;
        transform: translateY(-2px);
        box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    }


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

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

.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;
    }
}

