/* --- ESTILOS GLOBALES Y VARIABLES --- */
:root {
    --text-color: #1a1a1a;
    --text-muted-color: #6c757d;
    --bg-light-color: #f8f9fa;
    --border-color: #e9ecef;
}
body {
    font-family: 'Poppins', sans-serif;
    background-color: #fff;
    color: var(--text-color);
}
.nav-link-scroll.active {
    color: var(--bs-primary) !important;
    font-weight: bold;
    border-bottom: 2px solid var(--bs-primary);
}

/* ======================================================== */
/* --- ESTILOS PARA EL HERO V3 (DISEÑO DE CAPAS) --- */
/* ======================================================== */
.hero-v3 {
    position: relative;
    width: 100%;
    min-height: 90vh;
    padding: 6rem 0;
    display: flex;
    align-items: center;
    overflow: hidden;
}
.hero-background-shapes {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 1; pointer-events: none;
}
.hero-background-shapes .shape-1 {
    position: absolute; width: 45%; height: 120%; top: -20%; left: -20%;
    background-color: #f8f9fa; border-radius: 50%; transform: rotate(15deg);
}
.hero-background-shapes .shape-2 {
    position: absolute; width: 50%; height: 100%; bottom: -25%; right: -25%;
    background-color: #f8f9fa; border-radius: 40%; transform: rotate(-25deg);
}

/* --- Capa de Imágenes Flotantes (CORREGIDO) --- */
.hero-floaters-layer {
    position: absolute; top: 0; left: 0;
    width: 100%; height: 100%; z-index: 2; pointer-events: none;
}
.floater { /* <--- ¡ESTA ES LA CLASE CORRECTA! */
    position: absolute; /* ¡La regla más importante! */
    opacity: 0.9;
    filter: drop-shadow(0px 15px 25px rgba(0,0,0,0.1));
    animation: float-gentle 15s infinite ease-in-out alternate;
}
@keyframes float-gentle {
    from { transform: translateY(0px) rotate(-5deg); }
    to { transform: translateY(-20px) rotate(5deg); }
}

/* --- Capa de Contenido Principal --- */
.hero-content-container {
    position: relative;
    z-index: 3;
}
.hero-text-content {
    max-width: 700px;
    margin: 0 auto;
}
.hero-cta-buttons .btn {
    border-radius: 50px;
    font-weight: 600;
    padding: 0.8rem 1.8rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.hero-cta-buttons .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}
