/* Estilos generales para el cuerpo de la página */
body {
    font-family: 'Aptos', sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background-image: url('../images/trama.png'); /* Fondo de trama */
    background-size: cover;
    background-attachment: fixed;
}

/* Barra de navegación principal (fija) */
.top-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(24, 136, 66, 0.5); /* Verde traslúcido */
    color: #fff; /* Texto claro por defecto */
    padding: 10px 60px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
    backdrop-filter: saturate(400%) blur(10px);
    -webkit-backdrop-filter: saturate(100%) blur(10px);
    transition: background-color 0.25s ease, box-shadow 0.25s ease, backdrop-filter 0.25s ease;
}

/* Tamaño del logotipo (+50% respecto al base) */
.logo img {
    height: 75px; /* 50px -> 75px */
}

.menu {
    margin-right: 100px; /* Espacio adicional a la derecha */
}

.menu ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    align-items: center; /* Alinear items verticalmente */
}
    /*boton cotizar*/
.quote-button {
    background-color: #F8E000;
    color: #000 !important; /* Cambiar color de texto para contraste */
    width: 150px; /* Ancho explícito */
    padding: 30px 0; /* Padding vertical */
    border-radius: 5px;
    text-decoration: none;
    font-weight: 1500; /* Hacer el texto del botón más visible */
    display: inline-block; /* Para que 'width' funcione */
    text-align: center; /* Para centrar el texto */
    transition: all 0.3s ease; /* Transición para todos los efectos */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.quote-button:hover {
    background-color: #e0ca00; /* Un tono de amarillo más oscuro para el hover */
    transform: translateY(-3px); /* Mover hacia arriba */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15); /* Sombra más pronunciada */
}

/* Desactivar el efecto de subrayado para el botón Cotizar */
.menu ul li a.quote-button::after {
    content: none;
}

.menu ul li {
    margin-left: 15px; /* Reducir el espacio entre elementos del menú */
}

/* Enlaces del menú: tamaño reducido y color oscuro para fondo blanco */
.menu ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: normal; /* Quitar negrita */
    font-size: 0.85rem; /* Reducir aún más el tamaño de la fuente */
    padding: 6px 0; /* Ajustar padding para el efecto de subrayado */
    position: relative;
    transition: color 0.3s ease;
}

.menu ul li a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    bottom: 0;
    left: 0;
    background-color: #ecf000; /* Color del subrayado */
    transform: scaleX(0);
    transform-origin: bottom right;
    transition: transform 0.3s ease;
}

.menu ul li a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

.menu ul li a:hover {
    color: #ffffff; /* Cambiar color del texto al pasar el mouse */
}

/* Estilos para el menú hamburguesa */
.hamburger-menu {
    display: none; /* Oculto por defecto en desktop */
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 10px;
    z-index: 1001; /* Debe estar sobre la barra de menú */
}

.hamburger-menu .line {
    display: block;
    width: 25px;
    height: 3px;
    background-color: #fff;
    margin: 5px 0;
    transition: all 0.3s ease-in-out;
}



/* Estilos responsivos */
@media (max-width: 768px) {
    .top-bar {
        justify-content: center; /* Centra el ícono de hamburguesa */
        align-items: center; /* Asegura centrado vertical */
        padding: 15px 20px; /* Un poco más de padding */
        z-index: 1003; /* Mayor que el menú para que siempre sea clickeable */
    }

    .logo {
        display: none; /* Oculta el logo en móvil */
    }

    .menu {
        display: none; /* Oculto por defecto */
        position: fixed;
        top: 0;
        left: 0;
        width: 100vw; /* Ancho completo del viewport */
        height: 100vh; /* Alto completo del viewport */
        background-color: rgba(17, 17, 17, 0.98);
        flex-direction: column;
        justify-content: center; /* Centrar verticalmente */
        align-items: center; /* Centrar horizontalmente */
        z-index: 1002;
        padding: 0; /* Sin padding extra */
        margin: 0; /* Sin márgenes */
        box-sizing: border-box; /* Asegurar que padding no sume al tamaño */
    }

    .menu.is-active {
        display: flex; /* Se muestra al hacer clic */
    }

    .menu ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        width: 100%;
    }

    .menu ul li {
        margin: 10px 0; /* Espacio moderado */
        width: 100%; /* Ocupar ancho disponible */
        display: flex;
        justify-content: center;
    }
    
    .menu ul li a {
        font-size: 1.3rem; /* Tamaño un poco más pequeño para asegurar que quepan todos */
        color: #fff;
        display: block;
        padding: 10px; /* Area táctil */
    }

    .hamburger-menu {
        display: block;
        z-index: 1004; /* Asegurar que esté por encima de todo */
        position: relative; /* Para asegurar contexto de apilamiento */
    }

    .hamburger-menu .line {
        background-color: #fff;
    }

    /* Animación de la hamburguesa a "X" */
    .hamburger-menu.is-active .line:nth-child(1) {
        transform: translateY(8px) rotate(45deg);
    }
    .hamburger-menu.is-active .line:nth-child(2) {
        opacity: 0;
    }
    .hamburger-menu.is-active .line:nth-child(3) {
        transform: translateY(-8px) rotate(-45deg);
    }
}

