@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    text-decoration: none;
    list-style: none;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #f8f8f8;
    color: #222;
    line-height: 1.6;
}

img {
    max-width: 100%;
    display: block;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

h1,
h2,
h3 {
    font-weight: 600;
    color: #111;
}

/* ================== HEADER / NAVBAR ================== */
.header {
    background-color: #fff;
    border-bottom: 3px solid #6c8d43;
    /* Se elimina el padding para usar el del navbar-container */
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    /* Mantenemos el container para centrar y limitar ancho */
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 20px;
}

.menu {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 1000;
    backdrop-filter: blur(6px);
}

.logo img {
    height: 70px;
    transition: transform 0.3s ease;
    
}



.menu .navbar ul li {
    position: relative;
    float: left;
}

.menu .navbar ul li a {
    font-size: 18px;
    padding: 20px;
    color: #6c8d43;
    font-weight: 600;
    flex-direction: column;
}

#menu {
    display: none;
}

.menu-icon {
    width: 50px;
    height: auto;
}

.menu label {
    cursor: pointer;
    display: none;
}

.navbar {
    display: flex;
    gap: 20px;
}

.navbar a {
    color: #fff;
    font-weight: 600;
    padding: 10px 15px;
}

/* Estilo del desplegable oculto */
.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    /* debajo del enlace padre */
    left: 0;
    background: #fff;
    border: 1px solid #ddd;
    z-index: 1000;
    max-height: 250px;
    /* puedes ajustar según tu diseño */
    overflow-y: auto;
    /* ancho fijo */
}

/* Poner las opciones en columna */
.dropdown-menu li {
    width: 100%;
}

.dropdown-menu li a {
    padding: 10px 15px;
    color: #fff;
    display: block;
    text-align: left;
}

.dropdown-menu li a:hover {
    background: #d7e2c9;
    color: #333;
}

/* Mostrar el menú al pasar mouse */
.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu::-webkit-scrollbar {
    width: 8px;
}

.dropdown-menu::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.dropdown-menu::-webkit-scrollbar-thumb:hover {
    background: #999;
}


.header-txt {
    text-align: center;
}

/* Ajuste responsivo del header-content */
.header-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* Acomoda el texto, botón y logos en columna */
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 150px 20px;
    /* Espaciado interior adaptable */
    box-sizing: border-box;
}

.header-txt h1 {
    font-size: clamp(28px, 6vw, 70px);
    /* Ajuste automático de tamaño */
    ;
    color: #6c8d43;
}

.header-txt p {
    font-size: clamp(14px, 2.5vw, 18px);
    color: #6c8d43;
}

.header-txt h2 {
    font-size: clamp(20px, 4vw, 50px);
    color: #6c8d43;
}

@media (max-width: 768px) {
    .header-content {
        padding: 100px 15px;
    }

    .leyenda p {
        font-size: 18px;
    }

    .logos {
        flex-wrap: wrap;
        gap: 15px;
    }

    .logos img {
        height: 60px;
    }

    .btn-1 {
        font-size: 16px;
        padding: 10px 20px;
    }
}

/* Extra ajuste para pantallas muy pequeñas (teléfonos) */
@media (max-width: 480px) {
    .header-content {
        padding: 80px 10px;
    }

    .header-txt h1 {
        font-size: 26px;
    }

    .header-txt h2 {
        font-size: 20px;

    }

    .leyenda p {
        font-size: 16px;
    }

    .logos img {
        height: 50px;
    }
}

/* ======== BOTÓN PRINCIPAL (CTA) ======== */
.btn-principal {
    background-color: #6c8d43;
    color: white;
    padding: 10px 18px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.3s ease;
}

.btn-principal:hover {
    background-color: #557332;
    transform: translateY(-2px);
}

/* ================== HERO SECTION (SIN CAMBIOS) ================== */
.hero {
    background: url('images/contacto.png') center/cover no-repeat;
    color: white;
    text-align: center;
    padding: 160px 20px;
    position: relative;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 2.4rem;
    margin-bottom: 15px;
    color: #fff;
}

.hero .subtitulo {
    font-size: 1.1rem;
    margin-bottom: 25px;
    color: #eee;
}

/* ================== CONFIANZA (SIN CAMBIOS) ================== */
.confianza {
    text-align: center;
    padding: 60px 0;
}

.confianza h2 {
    color: #6c8d43;
    margin-bottom: 25px;
}

.certificaciones {
    display: flex;
    justify-content: center;
    gap: 40px;
    margin-bottom: 40px;
}

.certificaciones img {
    height: 170px;
}

