/* Estilos generales */

html {
    scroll-behavior: smooth;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    max-width: 100%;
}

body {
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

section {
    padding: 60px 0;
}

.black {
    color: #2c2c2c;
}

h1,
h2,
h3 {
    margin-bottom: 20px;
    color: #ffffff;
}

p {
    margin-bottom: 15px;
    color: #ffffff;
}



/* Header y Navegación */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
}

.spam {
    color: #439f38;
}

.navbar {
    position: relative;
    top: -20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    border-bottom: 2px solid #ffffff;
    border-radius: 0 0 20px 20px;
    padding: 10px 30px;
}

.nav-links a[data-current="true"] {
    color: #439f38;
    font-weight: bold;
}



.badge {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #439f38;
    padding: 1px 12px;
    border-radius: 20px;
    width: 150px;
    height: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
}

.badge:hover {
    transform: scale(1.05);
    background: #439f38;

}

.badge img {
    max-height: 110%;
    max-width: 100%;
    transition: transform 0.3s ease;
}

.badge:hover img {
    transform: scale(1.05);
}


.logo img {
    width: 100px;
    height: auto;
    display: block;
}



.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}


.nav-links a:hover {
    color: #439f38;
}




/* Estilos para los menús desplegables */
.dropdown {
    position: relative;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 0 0 10px 10px;
    min-width: 200px;
    display: none;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

.dropdown-menu a:last-child {
    border-bottom: none;
    border-radius: 0 0 10px 10px;
}

.dropdown-menu a:hover {
    background-color: #439f38;
    color: white !important;
}

/* Flecha indicadora en los items con dropdown */
.dropdown>a::after {
    content: "▼";
    font-size: 10px;
    margin-left: 5px;
    vertical-align: middle;
}


.dropdown:hover .dropdown-menu {
    display: block;
}

.dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: white;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}



.nav-links a.active,
.nav-links a.active:visited,
.nav-links a.active:focus {
    color: #439f38;
}


/* Hero Slider */
.hero-slider {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    text-align: center;
    color: white;
    padding-top: 160px;
}

.slide.active {
    opacity: 1;
}

.slide-content {
    max-width: 800px;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 30px;
    border-radius: 10px;
    margin-top: 10px;
    max-height: 60vh;
    overflow-y: auto;
}

.slide-content h1 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: white;
}

.slide-content p {
    font-size: 1.2rem;
    margin-bottom: 0;
}

.static-buttons {
    position: absolute;
    bottom: 50px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.location-btn {
    display: inline-block;
    margin: 0 15px;
    padding: 12px 30px;
    background-color: #439f38;
    color: #ffffff;
    text-decoration: none;
    font-weight: bold;
    border-radius: 30px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.location-btn:hover {
    background-color: #ffffff;
    color: #439f38;
    transform: translateY(-3px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}



/* Indicadores del slider */
.slider-indicators {
    position: absolute;
    bottom: 2px;
    left: 0;
    right: 0;
    text-align: center;
    z-index: 10;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    margin: 0 8px;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #439f38;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: rgba(255, 255, 255, 0.8);
    transform: scale(1.3);
}


.slide-content {
    margin-bottom: 120px;
}

/* Agrega estos estilos al CSS existente */
.about-tag {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 1px 0;
    font-weight: bold;
    font-size: 18px;
    color: #000;
}

.circle-icon {
    display: inline-block;
    width: 12px;
    height: 12px;
    background-color: #439f38;
    border-radius: 50%;
    margin: 0 10px;
}


/* Sección Nosotros */
#nosotros {
    padding: 150px 0;
    background: url("../img/mapa.jpg") no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    /* efecto parallax */
    position: relative;
    z-index: 1;
}

#nosotros::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* misma opacidad que pediste */
    z-index: -1;
}

/* Sección Quiénes Somos */

.about {
    background-color: #1c1c1c;
    padding: 80px 20px;
    color: #fff;
}

.about .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.about-content {
    text-align: left;
}

.about-tag {
    display: inline-block;
    background: #fff;
    color: #1c1c1c;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
}

.about h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 20px;
}