/* ========================= */
/* Hero Section a pantalla completa */
/* ========================= */
.hero {
    position: relative;
    width: 100%;
    height: 90vh; /* Reducido 10% de la altura de la ventana */
    overflow: hidden;
}

.hero-media {
    position: absolute;
    inset: 0; /* top:0; right:0; bottom:0; left:0 */
    width: 100%;
    height: 100%;
    pointer-events: none; /* Evitar clics sobre el video */
    overflow: hidden;
}

.hero-media iframe,
.hero-media > div, /* Contenedor creado por la API */
.hero-media #heroPlayer {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.5); /* Escalar para eliminar barras negras */
    width: 177.78vh; /* 100vh * (16/9) para cubrir alto con ratio 16:9 */
    height: 100vh;
    min-width: 100%;
    min-height: 56.25vw; /* 100vw * (9/16) para cubrir ancho en pantallas anchas */
    border: 0;
}

/* Asegurar que el iframe dentro del contenedor también cubra todo */
.hero-media #heroPlayer iframe {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 300%; /* Escalar más allá del contenedor */
    height: 300%; /* Escalar más allá del contenedor */
    min-width: 300%;
    min-height: 300%;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5); /* Oscurece para legibilidad */
}

.hero-content {
    position: relative;
    z-index: 1;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 24px;
}

/* Estructura dividida para el Hero Section */
.hero-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    width: 100%;
    max-width: 1200px; /* Ancho máximo para el contenido */
    margin: 0 auto;
    text-align: left; /* Alineación del texto a la izquierda en los contenedores */
}

.hero-logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem; /* Mover el logo hacia abajo */
}

.hero-logo-container img {
    max-width: 40%; /* Reducir tamaño del logo */
    height: auto;
}

.hero-content h1 {
    color: #fff;
    font-family: system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
    font-size: clamp(2rem, 4vw, 3.5rem); /* Tamaño de fuente ligeramente ajustado */
    line-height: 1.2;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
    letter-spacing: 0.5px;
    font-weight: 800;
    margin-bottom: 1rem; /* Espacio debajo del eslogan */
}

.hero-slogan-container p {
    color: #f0f0f0;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 550px;
    text-shadow: 0 1px 5px rgba(0,0,0,0.4);
}

/* --- Media Queries para responsividad --- */
@media (max-width: 768px) {
    .hero-split {
        grid-template-columns: 1fr; /* Una columna en pantallas pequeñas */
        text-align: center; /* Centrar todo en móvil */
        gap: 0.5rem;
        display: flex;
        flex-direction: column;
    }

    .hero-logo-container {
        display: flex; /* Mostrar logotipo en móvil */
        order: 1; /* Logo primero */
        justify-content: center;
        align-items: center;
        padding-top: 2rem;
    }

    .hero-logo-container img {
        max-width: 120px; /* Logo pequeño en móvil */
        height: auto;
    }

    .hero-slogan-container {
        order: 2; /* Texto después del logo */
        display: flex;
        align-items: center;
        justify-content: center;
        text-align: center;
    }

    .hero-slogan-container p {
        margin-left: auto;
        margin-right: auto;
        font-size: 0.85rem; /* Reducir tamaño del párrafo */
        line-height: 1.4;
    }

    .hero-content h1 {
        font-size: clamp(1.8rem, 6vw, 2.5rem); /* Ajuste de fuente para móvil */
        margin-bottom: 0.5rem;
    }
}

