:root {
    --primary-color: #2e7d32; /* Green */
    --secondary-color: #ff8c00; /* Orange */
    --background-color: #ffffff; /* White */
    --text-color: #777474;
    --accent-color: #ff5722; /* Darker orange for accent */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--background-color);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

header {
    background: linear-gradient(135deg, #2e7d32, #000);
    backdrop-filter: blur(15px);
    color: #fff;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    transition: background-color 0.3s ease;
}

header.scrolled {
    background-color: rgba(46, 125, 50, 1); /* Solid green */
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
/* === LOGO CONTAINER MEJORADO === */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px; /* Espacio entre imagen y texto */
    padding: 5px 0;
    transition: transform 0.3s ease;
}

/* Logo de imagen */
.logo-img {
    width: 44px;
    height: auto;
    border-radius: 8px;
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);*/
    transition: all 0.3s ease;
    /*filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));*/
}

/* Efecto hover en el logo (opcional) */
.logo-container:hover .logo-img {
    transform: scale(1.05);
   /* box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);*/
}

/* Texto del logo */
.logo-text {
    font-family: 'Montserrat', sans-serif;
    font-size: 26px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 0.5px;
    position: relative;
    text-shadow:
        0 0 8px rgba(255, 255, 255, 0.3),
        0 0 16px rgba(42, 243, 35, 0.4),
        0 0 24px rgba(42, 243, 35, 0.3),
        0 0 32px rgba(42, 243, 35, 0.2);
    transition: text-shadow 0.4s ease;
    white-space: nowrap;
}

/* Efecto de brillo luminoso al pasar el mouse */
.logo-container:hover .logo-text {
    text-shadow:
        0 0 10px rgba(255, 255, 255, 0.5),
        0 0 20px rgba(42, 243, 35, 0.6),
        0 0 30px rgba(42, 243, 35, 0.7),
        0 0 40px rgba(42, 243, 35, 0.8),
        0 0 50px rgba(42, 243, 35, 0.9);
    transform: scale(1.03);
}

/* Ajuste para móviles: tamaño más pequeño */
@media (max-width: 768px) {
    .logo-container {
        gap: 8px;
    }

    .logo-img {
        width: 38px;
    }

    .logo-text {
        font-size: 22px;
        letter-spacing: 0;
    }

    .logo-container:hover .logo-text {
        transform: none; /* Desactivar escala en móvil */
        text-shadow: 0 0 10px rgba(42, 243, 35, 0.6);
    }
}
/* === NAVEGACIÓN CON ÍCONOS === */
.nav-links {
    display: flex;
    list-style: none;
    gap: 30px; /* Espacio entre ítems */
    align-items: center;
}

.nav-links a {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    text-align: center;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 8px;
    min-width: 70px;
    position: relative;
    opacity: 0.9;
}

.nav-links a:hover {
    background-color: rgba(255, 255, 255, 0.15);
    transform: translateY(-3px);
    opacity: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Estilo de los íconos en el menú */
.nav-icon {
    width: 24px;
    height: 24px;
    margin-bottom: 6px;
    filter: brightness(100%) invert(1); /* Si los íconos son oscuros, esto los blanquea */
    transition: transform 0.3s ease;
}

.nav-links a:hover .nav-icon {
    transform: scale(1.15);
}

/* Para pantallas pequeñas (móviles) */
@media (max-width: 768px) {
    .nav-links {
        gap: 15px;
        padding: 10px 0;
        background-color: rgba(37, 88, 23, 0.95);
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        flex-direction: row;
        justify-content: space-around;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        display: none;
    }

    .nav-links.active {
        display: flex;
    }

    .nav-links a {
        font-size: 13px;
        padding: 10px 8px;
    }

    .nav-icon {
        width: 22px;
        height: 22px;
    }
}

.login-img img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.login-img img:hover {
    transform: scale(1.1);
    box-shadow: 0 0 10px rgba(255, 140, 0, 0.5);
    /*border-color: var(--secondary-color);*/
}

.hero {
    background-image: url('imagenes/hero-background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.6);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px #ff8c00;
}

.hero p {
    font-size: 24px;
    margin-bottom: 30px;
    text-shadow: 1px 1px 2px #2e7d32;
}

.btn {
    display: inline-block;
    background: linear-gradient(162deg, rgb(0 0 0 / 79%), rgb(217 138 20 / 82%));
    box-shadow: 0 4px 10px rgb(0 0 0 / 79%);
    color: #fff;
    padding: 12px 24px;
    text-decoration: none;
    border-radius: 15px;
    transition: background-color 0.3s ease, transform 0.3s ease;
    font-weight: bold;
    text-transform: uppercase;
}

.btn:hover {
    background-color: #000; /* Tono más oscuro al pasar el ratón */
        transform: translateY(-2px); /* Efecto de "levantar" */
        box-shadow: 0 6px 15px rgba(0, 123, 255, 0.3);
}

.section {
    padding: 100px 0;
}

.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1470c1; /* Green */
    font-family: 'Montserrat', sans-serif;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.service-card {
    background-color: #fff;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 6px #2e7d32;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.service-card .service-details {
    position: absolute;
    bottom: -100%;
    left: 0;
    right: 0;
    background: rgba(46, 125, 50, 0.9); /* Green with transparency */
    color: #fff;
    padding: 15px;
    transition: bottom 0.3s ease-in-out;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgb(0 0 0 / 41%);
}

.service-card:hover .service-details {
    bottom: 0;
}

.service-card i {
    font-size: 48px;
    color: #2e7d32; /* Green */
    margin-bottom: 20px;
}

.service-card h3 {
    font-size: 24px;
    margin-bottom: 15px;
    color: #2e7d32; /* Green */
}

.about-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.about-text {
    flex: 1;
    padding-right: 40px;
}

.about-image {
    flex: 1;
    position: relative;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.about-image::before {
    content: '';
    position: absolute;
    top: -20px;
    left: -20px;
    right: 20px;
    bottom: 20px;
    border: 5px solid var(--secondary-color);
    border-radius: 10px;
    z-index: -1;
}
/* Testimonios */
.testimonial-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: #ccc #f9f9f9;
}

.testimonial-slider::-webkit-scrollbar {
    height: 6px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.testimonial {
    scroll-snap-align: start;
    flex: 0 0 320px;
    background-color: #ffffff;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgb(0 0 0 / 37%);
    padding: 25px;
    text-align: center;
    transition: transform 0.3s ease;
}

.testimonial:hover {
    transform: translateY(-5px);
}

.testimonial-img {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--secondary-color);
    margin: 0 auto 15px;
    display: block;
}

.testimonial p {
    font-size: 15px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 15px;
    font-style: italic;
}

.testimonial h4 {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin: 0;
}
.quote-icon {
    position: absolute;
    bottom: -5px;
    right: -5px;
    background: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}
.testimonial-slider::-webkit-scrollbar {
    display: none;
}
.testimonial-author {
    font-size: 1.2rem;
    color: #2c3e50;
    margin: 10px 0 5px;
    font-weight: 600;
}

.testimonial-company {
    font-size: 0.9rem;
    color: #7f8c8d;
    margin-bottom: 0;
    font-weight: 500;
}

.testimonial-text {
    font-size: 1rem;
    color: #555;
    line-height: 1.7;
    margin-bottom: 20px;
    font-style: italic;
    position: relative;
    padding: 0 10px;
}

.rating {
    color: #ffc107;
    font-size: 1.2rem;
    margin-top: auto;
    padding-top: 15px;
}

/* Responsive */
@media (max-width: 768px) {
    .testimonial {
        flex: 0 0 280px;
    }
    
    .testimonial-img-container {
        width: 80px;
        height: 80px;
    }
}
/* Mapa */
.map-container {
    width: calc(100% - 40px); /* Resta 20px a cada lado */
    height: 450px;
    margin: 0 20px; /* Margen lateral */
    border-radius: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

/* Footer */
footer {
    background: linear-gradient(135deg, #2e7d32, #000);
    color: #fff;
    padding: 60px 0 30px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -5px;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-about-text {
    color: #ddd;
    line-height: 1.6;
    font-size: 14px;
}

.footer-section p,
.footer-section a {
    color: #bbb;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.footer-section a {
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-section a:hover {
    color: var(--background-color);
}

.social-icons {
    display: flex;
    gap: 15px;
    margin-top: 10px;
}

.social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all 0.3s ease;
}

.social-link i {
    font-size: 18px;
}

.social-link.facebook:hover { background: #1877f2; transform: translateY(-3px); }
.social-link.instagram:hover { background: #e1306c; transform: translateY(-3px); }
.social-link.linkedin:hover { background: #0077b5; transform: translateY(-3px); }

.links ul {
    list-style: none;
    padding: 0;
}

.links ul li {
    margin-bottom: 8px;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: #aaa;
    font-size: 13px;
}

/* Animaciones */
.floating {
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}


@media (max-width: 768px) {
    .nav-links {
        display: none;
    }
    .about-content {
        flex-direction: column;
    }
    .about-text {
        padding-right: 0;
        margin-bottom: 40px;
    }
    .footer-content {
        flex-direction: column;
    }
    .footer-section {
        margin-right: 0;
        margin-bottom: 40px;
    }
    .hero h1 {
        font-size: 36px;
    }
    .hero p {
        font-size: 18px;
    }
    .section-title {
        font-size: 28px;
    }
    .service-card {
        padding: 20px;
    }
    .services-grid {
        grid-template-columns: 1fr;
    }
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.floating {
    animation: float 3s ease-in-out infinite;
}

.map-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Estilos del Modal */
.modal {
    display: none; /* Oculto por defecto */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 20px;
    border-radius: 8px;
    max-width: 600px;
    text-align: center;
}

.modal-content img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 20px 0;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #000;
}

.contact-container {
    position: relative;
    width: 100%;    
    color: white;
    padding: 20px;
}

.logo {
    font-size: 24px;
    margin: 20px;
    color: #ffffff;
    text-shadow:
      0 0 10px rgba(42, 243, 35, 0.5),
      0 0 20px rgba(42, 243, 35, 0.5),
      0 0 30px rgba(42, 243, 35, 0.5),
      0 0 40px rgba(42, 243, 35, 0.5);
}

.content-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    max-width: 1200px;
    margin: 50px auto;
}

.text-content {
    flex: 1;
    padding: 20px;
    max-width: 500px;    
}

.form-container {
    flex: 1;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 10px;
    backdrop-filter: blur(10px);
    max-width: 500px;
}

input, textarea {
    width: 100%;
    padding: 10px;
    margin: 10px 0;
    border: none;
    border-radius: 5px;
    background: rgba(255,255,255,0.9);
}

button {
    background: #46c250;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s;
}

.social-icons {
    text-align: center;
    margin-top: 30px;
}

.social-icons a {
    margin: 0 15px;
    color: white;
    text-decoration: none;
    font-size: 24px;
}

.social-icons i {
    transition: transform 0.3s;
}

.social-icons i:hover {
    transform: scale(1.2);
}
/* Hover por red social con colores oficiales */
.social-link.facebook:hover {
    background: #1877f2;
    transform: translateY(-3px);
}

.social-link.instagram:hover {
    background: #e1306c;
    transform: translateY(-3px);
}

.social-link.linkedin:hover {
    background: #0077b5;
    transform: translateY(-3px);
}

.social-link.whatsapp:hover {
    background: #25D366; /* Color oficial de WhatsApp */
    transform: translateY(-3px);
}
/* Sección de testimonios */
#testimonials {
    background-color: #ddd;
    padding: 60px 20px;
    text-align: center;
}


/* Contenedor de los testimonios */
.testimonial-slider {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 20px;
    padding-bottom: 10px;
}

.testimonial p {
    font-size: 16px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 15px;
}

.testimonial h4 {
    font-size: 14px;
    color: #333;
    font-weight: bold;
    margin-top: 10px;
    text-align: right;
}

/* Scroll personalizable para la sección de testimonios */
.testimonial-slider::-webkit-scrollbar {
    height: 8px;
}

.testimonial-slider::-webkit-scrollbar-thumb {
    background-color: #ccc;
    border-radius: 10px;
}

.testimonial-slider::-webkit-scrollbar-thumb:hover {
    background-color: #aaa;
}
.nav-links .nav-icon {
    width: 30px; /* Ancho del icono */
    height: 30px; /* Alto del icono (asegura que sea cuadrado) */
    margin-right: 8px; /* Espacio a la derecha del icono para separarlo del texto */
    vertical-align: middle; /* Alineación vertical */
    object-fit: contain; /* Asegura que la imagen se ajuste sin cortarse */
     filter: brightness(0) invert(1);
}
/* Estilos para pantallas más pequeñas (opcional, pero recomendado) */
@media (max-width: 768px) {
    .nav-links {
        flex-direction: column; /* Coloca los enlaces en columna */
        align-items: center; /* Centra los elementos cuando están en columna */
        gap: 10px; /* Menos espacio entre ellos */
    }

    .nav-links a {
        width: fit-content; /* El ancho se ajusta al contenido */
        padding: 8px 12px;
        font-size: 1em;
    }

    .nav-links .nav-icon {
        width: 20px;
        height: 20px;
        margin-right: 6px;
    }
}
/* Imagen del servicio */
.service-card img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    margin-bottom: 20px;   
    transition: transform 0.3s ease;
}

.service-card:hover img {
    transform: scale(1.1);
}
.contact-container {
            position: relative;
            width: 100%;
            min-height: 112vh;
            background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../imagenes/fondo-contacto.jpg');
            background-size: cover;
            background-position: center;
          /*  background-attachment: fixed;*/
            color: white;
            padding: 20px;
        }   
             .form-container button {
            background: #25D366; /* Color oficial de WhatsApp */
            color: white;
            border: none;
            padding: 12px 24px;
            border-radius: 6px;
            cursor: pointer;
            font-size: 16px;
            font-weight: bold;
            transition: background 0.3s, transform 0.2s;
            width: 100%;
            margin-top: 10px;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 8px;
        }
        .form-container button:hover {
            background: #128C7E;
            transform: translateY(-2px);
        }    
        .content-wrapper {
            display: flex;
            justify-content: space-around;
            align-items: center;
            max-width: 1200px;
            margin: 80px auto 20px;
            flex-wrap: wrap;
            gap: 30px;
        }        
               .back-link {
                text-align: center;
                margin-top: 20px;
                }

                .back-link a {
                    color: #ccc;
                    font-size: 15px;
                    text-decoration: none;
                    transition: color 0.3s ease;
                }

                .back-link a:hover {
                    color: #fff;
                    text-decoration: underline;
                }

                .back-link a i {
                    margin-right: 5px;
                }