body {
    font-family: 'Poppins', sans-serif;
    scroll-behavior: smooth;
}

h1,
h2,
h3,
h4,
h5,
h6,
.font-heading {
    font-family: 'Poppins', sans-serif;
}

.bg-veiga-green {
    background-color: #166534;
}

.text-veiga-green {
    color: #166534;
}

.bg-veiga-orange {
    background-color: #ea580c;
}

.whatsapp-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.whatsapp-btn:hover {
    transform: scale(1.1) rotate(5deg);
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

.hero-bg {
    background-image: linear-gradient(rgba(22, 101, 52, 0.8), rgba(22, 101, 52, 0.7)), url('https://images.unsplash.com/photo-1542838132-92c53300491e?q=80&w=1974&auto=format&fit=crop');
    background-size: cover;
    background-position: center;
}

.scroll-smooth {
    scroll-behavior: smooth;
}

/* Floating WhatsApp Button Animation */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }

    70% {
        transform: scale(1.05);
        box-shadow: 0 0 0 10px rgba(37, 211, 102, 0);
    }

    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* Sección de nosotros */
.nosotros-section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 80px 10%;
    gap: 50px;
    background-color: var(--blanco);
    overflow: hidden;
}

/* Imagen con Efecto */
.nosotros-imagen {
    flex: 1;
    position: relative;
    opacity: 0;
    transform: translateX(-50px);
    transition: all 1s ease-out;
}

.nosotros-imagen img {
    width: 100%;
    border-radius: 15px;
    box-shadow: 20px 20px 0px var(--verde-primario);
}

/* Contenido de Texto */
.nosotros-contenido {
    flex: 1;
    opacity: 0;
    transform: translateX(50px);
    transition: all 1s ease-out;
}

.nosotros-contenido h2 {
    color: var(--verde-primario);
    font-size: 2.5rem;
    margin-bottom: 20px;
    letter-spacing: 2px;
}

.nosotros-contenido p {
    line-height: 1.8;
    color: var(--texto-oscuro);
    font-size: 1.1rem;
    margin-bottom: 25px;
}

.info-ubicacion {
    background-color: var(--verde-claro);
    padding: 15px;
    border-left: 5px solid var(--verde-primario);
    font-style: italic;
}

/* Animación Activa */
.nosotros-section.visible .nosotros-imagen,
.nosotros-section.visible .nosotros-contenido {
    opacity: 1;
    transform: translateX(0);
}

/* Responsivo */
@media (max-width: 768px) {
    .nosotros-section {
        flex-direction: column;
        padding: 40px 5%;
        text-align: center;
    }

    .nosotros-imagen img {
        box-shadow: 10px 10px 0px var(--verde-primario);
        margin-bottom: 30px;
    }

    .info-ubicacion {
        text-align: left;
    }
}

.section-padding {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* Animación suave para la tabla */
#table-container {
    transition: max-height 0.5s ease-in-out;
    overflow: hidden;
}

.table-collapsed {
    max-height: 800px;
    /* Altura aproximada para 10 items */
}

.table-expanded {
    max-height: 20000px;
    /* Altura suficiente para toda la lista */
}

/* Contenedor padre */
.slider {
    width: 100%;
    overflow: hidden;
    position: relative;
    padding: 20px 0;
}

/* El carril que contiene los dos grupos */
.slide-track {
    display: flex;
    width: max-content; /* IMPORTANTE: El ancho lo define el contenido, no la pantalla */
    animation: scroll 30s linear infinite;
}

/* Cada tarjeta individual */
.slide {
    flex-shrink: 0; /* Evita que en móvil se aplasten */
    width: 280px;   /* Ancho fijo para control total */
    padding: 0 15px;
}

/* Animación fluida */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        /* Se desplaza exactamente la mitad (un grupo completo) */
        transform: translateX(-50%);
    }
}

/* Pausar al tocar (útil en móviles) */
.slider:active .slide-track,
.slider:hover .slide-track {
    animation-play-state: paused;
}