/* ========================= */
/* Sección Nosotros */
/* ========================= */
#nosotros {
    padding: 2.8rem 2rem; /* Reducido 30% (de 4rem a 2.8rem) */
    background-image: url('../images/trama.png'); /* Fondo de trama */
    background-size: cover;
    background-attachment: fixed;
}

.nosotros-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
}

.nosotros-title-wrapper {
    grid-column: 1 / -1; /* Ocupa ambas columnas en desktop */
    display: block; /* Mostrar en desktop */
}

.nosotros-title-wrapper h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem; /* Reducido para acercar al contenido */
    text-align: left; /* Alineado a la izquierda en desktop */
}

.nosotros-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    /* Eliminado el efecto de sombra */
}

/* Slider para sección Nosotros */
.nosotros-slider {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,0.12);
    background: #f2f2f2;
}

.nosotros-slider img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
}

.nosotros-slider img.active {
    opacity: 1;
}

@media (max-width: 768px) {
    .nosotros-slider {
        min-height: 280px;
        width: 100%;
        display: block;
    }
    
    .nosotros-image {
        width: 100%;
        display: block;
    }
}

.nosotros-text h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #333;
    margin-bottom: 1rem;
}

.nosotros-text p {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #555;
}

/* Responsividad para la sección Nosotros */
@media (max-width: 768px) {
    .nosotros-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem; /* Reducir espacio entre elementos */
    }

    .nosotros-title-wrapper {
        display: block; /* Mostrar en móvil */
        order: 1; /* Título primero */
        margin-bottom: 0.5rem; /* Espacio reducido después del título */
    }

    .nosotros-title-wrapper h2 {
        margin-bottom: 0.5rem; /* Reducir margen inferior del h2 */
        text-align: center; /* Centrar en móvil */
    }

    .nosotros-image {
        order: 2; /* Imagen después del título */
        margin-bottom: 0.75rem; /* Espacio reducido después del carrusel */
    }

    .nosotros-text {
        order: 3; /* Resto del texto al final */
        margin-top: 0; /* Sin margen superior adicional */
    }

    .nosotros-text h2 {
        display: none; /* Ocultar el h2 dentro de nosotros-text en móvil */
    }
}

/* Animaciones de entrada por scroll */
[data-anim] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.9s ease, transform 0.9s ease;
}

[data-anim].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-anim="fade-up"] {
    transform: translateY(30px);
}

[data-anim="fade-left"] {
    transform: translateX(30px);
}

[data-anim="fade-right"] {
    transform: translateX(-30px);
}

[data-anim="zoom"] {
    transform: scale(0.96);
}

[data-anim="fade-up-delayed"] {
    transform: translateY(40px);
    transition-delay: 0.1s;
}

[data-anim].is-visible[data-anim="zoom"] {
    transform: scale(1);
}

#hero h2 {
    font-size: 3em;
    margin: 0;
}

#hero p {
    font-size: 1.2em;
    margin: 10px 0;
}

#hero button {
    background-color: #ff6600;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#hero button:hover {
    background-color: #e65c00;
}

/* Estilos para el pie de página */
footer {
    background-color: #333;
    color: #fff;
    text-align: center;
    padding: 10px 0;
}

/* Botón flotante WhatsApp */
.whatsapp-fab {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    padding: 0.9rem 1.2rem;
    border-radius: 999px;
    background: linear-gradient(135deg, #f8e000, #f1c600);
    color: #0f0f0f;
    font-weight: 850;
    text-decoration: none;
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.2);
    z-index: 1200;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    border: 1px solid rgba(0,0,0,0.08);
}

.whatsapp-fab:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow: 0 18px 36px rgba(0, 0, 0, 0.28);
    filter: brightness(1.06);
}

.whatsapp-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #0f0f0f;
    color: #25d366;
    border-radius: 50%;
    box-shadow: inset 0 0 0 1px rgba(0,0,0,0.1);
}