.btn-primary { background-color: var(--bs-primary); border-color: var(--bs-primary); }
.btn-primary:hover { filter: brightness(90%); }
.btn-outline-dark { border-color: #343a40; color: #343a40; border-width: 2px; }
.btn-outline-dark:hover { background-color: #343a40; color: #fff; }

@media (max-width: 991.98px) {
    .hero-v3 { text-align: center; }
}





/* ======================================================== */
/* --- SECCIÓN PRODUCTOS (EFECTO DOBLE IMAGEN CON ZOOM) --- */
/* ======================================================== */

.product-card {
    background-color: #fff;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.product-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 1rem 3rem rgba(0,0,0,.1) !important;
}

.product-image-container {
    position: relative;
    height: 350px;
    background-color: #f8f9fa;
}

/* Estilos para AMBAS imágenes */
.product-card .card-img-top {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 1.5rem;
    transition: opacity 0.5s ease-in-out, transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* Imagen principal (visible por defecto) */
.product-image-primary {
    opacity: 1;
    transform: scale(1);
}

/* Imagen secundaria (oculta y encogida por defecto) */
.product-image-secondary {
    opacity: 0;
    transform: scale(0.9);
}

/* Al pasar el mouse sobre la tarjeta... */
.product-card:hover .product-image-primary {
    opacity: 0;
    transform: scale(1.1); /* La primera imagen se desvanece y se agranda un poco al salir */
}
.product-card:hover .product-image-secondary {
    opacity: 1;
    transform: scale(1.1); /* La segunda imagen aparece y se agranda (efecto zoom) */
}


/* Botón de Cotización */
.product-card .product-cta-btn {
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.85rem;
    letter-spacing: 0.5px;
    border-width: 2px;
    padding: 0.7rem 1.2rem;
    border-radius: 50px;
    transition: all 0.3s ease-in-out;
    box-shadow: 0 4px 15px rgba(var(--bs-primary-rgb), 0.2);
}
.product-card .product-cta-btn:hover {
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
    transform: translateY(-3px);
}
.product-card .product-cta-btn .bi {
    transition: transform 0.3s ease;
}
.product-card .product-cta-btn:hover .bi {
    transform: translateX(5px);
}

/* SECCIÓN SOLUCIONES */
.solutions-icon { height: 50px; opacity: 0.8; }
#soluciones-impresion .accordion-item { background-color: transparent; border: 0; border-bottom: 1px solid #dee2e6; }
#soluciones-impresion .accordion-item:last-of-type { border-bottom: 0; }
#soluciones-impresion .accordion-button { font-size: 1.1rem; font-weight: 600; color: var(--bs-secondary); background-color: transparent; padding: 1.25rem 0; box-shadow: none !important; }
#soluciones-impresion .accordion-button:not(.collapsed) { color: var(--bs-primary); }
#soluciones-impresion .accordion-button:not(.collapsed)::after { background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='%23f57c00'%3e%3cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3e%3c/svg%3e"); }
#soluciones-impresion .accordion-body { padding: 0.25rem 0 1.5rem; color: #495057; }

/* ======================================================== */
/* --- SECCIÓN CLIENTES (CON CONTROLES A LOS LADOS) --- */
/* ======================================================== */
#clientes {
    padding-top: 5rem;
    padding-bottom: 5rem;
}

/* El contenedor del carrusel ahora es relativo para posicionar los botones */
.client-swiper-container {
    position: relative;
}

.client-swiper {
    padding: 1rem 0;
}

/* ======================================================== */
/* --- SECCIÓN CLIENTES (CINTA TRANSPORTADORA) --- */
/* ======================================================== */
/* ... (estilos de #clientes sin cambios) ... */

.client-swiper .swiper-wrapper {
    align-items: center; 
    /* ¡La clave para un movimiento suave y sin pausas! */
    transition-timing-function: linear !important; 
}

.client-swiper .swiper-slide {
    display: flex;
    justify-content: center;
    align-items: center;
    /* Hacemos que el slide se ajuste al ancho del logo */
    width: auto; 
}

.client-swiper .swiper-slide:hover {
    transform: scale(1.1);
}

.client-logo-img {
    height: 90px;
    max-width: 170px;
    object-fit: contain;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.3s ease;
}

.client-logo-link:hover .client-logo-img {
    filter: grayscale(0%);
    opacity: 1;
}

/* Estilos para los nuevos botones de navegación */
.swiper-nav-buttons {
    display: flex;
    justify-content: flex-end; /* Alinea los botones a la derecha en móvil */
}

/* Posicionamiento de los botones para pantallas grandes */
.swiper-button-prev-client,
.swiper-button-next-client {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background-color: #fff;
    color: var(--text-color);
    transition: all 0.3s ease;
}
.swiper-button-prev-client:hover,
.swiper-button-next-client:hover {
    background-color: var(--bs-primary);
    border-color: var(--bs-primary);
    color: #fff;
    transform: translateY(-50%) scale(1.1);
}

.swiper-button-prev-client {
    left: -25px; /* Lo saca del contenedor hacia la izquierda */
}

.swiper-button-next-client {
    right: -25px; /* Lo saca del contenedor hacia la derecha */
}

/* Deshabilitar botones de Swiper cuando no hay más slides */
.swiper-button-disabled {
    opacity: 0.35;
    cursor: auto;
    pointer-events: none;
}

/* Ocultar botones en pantallas pequeñas para no estorbar */
@media (max-width: 991.98px) {
    .swiper-button-prev-client,
    .swiper-button-next-client {
        display: none;
    }
}

/* COMPONENTES GENERALES */
.wizard-container { max-width: 600px; background: #fff; padding: 2rem; border-radius: 8px; box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
.wizard-step { display: none; }
.wizard-step.active { display: block; animation: fadeIn 0.5s; }
/* ======================================================== */
/* --- BOTÓN DE WHATSAPP FLOTANTE (DINÁMICO Y ANIMADO) --- */
/* ======================================================== */

/* Keyframes para la animación de vibración */
@keyframes shake-animation {
  0% { transform: translate(1px, 1px) rotate(0deg); }
  10% { transform: translate(-1px, -2px) rotate(-1deg); }
  20% { transform: translate(-3px, 0px) rotate(1deg); }
  30% { transform: translate(3px, 2px) rotate(0deg); }
  40% { transform: translate(1px, -1px) rotate(1deg); }
  50% { transform: translate(-1px, 2px) rotate(-1deg); }
  60% { transform: translate(-3px, 1px) rotate(0deg); }
  70% { transform: translate(3px, 1px) rotate(-1deg); }
  80% { transform: translate(-1px, -1px) rotate(1deg); }
  90% { transform: translate(1px, 2px) rotate(0deg); }
  100% { transform: translate(1px, -2px) rotate(-1deg); }
}

/* Keyframes para el efecto de pulso */
@keyframes pulse-animation-whatsapp {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 20px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

.whatsapp-flotante {
    position: fixed;
    width: 60px;
    height: 60px;
    bottom: 60px;
    right: 40px;
    background-color: #25d366;
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 30px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    z-index: 100;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    
    /* Aplicar la animación de pulso constantemente */
    animation: pulse-animation-whatsapp 2s infinite;
}

/* La vibración se activa en un segundo nivel de animación */
.whatsapp-flotante::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* La animación de vibración se ejecuta cada 5 segundos */
    animation: shake-animation 0.82s cubic-bezier(.36,.07,.19,.97) 5s infinite both;
}

.whatsapp-flotante:hover {
    color: #fff;
    background-color: #128C7E;
    transform: scale(1.1); /* Crece al pasar el mouse */
    box-shadow: 0 8px 25px rgba(0,0,0,0.3);
    /* Pausamos las animaciones para dar prioridad al hover */
    animation-play-state: paused;
}

.whatsapp-flotante:hover::before {
    animation-play-state: paused;
}

@media (max-width: 768px) {
    .whatsapp-flotante {
        width: 50px;
        height: 50px;
        font-size: 24px;
        bottom: 20px;
        right: 20px;
    }
}

/* ======================================================== */
/* --- ESTILOS PARA LA SECCIÓN GALERÍA DE TRABAJOS --- */
/* ======================================================== */
#galeria-trabajos {
    background-color: var(--bg-light-color);
}

.galeria-swiper {
    padding: 1rem 0 3rem 0; /* Espacio para la paginación y sombras */
}

.card-galeria {
    position: relative;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.2);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}
.card-galeria:hover {
    transform: translateY(-10px);
    box-shadow: 0 20px 40px -15px rgba(0,0,0,0.3);
}

.card-galeria-img {
    width: 100%;
    height: 350px;
    object-fit: cover;
    display: block;
}

.card-galeria-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    padding: 2.5rem 1.5rem 1.5rem;
    color: #fff;
}