.about h2 .highlight {
    color: #439f38;
}

.about p {
    font-size: 15px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: #ccc;
}

.btn-more {
    display: inline-block;
    background: #439f38;
    color: #fff;
    padding: 12px 24px;
    border-radius: 30px;
    font-weight: bold;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-more:hover {
    background: #2e6f27;
}

/* Sección Nosotros */
#nosotros {
    padding: 150px 0;
    /* más alto para hacer la sección larga */
}

/* Features */
.features {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
}

.feature-item {
    background: url("../img/wp2.jpg") no-repeat center center;
    background-size: cover;
    padding: 50px 25px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
    overflow: hidden;
    min-height: 200px;
}

.feature-item::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(17, 17, 17, 0.6);
    /* capa oscura para mejorar contraste del texto */
    border-radius: 12px;
    z-index: 0;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item img,
.feature-item i {
    position: relative;
    z-index: 1;
    margin-bottom: 20px;
}

/* Íconos */
.feature-icon {
    width: 80px;
    /* antes 50px */
    height: 80px;
    /* más grande */
    filter: invert(66%) sepia(91%) saturate(747%) hue-rotate(70deg) brightness(102%) contrast(105%);
}

.feature-item h4 {
    position: relative;
    z-index: 1;
    font-size: 18px;
    font-weight: 600;
    color: #fff;
}








/* Sección Productos */
.products {
    padding: 80px 20px;
    background: #fff;
}

.products .container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

/* Columna izquierda (imágenes más compactas y montadas) */
.products-left {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    /* espacio más pequeño entre ellas */
}

/* Imagen principal */
.main-image {
    position: relative;
    width: 90%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.main-image img {
    width: 100%;
    display: block;
    border-radius: inherit;
}

/* Imagen secundaria encima, más pequeña y desplazada */
.secondary-image {
    position: relative;
    width: 70%;
    margin-top: -130px;
    /* se monta encima de la principal */
    margin-left: auto;
    border-radius: 12px;
    overflow: hidden;
    z-index: 5;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.secondary-image img {
    width: 100%;
    display: block;
    border-radius: inherit;
}

/* Overlay con el botón de play */
.overlay-circle {
    position: absolute;
    top: -40px;
    left: -40px;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    overflow: hidden;
    background: transparent;
    box-shadow: none;
}

.video-container {
    position: relative;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.video-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
    border-radius: 50%;
}

.video-container:hover .video-thumbnail {
    transform: scale(1.05);
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    cursor: pointer;
    z-index: 10;
    animation: pulse-icon 1.8s infinite;
}

.play-button img {
    width: 60px;
    height: 60px;
    display: block;
    z-index: 11;
}

/* 🔹 Animación de latido con aura */
@keyframes pulse-icon {
    0% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 0 rgba(255, 255, 255, 0));
    }

    30% {
        transform: translate(-50%, -50%) scale(1.15);
        filter: drop-shadow(0 0 10px rgba(67, 160, 71, 0.6));
    }

    50% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 5px rgba(67, 160, 71, 0.5));
    }

    70% {
        transform: translate(-50%, -50%) scale(1.1);
        filter: drop-shadow(0 0 12px rgba(67, 160, 71, 0.6));
    }

    100% {
        transform: translate(-50%, -50%) scale(1);
        filter: drop-shadow(0 0 0 rgba(67, 160, 71, 0));
    }
}

/* Modal para el video */
.video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.video-modal iframe {
    width: 80%;
    height: 80%;
    max-width: 900px;
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}


/* Columna derecha */
.products-right {
    position: relative;

}

.products-tag {
    display: inline-block;
    background: #f3f3f3;
    color: #333;
    font-size: 14px;
    font-weight: bold;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    /* Sombra negra */
}

.products h2 {
    font-size: 2.5rem;
    font-weight: bold;
    margin-bottom: 15px;
}

.products h2 .green {
    color: #439f38;
}