.whatsapp-text {
    font-size: 0.95rem;
    line-height: 1.2;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .whatsapp-fab {
        right: 14px;
        bottom: 14px;
        padding: 0.8rem 1rem;
    }
    .whatsapp-text {
        font-size: 0.9rem;
    }
}
/* Estilos para acordeón en sección Nosotros */
.accordion {
    margin-top: 1rem;
}

.accordion-item {
    margin-bottom: 0.5rem;
}

.accordion-button {
    background: #189442;
    color: white;
    border: none;
    padding: 0.75rem 1rem;
    width: 100%;
    text-align: left;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    border-radius: 5px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    user-select: none;
}

.accordion-button:focus {
    outline: 2px solid #f8e000;
    outline-offset: 2px;
}

.accordion-panel {
    padding: 0.75rem 1rem;
    background: #f0f0f0;
    border-radius: 0 0 5px 5px;
    box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
    margin-top: -0.5rem;
}
/* Estilos para iconos circulares y cuadros de diálogo */
.icon-dialogs {
    display: flex;
    justify-content: center;
    gap: 3rem;
    margin-top: 1rem;
}

 .icon-button {
    background: #189442;
    border: none;
    border-radius: 50%;
    width: 75px;
    height: 75px;
    color: white;
    font-size: 1.08rem; /* Reducido 10% adicional */
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.3);
    transition: background-color 0.3s ease, transform 0.3s ease;
}

.icon-button:hover {
    background-color: #0f6b2d;
    transform: scale(1.15);
}

.icon-dialog {
    border: none;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    max-width: 400px;
}

.icon-dialog h3 {
    margin-top: 0;
}

.close-dialog {
    margin-top: 1rem;
    background-color: #189442;
    color: white;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    cursor: pointer;
    font-weight: 700;
    transition: background-color 0.3s ease;
}

.close-dialog:hover {
    background-color: #0f6b2d;
}

/* Estilos para la sección Soluciones y Productos (igual que Nosotros) */
#soluciones-productos {
    padding: 2.8rem 2rem; /* Reducido para acercar a la sección anterior */
}

.soluciones-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

.soluciones-title-wrapper {
    grid-column: 1 / -1; /* Ocupa ambas columnas en desktop */
    display: block; /* Mostrar en desktop */
}

.soluciones-title-wrapper h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 0.5rem; /* Reducido para acercar al contenido */
    text-align: left; /* Alineado a la izquierda en desktop */
}

.soluciones-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
}

.soluciones-text p, .soluciones-text ul {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
}

.soluciones-text ul {
    padding-left: 1.2rem;
    margin-bottom: 1rem;
    text-align: right; /* Alinear a la derecha */
}

.soluciones-text ul li {
    text-align: justify; /* Justificar el texto de cada elemento */
    direction: ltr; /* Mantener dirección de izquierda a derecha */
}


.soluciones-carousel {
    position: relative;
    width: 100%;
    max-width: 340px;
    overflow: hidden;
    border-radius: 8px;
    background: #fff;
    border: 1px solid rgba(0,0,0,0.06);
}

 .carousel {
    position: relative;
    width: 100%;
    height: 360px;
    padding: 14px; /* marco/encuadre para uniformar tamaños */
    box-sizing: border-box;
}

 .carousel img {
    position: absolute;
    top: 14px;
    left: 14px;
    right: 14px;
    bottom: 14px;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

 .carousel img.active {
    opacity: 1;
    z-index: 1;
}

.carousel img {
    /* Asegura consistencia (evita overrides con reglas duplicadas) */
    max-height: none;
    flex-shrink: 0;
}

@keyframes slide {
    0% { transform: translateX(0); }
    33% { transform: translateX(-100%); }
    66% { transform: translateX(-200%); }
    100% { transform: translateX(0); }
}
.soluciones-container .highlight {
    font-size: 1.2rem;
    font-weight: 700;
    color: #0f6b2d; /* Verde oscuro */
    background-color: #d4edda; /* Verde claro de fondo */
    padding: 0.5rem 1rem;
    border-radius: 8px;
    margin-top: 1rem;
    display: block;
    width: 100%;
    box-sizing: border-box;
    grid-column: 1 / -1;
}
/* Estilos para la sección Nuestros clientes */
.clientes-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

/* Sección Ubicación */
#ubicacion {
    padding: 4rem 2rem;
    background: #f8f8f8;
}