.card-galeria-titulo {
    color: #fff;
    font-weight: 700;
    margin: 0;
}

/* ======================================================== */
/* --- ESTILOS PARA LA SECCIÓN DE TESTIMONIOS --- */
/* ======================================================== */
#testimonios {
    position: relative;
}
.letter-spacing-2 {
    letter-spacing: 2px;
}
.testimonio-swiper {
    padding-bottom: 50px !important;
}
.testimonio-card {
    border-radius: 1rem;
    border: 0;
    box-shadow: 0 10px 30px -10px rgba(0,0,0,0.1);
}
.testimonio-texto {
    font-size: 1.1rem;
    font-style: italic;
    color: #495057;
    position: relative;
    padding-left: 2rem;
}
.testimonio-texto::before {
    content: '“';
    position: absolute;
    left: 0;
    top: -0.5rem;
    font-size: 3rem;
    color: var(--bs-primary);
    opacity: 0.5;
}
.testimonio-autor .testimonio-foto {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}
.testimonio-pagination .swiper-pagination-bullet {
    background-color: var(--bs-primary);
}

/* ======================================================== */
/* --- ESTILOS PARA LA SECCIÓN DE PREGUNTAS FRECUENTES --- */
/* ======================================================== */
#faq {
    background-color: #fff;
}
#faqAccordion .accordion-item {
    background-color: #fff;
    border: 0;
    border-bottom: 1px solid var(--border-color);
}
#faqAccordion .accordion-item:first-of-type {
    border-top: 1px solid var(--border-color);
}
#faqAccordion .accordion-button {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--bs-secondary);
    padding: 1.5rem 1.25rem;
}
#faqAccordion .accordion-button:not(.collapsed) {
    color: var(--bs-primary);
    background-color: var(--bg-light-color);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.125);
}
#faqAccordion .accordion-button:focus {
    box-shadow: 0 0 0 0.25rem rgba(var(--bs-primary-rgb), 0.25);
    border-color: transparent;
}
#faqAccordion .accordion-button::after {
    /* Usamos íconos de Bootstrap en lugar de las flechas por defecto */
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    margin-left: auto;
    content: "\f4fe"; /* Icono plus-circle */
    font-family: 'bootstrap-icons';
    font-weight: 900;
    background-image: none;
    transition: transform .3s ease-in-out;
}
#faqAccordion .accordion-button:not(.collapsed)::after {
    content: "\f47a"; /* Icono dash-circle */
    transform: rotate(0); /* Evita la rotación de la flecha */
}
#faqAccordion .accordion-body {
    padding: 1rem 1.25rem 2rem;
    line-height: 1.8;
}