.products p {
    color: #555;
    margin-bottom: 25px;
    line-height: 1.7;
}

/* Contenedor para categorías + experiencia */
.products-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 40px;
    /* espacio entre lista y caja */
}

/* Lista de categorías */
.product-categories {
    list-style: none;
    padding: 0;
    margin: 0;
    flex: 1;
    /* ocupa todo el espacio posible */
}

.product-categories li {
    font-size: 15px;
    color: #333;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}

.product-categories i {
    color: #439f38;
    margin-right: 8px;
}

.experience-box {
    flex-shrink: 0;
    padding: 20px 40px;
    border: 2px solid #ccc;
    border-radius: 12px;
    text-align: center;
    transform: translateX(-30px);
    /* mueve hacia la izquierda */
}


.experience-box .years {
    font-size: 48px;
    font-weight: bold;
    color: #439f38;
    display: block;
}

.experience-box p {
    font-size: 13px;
    color: #555;
    margin: 0;
}





/* Proveedores */
.suppliers {
    text-align: center;
    margin: 60px 0 30px;
}

.suppliers h3 {
    font-size: 2rem;
    font-weight: bold;
    margin-bottom: 10px;
}

.suppliers h3 .green {
    color: #439f38;
}



.suppliers p {
    color: #666;
}

/* Carrusel de marcas */
.brands {
    background: #fff;
    padding: 30px 0;
    position: relative;
}

.brands-slider {
    position: relative;
    overflow: hidden;
    height: 120px;
}

.brands-track {
    display: flex;
    gap: 30px;
    transition: transform 0.5s ease-in-out;
}

.brand-slide {
    height: 100px;
    width: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.brand-slide img {
    max-width: 80%;
    max-height: 70px;
    transition: transform 0.3s;
}

.brand-slide img:hover {
    transform: scale(1.1);
}

/* Flechas */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    font-size: 30px;
    cursor: pointer;
    padding: 8px 12px;
    border-radius: 50%;
    z-index: 10;
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}


/* Resalta cuando haces click */
.brand-slide img:active {
    transform: scale(1.15);
    filter: drop-shadow(0 0 12px rgba(67, 160, 71, 0.9));
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-200px * 7));
    }
}


/* Testimonios */
.testimonials {
    position: relative;
    background: url("../img/mapa.jpg") no-repeat center center/cover;
    padding: 80px 20px;
    color: #fff;
    z-index: 1;
}

.testimonials::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    /* opacidad de la imagen */
    z-index: -1;
}


.testimonials .container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Header */
.testimonials-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.testimonials-header .left {
    flex: 1;
}

.testimonials-header .right {
    flex: 1;
    text-align: right;
}

.tag {
    display: inline-block;
    background: #f3f3f3;
    color: #333;
    font-size: 13px;
    font-weight: 600;
    padding: 6px 14px;
    border-radius: 20px;
    margin-bottom: 15px;
}

.testimonials h2 {
    font-size: 2.5rem;
    font-weight: bold;
}

.testimonials h2 .green {
    color: #439f38;
}

.testimonials-header p {
    color: #ddd;
    margin-bottom: 15px;
}

.btn-green {
    display: inline-block;
    background: #439f38;
    color: #fff;
    padding: 10px 20px;
    font-weight: 600;
    border-radius: 25px;
    text-decoration: none;
    transition: background 0.3s;
}

.btn-green:hover {
    background: #2e7031;
}

/* Grid de testimonios */
.testimonial-grid {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.testimonial {
    flex: 0 0 350px;
    background: #111;
    padding: 30px 20px;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.testimonial .avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 15px;
    border: 3px solid #439f38;
}

.testimonial-text {
    font-style: italic;
    font-size: 0.95rem;
    margin-bottom: 20px;
    color: #ddd;
}

.testimonial-author {
    font-weight: bold;
    margin-bottom: 5px;
    color: #439f38;
    font-size: 0.85rem !important;
    line-height: 1.2;              
}


.testimonial h3.texto-blanco {
  color: #fff !important;
}



.testimonial-role {
    font-size: 0.85rem;
    color: #aaa;
    margin-bottom: 10px;
}

.stars {
    color: #439f38;
    font-size: 1rem;
}







/* Contacto */
.contact-box {
    margin-left: 20px;
    font-size: 14px;
    color: #333;
}

.contact-item {
    display: flex;
    align-items: flex-start;
    margin-bottom: 12px;
    /* menos espacio entre items */
}

.contact-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #439f38;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    flex-shrink: 0;
}