/* Diseño de Tarjeta Corporativa */
.client-card {
    background: white;
    border-left: 5px solid #ea580c;
    border-radius: 8px;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    width: 100%;
    padding: 20px;
    text-align: center;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.client-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.05);
    border-left-color: #166534;
}

.client-icon {
    color: #cbd5e1;
    font-size: 1.2rem;
    margin-bottom: 8px;
    transition: color 0.3s;
}

.client-card:hover .client-icon {
    color: #166534;
}

.client-name {
    color: #1e293b;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1.3;
}

/* Estilos para Galería de Productos */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    /* rounded-3xl */
    aspect-ratio: 4/5;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}

/* --- Estilos para la Sección de Reseñas --- */

.reviews-section {
    padding: 5rem 1rem;
    background-color: #ffffff;
    /* Fondo blanco limpio */
    position: relative;
    overflow: hidden;
}

/* Contenedor centrado */
.reviews-container {
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    z-index: 10;
}

/* Cabecera */
.reviews-header {
    text-align: center;
    margin-bottom: 4rem;
}

.reviews-header .subtitle {
    color: #ea580c;
    /* Naranja Veiga */
    font-size: 0.875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
    margin-bottom: 0.5rem;
}

.reviews-header h2 {
    font-size: 2.25rem;
    font-weight: 700;
    color: #0f172a;
    /* Slate 900 */
    margin-bottom: 1rem;
}

.reviews-header p {
    color: #64748b;
    /* Slate 500 */
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* Grid Layout */
.reviews-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

/* Responsive: 3 columnas en pantallas grandes */
@media (min-width: 768px) {
    .reviews-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Estilo de la Tarjeta */
.review-card {
    background-color: #f8fafc;
    /* Slate 50 */
    border: 1px solid #e2e8f0;
    border-radius: 1.5rem;
    /* Bordes muy redondeados */
    padding: 2rem;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.review-card:hover {
    transform: translateY(-5px);
    /* Efecto de levantar al pasar el mouse */
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Icono de comillas decorativo */
.quote-icon {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    font-size: 2rem;
    color: #e2e8f0;
    /* Color muy suave */
}

/* Estrellas */
.stars {
    color: #ea580c;
    /* Naranja */
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.review-text {
    color: #475569;
    /* Slate 600 */
    font-style: italic;
    line-height: 1.6;
    margin-bottom: 2rem;
    position: relative;
    z-index: 1;
}

/* Información del Autor */
.review-author {
    display: flex;
    align-items: center;
    gap: 1rem;
    border-top: 1px solid #e2e8f0;
    padding-top: 1.5rem;
    margin-top: auto;
    /* Empuja el autor al fondo si la tarjeta crece */
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background-color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #166534;
    /* Verde Veiga */
    border: 1px solid #e2e8f0;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

.author-info h4 {
    font-size: 1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.author-info span {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
}

.text-orange {
    color: #ea580c;
}

/* Call to Action Final */
.reviews-cta {
    text-align: center;
    margin-top: 4rem;
}

.reviews-cta p {
    color: #64748b;
    margin-bottom: 0.5rem;
}

.reviews-cta a {
    color: #166534;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 4px;
    transition: color 0.2s;
}

.reviews-cta a:hover {
    color: #ea580c;
}

/* Blobs decorativos de fondo (Manchas de color) */
.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    /* Difuminado fuerte */
    z-index: 0;
    opacity: 0.3;
}

.blob-1 {
    top: -50px;
    right: -50px;
    width: 300px;
    height: 300px;
    background-color: #dcfce7;
    /* Verde muy claro */
}

.blob-2 {
    bottom: -50px;
    left: -50px;
    width: 300px;
    height: 300px;
    background-color: #ffedd5;
    /* Naranja muy claro */
}

/* Estilos para Galería de Productos */
.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 4/5;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.gallery-card:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 50%, transparent 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0.9;
    transition: opacity 0.3s;
}