/* RESPONSIVE: Certificaciones en columna */
@media (max-width: 768px) {
    .certificaciones {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .certificaciones img {
        height: 140px; /* opcional para que no se vean tan grandes */
    }
}


.beneficios {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 25px;
}

.beneficio {
    flex: 1 1 200px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    padding: 20px;
    transition: transform 0.3s ease;
}

.beneficio:hover {
    transform: translateY(-5px);
}

.beneficio img {
    height: 50px;
    margin: 0 auto 10px;
}

/* ================== SOLUCIONES ================== */
.soluciones {
    background-color: #f0f2ef;
    padding: 60px 0;
    text-align: center;
}

.soluciones h2 {
    color: #6c8d43;
    margin-bottom: 40px;
}

.tarjetas {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 25px;
}

.tarjeta-link{
    text-decoration: none;
    color: inherit;
    display: block;
}

.tarjeta {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.tarjeta:hover {
    transform: translateY(-6px);
}

.tarjeta img {
    width: 100%;
    height: 230px;
    object-fit: cover;
}

.tarjeta h3 {
    color: #333;
    margin: 15px 0 10px;
}

.tarjeta p {
    color: #555;
    padding: 0 15px 20px;
}

/* ================== TECNOLOGÍA (SIN CAMBIOS) ================== */
.tecnologia {
    padding: 60px 0;
    text-align: center;
}

.tecnologia h2 {
    color: #6c8d43;
    margin-bottom: 15px;
}

.tech-content {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 40px;
    margin-top: 30px;
}

.tech-content img {
    width: 400px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.tech-content ul {
    list-style: none;
    text-align: left;
}

.tech-content li {
    margin-bottom: 10px;
    padding-left: 20px;
    position: relative;
}

.tech-content li::before {
    content: "•";
    color: #6c8d43;
    position: absolute;
    left: 0;
}

/* ================== CASOS DE ÉXITO (SIN CAMBIOS) ================== */
.casos {
    background-color: #f7f7f7;
    padding: 60px 0;
    text-align: center;
}

.casos h2 {
    color: #6c8d43;
    margin-bottom: 40px;
}

.casos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
}

.caso {
    background: #fff;
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.05);
    text-align: left;
}

/* ================== CARRUSEL DE SOCIOS (SIN CAMBIOS) ================== */
.socios {
    padding: 70px 0;
    background-color: #fff;
    text-align: center;
}

.socios h2 {
    color: #6c8d43;
    margin-bottom: 30px;
}

.logo-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 30px 0;
    background: rgba(255, 255, 255, 0.1);
}

.logo-track {
    display: flex;
    align-items: center;
    gap: 60px;
    width: max-content;
    animation: scrollInfinite 40s linear infinite;
}

.logo-track img {
    height: clamp(60px, 10vw, 120px);
    opacity: 0.9;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.logo-track img:hover {
    transform: scale(1.1);
    opacity: 1;
}

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

.leyenda {
    margin-top: 40px;
}

.leyenda p {
    font-weight: 600;
    color: #333;
    margin-bottom: 15px;
}

.leyenda .logos {
    display: flex;
    justify-content: center;
    gap: 40px;
}

.leyenda .logos img {
    height: 80px;
}

/* ================== FOOTER (SIN CAMBIOS) ================== */
.footer {
    background-color: #f0f2ef;
    color: #000000;
    padding: 50px 0 20px;
}

.footer-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 30px;
}

.footer h3 {
    color: #6c8d43;
    margin-bottom: 15px;
}

.footer a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer a:hover {
    color: #6c8d43;
}

.footer input[type="email"] {
    padding: 8px;
    border: none;
    border-radius: 4px;
    width: 180px;
    margin-right: 5px;
}

.footer button {
    background-color: #6c8d43;
    border: none;
    padding: 8px 12px;
    color: #000000;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.footer button:hover {
    background-color: #557332;
}

.copy {
  border-top: 1px solid #b4b4b47e;
  padding: 20px 0;
  text-align: center;
  color: #6c8d43;
  font-size: 16px;
}




/* ================== RESPONSIVE (Ajustado para menú hamburguesa) ================== */
@media (max-width: 900px) {
    .menu-toggle {
        display: flex;
    }

    /* Ocultar menú principal y CTA en móvil, se manejan con JS */
    .navbar {
        display: none;
        width: 100%;
        position: absolute;
        top: 100%;
        /* Justo debajo del header */
        left: 0;
        padding: 20px 0;
        background: #fff;
        border-top: 1px solid #ddd;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    }

    .navbar.active {
        display: block;
    }

    .navbar ul {
        flex-direction: column;
        gap: 15px;
        align-items: flex-start;
        padding: 0 20px;
    }

    .navbar li {
        width: 100%;
    }

    .navbar a {
        padding: 8px 0;
        display: block;
    }

    .btn-principal {
        display: block;
        /* CTA se hace un bloque en móvil */
        width: 90%;
        text-align: center;
        margin: 15px auto 0;
    }

    /* Dropdown en móvil */
    .dropdown-menu {
        position: static;
        box-shadow: none;
        border: none;
        padding-left: 20px;
        padding-top: 0;
        min-width: unset;
        width: 100%;
    }

    /* Animación del ícono al abrir */
    .menu-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translateY(8px);
    }

    .menu-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .menu-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translateY(-8px);
    }

    .tech-content img {
        width: 100%;
    }
}