/* Sección Contacto */
.contacto {
    padding: 2rem 2rem;
    background: #f5f5f5;
}

.contacto-section-title {
    text-align: right;
    font-size: 2rem;
    font-weight: 900;
    color: #333;
    margin: 0 0 0.75rem;
    padding: 0;
}

.contacto-container {
    max-width: 1100px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
    align-items: stretch;
}

.contacto-hero {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    min-height: 100%;
    background: linear-gradient(135deg, rgba(24,148,66,0.82), rgba(15,107,45,0.82));
    color: #fff;
    display: flex;
    align-items: flex-end;
    padding: 0.95rem;
    box-shadow: 0 14px 32px rgba(0,0,0,0.12);
}

.contacto-hero::before {
    content: "";
    position: absolute;
    inset: 0.45rem;
    border-radius: 12px;
    background: url('../images/contacto.svg') center/95% auto no-repeat;
    opacity: 1;
    pointer-events: none;
}

.contacto-hero-content {
    position: relative;
    z-index: 1;
    max-width: 420px;
}

.contacto-hero .eyebrow {
    text-transform: uppercase;
    font-size: 0.9rem;
    letter-spacing: 1px;
    margin: 0 0 0.6rem;
    opacity: 1;
    color: #f8e000;
    text-shadow: 0 2px 6px rgba(0,0,0,0.35);
}

.contacto-hero h2 {
    margin: 0 0 0.4rem;
    font-size: 1.65rem;
    font-weight: 850;
    line-height: 1.2;
    color: #fefefe;
    text-shadow: 0 3px 10px rgba(0,0,0,0.4);
}

.contacto-hero p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #fffdea;
    text-shadow: 0 2px 8px rgba(0,0,0,0.35);
}

.contacto-form {
    background: #fff;
    border-radius: 16px;
    padding: 1.1rem;
    box-shadow: 0 14px 32px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
}

.contacto-form h3 {
    margin-top: 0;
    margin-bottom: 0.7rem;
    font-size: 1.05rem;
    font-weight: 800;
    color: #333;
}

.contacto-form label {
    display: block;
    font-weight: 600;
    color: #444;
    margin: 0.45rem 0 0.25rem;
}

.contacto-form input,
.contacto-form select,
.contacto-form textarea {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #d9d9d9;
    border-radius: 10px;
    font-size: 0.88rem;
    font-family: inherit;
    background: #fafafa;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    box-sizing: border-box;
}

.contacto-form input:focus,
.contacto-form select:focus,
.contacto-form textarea:focus {
    border-color: #189442;
    outline: none;
    box-shadow: 0 0 0 3px rgba(24,148,66,0.15);
    background: #fff;
}

.contacto-actions {
    display: flex;
    gap: 0.6rem;
    margin-top: 0.75rem;
    flex-wrap: wrap;
}

.btn-primary {
    background: #189442;
    color: #fff;
    border: none;
    padding: 0.9rem 1.4rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-primary:hover {
    background: #0f6b2d;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(24,148,66,0.25);
}

.btn-whatsapp {
    background: #25d366;
    color: #0b3b22;
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-whatsapp:hover {
    background: #1ebe5c;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(37,211,102,0.25);
}

.btn-phone {
    background: #0066cc;
    color: #fff;
    border: none;
    padding: 0.9rem 1.2rem;
    border-radius: 10px;
    font-weight: 700;
    cursor: pointer;
    font-size: 0.95rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
}

.btn-phone:hover {
    background: #0052a3;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(0,102,204,0.25);
}

@media (max-width: 960px) {
    .contacto-container {
        grid-template-columns: 1fr;
        max-width: 700px; /* Centrar el formulario */
    }
    .contacto-section-title {
        font-size: 1.7rem;
        margin-bottom: 0.8rem;
        text-align: center;
    }
    .contacto-hero {
        display: none; /* Ocultar la imagen en móvil */
    }

    .contacto-form {
        padding: 1rem;
    }
}

.ubicacion-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    align-items: stretch;
}

.ubicacion-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
}