.contact-icon img {
    width: 30px;
    height: 30px;
}

.contact-details {
    line-height: 1.3;
    /* más compacto */
}

.contact-details strong {
    display: inline-block;
    margin-bottom: 2px;
    font-size: 14px;
    color: #000;
}

.contact-details p {
    margin: 0;
    font-size: 13px;
    color: #444;
}




.contact {
    position: relative;
    background: url('../img/oficina-pequena-funcional.webp') center/cover no-repeat;
    padding: 50px 20px 0;
}

.contact-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.85);
}


.contact-container {
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    max-width: 1200px;
    margin: auto;
    z-index: 2;
}

/* Izquierda */
.contact-info {
    flex: 1;
    max-width: 30%;
    background: #fff; /* fondo blanco */
    padding: 10px;    /* espacio interno */
    border-radius: 15px; /* bordes redondeados */
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1); /* sombra suave */
}

.contact-info h2 {
    font-size: 28px;
    margin-bottom: 15px;
}

.contact-info p {
    margin-bottom: 10px;
    line-height: 1.5;
}

.green {
    color: #28a745;
    font-weight: bold;
}

.blue {
    color: #004aad;
    font-weight: bold;
}


.btn-contact {
    background: #e6f7ef;
    color: #28a745;
    border: none;
    padding: 6px 15px;
    border-radius: 20px;
    font-size: 14px;
    margin-bottom: 15px;
    cursor: pointer;
}

/* Imagen central */
.contact-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    max-width: 30%;
}

.contact-image img {
    max-width: 350px;
    position: relative;
    top: 150px;
    bottom: -20px;
}

/* Derecha */
.contact-form {
    flex: 1;
    background: #fff;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    max-width: 30%;
}

.contact-form h3 {
    font-size: 22px;
    margin-bottom: 10px;
}

.contact-form p {
    font-size: 14px;
    margin-bottom: 20px;
    color: #555;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
}

/* Efecto al escribir en inputs y textarea */
.contact-form input:focus,
.contact-form textarea:focus {
    border: 1px solid #28a745; /* verde */
    box-shadow: 0 0 5px rgba(40, 167, 69, 0.4); /* brillo verde */
}

/* Ajustes del textarea */
.contact-form textarea {
    height: 80px;           /* altura inicial pequeña */
    resize: vertical;       /* permite crecer hacia abajo */
    max-height: 400px;      /* altura máxima */
    min-height: 80px;       /* altura mínima inicial */
}


/* Contenedor estilizado para el select */
.contact-form select {
    width: 100%;
    margin-bottom: 15px;
    padding: 12px 40px 12px 15px; /* espacio extra a la derecha para la flecha */
    border: 1px solid #ddd;
    border-radius: 10px;
    outline: none;
    font-size: 14px;
    background-color: #fff;
    color: #333;
    cursor: pointer;

    /* Quitamos la flecha nativa */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* Flecha personalizada */
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23439f38' height='24' viewBox='0 0 24 24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 18px;
    transition: border 0.3s, box-shadow 0.3s;
}

/* Contenedor principal */
.custom-select {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
    font-size: 14px;
    user-select: none;
}

/* Caja que muestra la opción seleccionada */
.custom-select .selected {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 12px 40px 12px 15px;
    cursor: pointer;
    transition: border 0.3s, box-shadow 0.3s;
    position: relative;
}

/* Flecha personalizada */
.custom-select .selected::after {
    content: "";
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml;utf8,<svg fill='%23439f38' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M7 10l5 5 5-5z'/></svg>");
    background-size: contain;
    background-repeat: no-repeat;
    pointer-events: none;
}