/* ================== RESPONSIVE SMALLER ================== */
@media (max-width: 480px) {
    .logo img {
        height: 60px;
    }

    .slogan {
        display: none;
        /* Ocultar eslogan en el móvil más pequeño */
    }

    .logo-track {
        gap: 20px;
        animation-duration: 60s;
    }

    .logo-track img {
        height: clamp(40px, 10vw, 70px);
    }
}


/* ================== PRELOADER (SIN CAMBIOS) ================== */
#preloader {
    position: fixed;
    inset: 0;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

#preloader.hide {
    opacity: 0;
    visibility: hidden;
}

.loader-content {
    text-align: center;
}

.loader-content img {
    width: 120px;
    margin-bottom: 15px;
    animation: fadeIn 1.5s ease-in-out infinite alternate;
}

.loader {
    width: 60px;
    height: 60px;
    border: 5px solid #ddd;
    border-top: 5px solid #6c8d43;
    border-radius: 50%;
    margin: 0 auto 10px;
    animation: spin 1s linear infinite;
}

.loader-content p {
    font-weight: 500;
    color: #555;
    font-size: 1rem;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0.5;
    }

    to {
        opacity: 1;
    }
}








.logo-carousel {
    position: relative;
    overflow: hidden;
    width: 100%;
    padding: 40px 0;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(3px);
    border-radius: 20px;
    box-shadow: 0 0 20px rgba(108, 141, 67, 0.3);
}

.logo-track {
    display: flex;
    width: calc(250px * 20);
    /* ancho total aproximado */
    animation: scrollInfinite 40s linear infinite;
}

.logo-track img {
    height: 120px;
    margin: 0 40px;
    opacity: 0.8;
    transition: all 0.4s ease;
}

.logo-track img:hover {
    filter: grayscale(0%) brightness(1);
    opacity: 1;
    transform: scale(1.1);
}

/* Animación infinita suave */
@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

/* Efecto pausa al pasar el mouse */
.logo-carousel:hover .logo-track {
    animation-play-state: paused;
}

/* Responsive */
@media (max-width: 768px) {
    .logo-track img {
        height: 70px;
        margin: 0 20px;
    }
}

@media (max-width: 480px) {
    .logo-track img {
        height: 50px;
        margin: 0 15px;
    }
}









/* Pantalla de carga */
#preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: fadeOut 1.5s forwards;
}

.preloader-logo {
    width: 150px;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes fadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }

    80% {
        opacity: 0.3;
    }

    100% {
        opacity: 0;
        visibility: hidden;
    }
}

/* Responsive */
@media(max-width: 991px) {
    .menu label {
        display: block;
        /* El ícono del menú aparece */
    }

    .navbar {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        display: none;
        flex-direction: column;
    }

    #menu:checked~.navbar {
        display: flex;
        /* Muestra el menú al hacer click en el ícono */
    }

    .navbar ul {
        width: 100%;
        flex-direction: column;
    }

    .navbar li {
        width: 100%;
    }

    .navbar li a {
        padding: 15px;
        display: block;
        color: #6c8d43;
    }

    .header {
        min-height: auto;
    }


    .header-content {
        padding: 100px 30px;
    }

    .info-1 {
        padding: 200px 30px;
    }

    .info-circle {
        flex-direction: column;
        align-items: center;
    }

    .circle-txt {
        width: 100px;
        margin-bottom: 25px;
    }

    h2 {
        font-size: 40px;
    }
}

/* ================== ANIMACIÓN 20 ANIVERSARIO ================== */
#aniversario20 {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 5000; /* Sobre todo */
    opacity: 0;
    pointer-events: none;
    animation: anivFadeIn 0.8s forwards;
}

.aniv-contenido {
    text-align: center;
    opacity: 0;
    transform: scale(0.7);
    animation: anivZoom 1s 0.3s forwards;
}

.aniv-contenido img {
    width: 600px;
    margin-bottom: 20px;
}


@keyframes anivFadeIn {
    to {
        opacity: 1;
        pointer-events: auto;
    }
}

@keyframes anivZoom {
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes anivFadeOut {
    to {
        opacity: 0;
        pointer-events: none;
    }
}