.ubicacion-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    margin: 0 0 0.75rem;
}

.ubicacion-meta {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.06);
    border-radius: 10px;
    padding: 0.85rem 1rem;
    box-shadow: 0 6px 18px rgba(0,0,0,0.04);
}

.ubicacion-map {
    width: 100%;
}

.ubicacion-mobile-link {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #189442;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ubicacion-desktop-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    margin-top: 1rem;
    padding: 0.85rem 1rem;
    border-radius: 10px;
    background: #189442;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    transition: background 0.2s ease, transform 0.2s ease;
}

.ubicacion-desktop-link:hover {
    background: #0f6b2d;
    transform: translateY(-1px);
}

.ubicacion-mobile-link:hover {
    background: #0f6b2d;
    transform: translateY(-1px);
}

.ubicacion-mobile-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.map-frame {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 320px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.05);
}

.map-frame iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

@media (max-width: 900px) {
    .ubicacion-container {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .ubicacion-text {
        text-align: center;
    }

    .ubicacion-text p {
        margin-left: auto;
        margin-right: auto;
    }

    .ubicacion-map {
        display: none;
    }

    .ubicacion-mobile-link {
        display: inline-flex;
    }

    .ubicacion-desktop-link {
        display: none;
    }

    .map-frame {
        min-height: 260px;
    }
}

.clientes-text h2 {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    margin-bottom: 1rem;
}

.clientes-text p {
    font-size: 0.95rem;
    line-height: 1.6;
    color: #555;
    max-width: 900px;
    margin: 0 auto 0.5rem;
}

.clientes-logos {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 1rem 1.25rem;
    align-items: center;
    justify-items: center;
    max-width: 960px;
    margin: 0 auto;
}

.cliente-logo {
    background: #ffffff;
    border: 1px solid rgba(0,0,0,0.05);
    border-radius: 12px;
    padding: 14px;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.cliente-logo img {
    width: 100%;
    max-width: 160px;
    height: auto;
    object-fit: contain;
    filter: grayscale(20%);
    transition: transform 0.25s ease, filter 0.25s ease;
}

.cliente-logo:hover {
    transform: translateY(-6px);
}

.cliente-logo:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

/* Ajustes responsivos globales para tablet y celular */
*,
*::before,
*::after {
    box-sizing: border-box;
}

img,
svg,
iframe {
    max-width: 100%;
}

@media (max-width: 1024px) {
    .top-bar {
        padding: 10px 24px;
    }

    .logo img {
        height: 62px;
    }

    .menu {
        margin-right: 0;
    }

    .menu ul li {
        margin-left: 10px;
    }

    .menu ul li a {
        font-size: 0.8rem;
    }

    .quote-button {
        width: 128px;
        padding: 18px 0;
    }

    .hero-content {
        padding: 0 18px;
    }

    #nosotros,
    #ubicacion,
    .contacto,
    .soluciones-container,
    .clientes-container {
        padding-left: 1.2rem;
        padding-right: 1.2rem;
    }

    .soluciones-carousel {
        max-width: 100%;
    }

    .carousel {
        height: 320px;
        padding: 12px;
    }

    .carousel img {
        top: 12px;
        left: 12px;
        right: 12px;
        bottom: 12px;
        height: 100%;
        max-height: 100%;
    }

    .icon-dialogs {
        gap: 1.2rem;
        flex-wrap: wrap;
    }
}

@media (max-width: 768px) {
    body {
        background-attachment: scroll;
    }

    .top-bar {
        justify-content: space-between;
        padding: 12px 16px;
    }

    .hero {
        min-height: 78vh;
        height: 78vh;
    }

    .hero-content {
        padding: 0 14px;
    }

    .hero-slogan-container p {
        font-size: 1rem;
    }

    .soluciones-container,
    .ubicacion-container,
    .contacto-container {
        gap: 1.2rem;
    }

    /* Responsividad para la sección Soluciones y productos en móvil */
    .soluciones-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0.75rem;
    }

    .soluciones-title-wrapper {
        display: block; /* Mostrar en móvil */
        order: 1; /* Título primero */
        margin-bottom: 0.5rem;
    }

    .soluciones-title-wrapper h2 {
        margin-bottom: 0.5rem;
        text-align: center; /* Centrar en móvil */
    }

    .soluciones-carousel {
        order: 2; /* Carrusel después del título */
        margin-bottom: 0.75rem;
        max-width: 100%;
    }

    .soluciones-text {
        order: 3; /* Texto al final */
        margin-top: 0;
    }

    .soluciones-text h2 {
        display: none; /* Ocultar el h2 dentro de soluciones-text en móvil */
    }

    .soluciones-container .highlight {
        font-size: 1rem;
        width: 100%;
        order: 4; /* Highlight al final */
    }

    .carousel {
        height: 240px;
        padding: 10px;
    }

    .carousel img {
        top: 10px;
        left: 10px;
        right: 10px;
        bottom: 10px;
        height: 100%;
        max-height: 100%;
    }

    .clientes-logos {
        grid-template-columns: repeat(2, minmax(120px, 1fr));
    }

    .contacto-form {
        padding: 1.2rem;
    }

    .contacto-actions {
        flex-direction: column;
    }

    .btn-primary,
    .btn-whatsapp,
    .btn-phone {
        width: 100%;
    }

    .whatsapp-text {
        display: none;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: 72vh;
        height: 72vh;
    }

    .hero-content h1 {
        font-size: clamp(1.5rem, 7vw, 2rem);
    }
    
    /* ========================= */
    /* Banner de Cookies - Modal Centrado */
    /* ========================= */
    .cookie-banner {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.85);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 1rem;
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.4s ease, visibility 0.4s ease;
    }
    
    .cookie-banner.show {
        opacity: 1;
        visibility: visible;
    }
    
    .cookie-content {
        background: #fff;
        border-radius: 16px;
        padding: 2.5rem;
        max-width: 600px;
        width: 100%;
        box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
        border: 3px solid #189442;
        transform: scale(0.9);
        transition: transform 0.4s ease;
    }
    
    .cookie-banner.show .cookie-content {
        transform: scale(1);
    }
    
    .cookie-text {
        text-align: center;
        margin-bottom: 2rem;
    }
    
    .cookie-text h3 {
        margin: 0 0 1rem 0;
        font-size: 1.5rem;
        font-weight: 800;
        color: #189442;
    }
    
    .cookie-text p {
        margin: 0;
        font-size: 1rem;
        line-height: 1.6;
        color: #333;
    }
    
    .cookie-actions {
        display: flex;
        gap: 1rem;
        justify-content: center;
    }
    
    .cookie-btn {
        padding: 0.75rem 1.5rem;
        border: none;
        border-radius: 8px;
        font-weight: 700;
        font-size: 0.95rem;
        cursor: pointer;
        transition: all 0.3s ease;
        white-space: nowrap;
    }
    
    .cookie-accept {
        background: #189442;
        color: #fff;
    }
    
    .cookie-accept:hover {
        background: #0f6b2d;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(24, 148, 66, 0.4);
    }
    
    .cookie-reject {
        background: transparent;
        color: #fff;
        border: 2px solid #666;
    }
    
    .cookie-reject:hover {
        background: rgba(255, 255, 255, 0.1);
        border-color: #999;
    }
    
    @media (max-width: 768px) {
        .cookie-banner {
            padding: 1rem;
        }
        
        .cookie-content {
            padding: 2rem 1.5rem;
        }
        
        .cookie-text h3 {
            font-size: 1.3rem;
        }
        
        .cookie-text p {
            font-size: 0.9rem;
        }
        
        .cookie-actions {
            flex-direction: column;
            width: 100%;
        }
        
        .cookie-btn {
            width: 100%;
        }
    }

    #nosotros,
    #ubicacion,
    .contacto,
    .soluciones-container,
    .clientes-container {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }

    .nosotros-slider {
        min-height: 200px;
    }

    .icon-button {
        width: 62px;
        height: 62px;
        font-size: 0.95rem;
    }

    .clientes-logos {
        grid-template-columns: 1fr;
    }
}