/* Hover y focus */
.custom-select .selected:hover,
.custom-select.active .selected {
    border: 1px solid #439f38;
    box-shadow: 0 0 6px rgba(67, 159, 56, 0.4);
}

/* Lista de opciones */
.custom-select .options {
    position: absolute;
    top: 110%;
    left: 0;
    width: 100%;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.1);
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;

    /* Oculto por defecto */
    display: none;
}

/* Mostrar cuando está abierto */
.custom-select.open .options {
    display: block;
    animation: fadeIn 0.2s ease-in-out;
}


/* Estilos de cada opción */
.custom-select .options li {
    padding: 12px 15px;
    cursor: pointer;
    color: #000000;
    transition: background 0.2s;
    border-bottom: 1px solid #f1f1f1;
}

/* Último sin borde */
.custom-select .options li:last-child {
    border-bottom: none;
}

/* Hover en opción */
.custom-select .options li:hover {
    background: #e6f4ea; /* verde muy suave */
    color: #439f38;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-5px); }
    to { opacity: 1; transform: translateY(0); }
}





.btn-submit {
    background: #28a745;
    color: white;
    padding: 12px;
    width: 100%;
    border: none;
    border-radius: 10px;
    font-weight: bold;
    cursor: pointer;
    transition: 0.3s;
}

.btn-submit:hover {
    background: #1f7a32;
}


.stats {
    display: flex;
    justify-content: space-around;
    background: #439f38;
    color: white;
    padding: 30px 10px;
    border-radius: 20px;
    margin: 40px auto 0;
    max-width: 1100px;
    z-index: 2;
    position: relative;
}


.stat {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 20px;
    border-right: 1px solid rgba(255, 255, 255, 0.5);
}

.stat:last-child {
    border-right: none;
}


.stat-icon img {
    width: 60px;
    height: 60px;
}

.stat-info h3 {
    font-size: 40px;
    margin: 0 0 8px;
}

.stat-info p {
    font-size: 19px;
    margin: 0;
}




/* Footer compacto */
footer {
    position: relative;
    background: url("../img/mapa.jpg") no-repeat center center;
    background-size: cover;
    color: #fff;
    padding: 40px 0 10px; 
    font-size: 14px;
    z-index: 1;
}


footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: -1;
}

.footer-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    max-width: 1200px;
    margin: auto;
    gap: 20px;
}


.footer-logo {
    flex: 1;
    min-width: 220px;
}
.footer-logo img {
    max-width: 150px;
    margin-bottom: 10px;
}
.footer-logo p {
    line-height: 1.5;
    color: #ddd;
    font-size: 13px;
}

.footer-section {
    flex: 1;
    min-width: 180px;
}
.footer-section h3 {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-links,
.footer-contact {
    list-style: none;
    padding: 0;
    margin: 0;
}
.footer-links li,
.footer-contact li {
    margin-bottom: 8px;
}
.footer-links a {
    color: #ccc;
    text-decoration: none;
    font-size: 13px;
}
.footer-links a:hover {
    color: #43a047;
}

/* Contacto */
.footer-contact li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}
.footer-contact i {
    color: #43a047;
    font-size: 13px;
}

.footer-bottom {
    text-align: center;
    margin-top: 20px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    font-size: 12px;
    color: #aaa;
    line-height: 1.4;
}
.footer-bottom a {
    color: #43a047;
    text-decoration: none;
    margin-left: 8px;
    font-size: 12px;
}
.footer-bottom a:hover {
    text-decoration: underline;
}


.hamburger {
    display: none;
    cursor: pointer;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 25px;
    position: relative;
    z-index: 1000;
}

.hamburger .bar {
    width: 100%;
    height: 3px;
    background-color: #ffffff;
    border-radius: 10px;
    transition: all 0.3s ease;
}

/* Estado activo para la animación de la 'X' */
.hamburger.active .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.active .bar:nth-child(1) {
    transform: translateY(11px) rotate(45deg);
}

.hamburger.active .bar:nth-child(3) {
    transform: translateY(-11px) rotate(-45deg);
}


.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 25px;
}



.badge {
    width: 150px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #439f38;
    padding: 1px 12px;
    border-radius: 20px;
    text-decoration: none;
    transition: all 0.3s ease;
    transform: scale(1);
}

.badge img {
    max-height: 110%;
    max-width: 100%;
    transition: transform 0.3s ease;
}


.about .container,
.products .container {
    display: grid;
    gap: 40px;
    grid-template-columns: 1fr 1fr;
}

.about .container {
    align-items: center;
}



/* Media Queries */
@media (max-width: 1200px) {
    .navbar {
        padding: 10px 20px;
    }

    .nav-links li {
        margin-left: 15px;
    }

    .logo img {
        width: 130px;
    }
}

@media (max-width: 992px) {
    .contact-image {
        display: none;
    }
    .about .container,
    .products .container {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .products-info {
        flex-direction: column;
        align-items: flex-start;
    }

    .experience-box {
        transform: none;
        margin-top: 20px;
        margin-left: 100px;
    }

    .contact-container {
        flex-direction: column;
    }

    .contact-info,
    .contact-form,
    .contact-image {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .contact-image {
        order: -1;
        justify-content: center;
    }

    .contact-image img {
        top: 0;
        max-width: 300px;
    }

    .stats {
        flex-wrap: wrap;
        justify-content: center;
    }

    .stat {
        flex: 0 0 50%;
        margin-bottom: 20px;
        border-right: none;
        justify-content: center;
    }

    .footer-container {
        gap: 20px;
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    
    .contact-image {
        display: none;
    }
    

    .nav-links {
        display: none;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.9);
        z-index: 999;
        transform: translateX(-100%);
        transition: transform 0.5s ease;
    }

    .nav-links.active {
        display: flex;
        transform: translateX(0);
    }

    /* 🔹 Opciones principales del navbar con línea divisoria */
    .nav-links li a {
        display: block;
        padding: 12px 20px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        text-align: center;
        font-size: 1.2rem;
        color: white;
        text-decoration: none;
        transition: color 0.3s ease;
    }

    .nav-links li:last-child a {
        border-bottom: none;
    }

    .nav-links li a:hover,
    .nav-links li a:focus {
        color: #00b050;
        background: transparent;
    }

    /* 🔹 Dropdown en móvil */
    .nav-links.active .dropdown-menu {
        display: none;
        position: static;
        background-color: transparent;
        box-shadow: none;
        width: 100%;
        padding: 0;
    }

    .nav-links.active .dropdown-menu.active {
        display: flex;
        flex-direction: column;
        align-items: flex-start;
        padding-left: 20px;
    }

    .nav-links .badge  {
        width: 150px !important;  
        height: auto !important; 
    }

    .nav-links .badge {
        margin-top: 20px;       
        display: flex;
        justify-content: center; 
    }


    .dropdown-menu a {
        font-size: 1rem; 
        padding: 10px 15px;
        text-align: left;
        color: white;
        border-bottom: none; 
        border-left: 3px solid rgba(255, 255, 255, 0.3); 
    }


    .nav-links .dropdown-menu a {
        font-size: 0.9rem !important; /* forzamos */
    }

    .dropdown-menu a:hover,
    .dropdown-menu a:focus {
        color: #00b050;
        border-left: 3px solid #00b050; 
        background: transparent;
    }

    .hamburger {
        display: flex;
    }

    .logo img {
        width: 120px;
    }


    .dropdown:hover .dropdown-menu {
        display: none;
    }

    .dropdown>a::after {
        content: "";
    }

    .slide-content h1 {
        font-size: 2rem;
    }

    .slide-content p {
        font-size: 1rem;
    }

    .static-buttons {
        bottom: 30px;
    }

    .location-btn {
        padding: 10px 20px;
        font-size: 14px;
        margin: 0 8px;
    }

    .features {
        grid-template-columns: 1fr;
    }

    .feature-item {
        padding: 30px 20px;
    }

    .overlay-circle {
        width: 150px;
        height: 150px;
        top: -30px;
        left: -30px;
    }

    .play-button img {
        width: 40px;
        height: 40px;
    }

    .testimonials-header {
        flex-direction: column;
    }

    .testimonials-header .right {
        text-align: left;
        margin-top: 20px;
    }

    .testimonial {
        flex: 0 0 100%;
    }

    .brand-slide {
        width: 150px;
    }

    .arrow {
        font-size: 20px;
        padding: 6px 10px;
    }
}

@media (max-width: 576px) {
    /* Eliminar cualquier transform o translate que cause desplazamiento */
     * {
        translate: none !important;
    }
    
    /* Reset de posición absoluta/fixed */
    .nav-links,
    .dropdown-menu,
    .slide,
    .hero-slider {
        left: 0 !important;
        right: 0 !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
    
    /* Asegurar que el viewport sea exacto */
    html {
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    *, *:before, *:after {
        box-sizing: inherit;
    }
    
    /* Forzar al viewport real */
    body::before {
        content: "";
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw;
        height: 5px;
        background: red;
        z-index: 9999;
        display: none; /* Solo para debug */
    }
    .contact-image {
        display: none;
    }
    /* Ajustes para móviles pequeños */
    .navbar {
        padding: 10px 15px;
    }

    .logo img {
        width: 100px;
    }

    .slide-content {
        padding: 20px;
        margin-top: 0;
    }

    .slide-content h1 {
        font-size: 1.8rem;
    }

    .static-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .location-btn {
        width: 80%;
        margin: 5px 0;
    }

    .about h2,
    .products h2,
    .testimonials h2 {
        font-size: 2rem;
    }

    .products-tag,
    .about-tag {
        font-size: 12px;
        padding: 5px 12px;
    }

    .circle-icon {
        width: 8px;
        height: 8px;
        margin: 0 8px;
    }

    .product-categories li {
        font-size: 14px;
    }

    .experience-box {
        padding: 15px 25px;
    }

    .experience-box .years {
        font-size: 36px;
    }

    .stats {
        flex-direction: column;
        align-items: center;
    }

    .stat {
        flex: 0 0 100%;
        margin-bottom: 25px;
    }

    .footer-section {
        min-width: 100%;
        margin-left: 20px;
    }

}




.badge {
    width: 190px;
    height: 50px;
}

.badge img {
    max-height: 100%;
}



/* Botón scroll top */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: #439f38; 
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    display: none; 
    align-items: center;
    justify-content: center;
    z-index: 1000;
    transition: all 0.3s ease;
    padding: 10px;
}

.scroll-top img {
    width: 24px;
    height: 24px;
    object-fit: contain;
    pointer-events: none; 
}


.scroll-top:hover {
    background: #008f40;
    transform: scale(1.15);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}



.swal-popup {
    border-radius: 15px !important;
    padding: 25px !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.swal-title {
    font-size: 20px !important;
    color: #439f38 !important; 
    font-weight: bold;
    margin-top: 10px !important;
}

.swal-text {
    font-size: 14px !important;
    color: #555 !important;
}





#preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff; 
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.5s ease, visibility 0.5s ease;
}


.preloader-content {
  text-align: center;
}

.preloader-logo {
  width: 120px;
  margin-bottom: 20px;
}

/* Spinner minimalista */
.spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(67, 159, 56, 0.3); /* verde tenue */
  border-top-color: #439f38; /* verde principal */
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#preloader.hidden {
  opacity: 0;
  visibility: hidden;
}



.error {
    border: 2px solid #dc3545 !important;
    background-color: #f8d7da;
}

.success {
    border: 2px solid #28a745 !important;
}

.error-message {
    color: #dc3545;
    font-size: 12px;
    margin-top: 5px;
    display: none;
}

.form-group {
    margin-bottom: 15px;
    position: relative;
}

.btn-submit:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
    opacity: 0.6;
}