/* Estilos para Sendion - Rebranding */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Display:wght@400;600;700;800&display=swap');

:root {
    --color-primary: #FF6F61; /* Salmón/Coral */
    --color-secondary: #F9E4E1; /* Rosa pastel claro */
    --color-dark: #333333; /* Negro suave */
    --color-light: #FFFFFF;
    --color-gray: #F5F5F5; /* Gris claro */
    --color-text: #555555;
}

body {
    font-family: 'Noto Sans Display', sans-serif;
    color: var(--color-text);
    background-color: var(--color-light);
}

.help-text {
    font-size: x-small;
}

/* Configuración de Tailwind para usar las variables CSS */
.bg-primary { background-color: var(--color-primary); }
.text-primary { color: var(--color-primary); }
.border-primary { border-color: var(--color-primary); }

.bg-secondary { background-color: var(--color-secondary); }
.text-secondary { color: var(--color-secondary); }

.bg-dark { background-color: var(--color-dark); }
.text-dark { color: var(--color-dark); }

.bg-light { background-color: var(--color-light); }
.text-light { color: var(--color-light); }

.bg-gray-custom { background-color: var(--color-gray); }

.hover\:bg-primary-dark:hover {
    filter: brightness(95%);
}

/* Estilos para el slider de Producto (Swiper) */
.product-slider-wrapper {
    position: relative;
    padding: 0 60px;
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
}

.product-slider.swiper-container {
    overflow: hidden;
    width: 100%;
}

/* Contenedor de slides */
.swiper-wrapper {
    box-sizing: border-box;
    align-items: center;
}

/* Estilo de cada slide */
.product-slider .swiper-slide {
    width: 100% !important;
    opacity: 0;
    visibility: hidden;
    padding-bottom: 60px;
    box-sizing: border-box;
    transform: scale(0.95) translateX(20px);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    backface-visibility: hidden;
    will-change: transform, opacity;
}

/* Slide activo */
.product-slider .swiper-slide-active {
    opacity: 1;
    visibility: visible;
    transform: scale(1) translateX(0);
}

/* Slide anterior */
.product-slider .swiper-slide-prev {
    opacity: 0.7;
    transform: scale(0.95) translateX(-20px);
}

/* Efecto de transición suave para todos los elementos dentro del slide */
.product-slider .swiper-slide > * {
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transition-delay: 0.1s;
}

/* Efecto de entrada para el slide activo */
.product-slider .swiper-slide-active > * {
    animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Estilos de navegación */
.swiper-button-next, 
.swiper-button-prev {
    position: absolute;
    top: 50%;
    transform: translateY(-50%) scale(0.9);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    color: var(--color-primary) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08) !important;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    margin: 0;
    border: none;
    outline: none;
    -webkit-tap-highlight-color: transparent;
    opacity: 0.8;
}

.swiper-button-next:hover, 
.swiper-button-prev:hover {
    background: white !important;
    transform: translateY(-50%) scale(1);
    color: var(--color-primary) !important;
    opacity: 1;
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.12) !important;
}

/* Efecto de pulsación al hacer clic */
.swiper-button-next:active, 
.swiper-button-prev:active {
    transform: translateY(-50%) scale(0.95);
    transition: transform 0.1s ease;
}

.swiper-button-prev {
    left: 0;
}

.swiper-button-next {
    right: 0;
}

.swiper-button-next::after, 
.swiper-button-prev::after {
    font-size: 20px;
    font-weight: bold;
    color: var(--color-primary) !important; /* Color de la flecha */
    text-shadow: none; /* Eliminar sombra del texto */
}

/* Paginación */
.swiper-pagination {
    position: absolute;
    bottom: 20px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 8px;
    z-index: 10;
}

.swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: var(--color-primary);
    opacity: 0.3;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.swiper-pagination-bullet-active {
    opacity: 1;
    transform: scale(1.2);
}

/* Ajustes responsivos */
@media (max-width: 992px) {
    .product-slider-wrapper {
        padding: 0 40px;
    }
}

@media (max-width: 768px) {
    .product-slider-wrapper {
        padding: 0 20px;
    }
    
    .swiper-button-next, 
    .swiper-button-prev {
        width: 36px;
        height: 36px;
    }
    
    .swiper-pagination {
        bottom: 10px;
    }
    
    .product-slider .swiper-slide {
        padding-bottom: 50px;
    }
}

/* Estilos para la sección 'Cómo funciona' */
.connecting-line {
    height: 2px;
    background-color: var(--color-gray);
    position: absolute;
    top: 3.8rem; /* Ajustar verticalmente */
    left: 15%;
    right: 15%;
    z-index: 0;
}

/* Estilos para la sección de Testimonios */
.testimonial-card {
    position: relative;
    background: white;
    border-radius: 16px;
    padding: 40px;
    max-width: 900px;
    margin: 0 auto;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
}

.testimonial-text {
    position: relative;
    font-size: 1.4rem;
    line-height: 1.7;
    color: #333;
    font-weight: 400;
    font-style: italic;
    margin-bottom: 1.5rem;
    padding: 0 2rem;
}

.testimonial-text::before,
.testimonial-text::after {
    content: '\201C';
    font-family: Georgia, serif;
    font-size: 4rem;
    color: var(--color-primary);
    opacity: 0.2;
    position: absolute;
    line-height: 1;
}

.testimonial-text::before {
    top: -1rem;
    left: -0.5rem;
}

.testimonial-text::after {
    content: '\201D';
    bottom: -2rem;
    right: -0.5rem;
}

.testimonial-author {
    font-weight: 700;
    font-size: 1.1rem;
    color: var(--color-dark);
    margin-top: 2rem;
    position: relative;
    display: inline-block;
}

.testimonial-author::after {
    content: '';
    display: block;
    width: 40px;
    height: 3px;
    background: var(--color-primary);
    margin: 0.8rem auto 0;
    border-radius: 2px;
}

.testimonial-position {
    color: #666;
    font-size: 0.95rem;
    margin-top: 0.5rem;
    display: block;
}

/* Efecto de rotación de testimonios */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.testimonial-card {
    animation: fadeIn 0.8s ease-out forwards;
}

/* Estilos para la sección de Prueba Social */
.social-proof-logos {
    margin-top: 4rem;
    padding: 2rem 0;
    background: rgba(255, 255, 255, 0.7);
    border-radius: 12px;
}

.social-proof-logos img {
    max-height: 40px;
    filter: grayscale(100%);
    opacity: 0.7;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    padding: 0 1.5rem;
}

.social-proof-logos img:hover {
    filter: grayscale(0%);
    opacity: 1;
    transform: translateY(-3px);
}

/* Estilos para el FAQ */
.tab-button {
    transition: all 0.3s ease;
    position: relative;
    outline: none;
}

.tab-button.active {
    color: #FF6F61;
    border-bottom: 2px solid #FF6F61;
}

.faq-item {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    margin-bottom: 1rem;
    transition: all 0.3s ease;
}

.faq-item:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.faq-question {
    transition: all 0.3s ease;
    cursor: pointer;
}

.faq-answer {
    transition: max-height 0.3s ease-out;
    overflow: hidden;
}

.faq-item.active .faq-question {
    background-color: #f8f9fa;
}

/* Efectos de hover y transiciones */
.tab-button i, .faq-question i {
    transition: all 0.3s ease;
}

.faq-item {
    transition: transform 0.2s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
}

/* Mejoras de accesibilidad */
.tab-button:focus, .faq-question:focus {
    outline: 2px solid #FF6F61;
    outline-offset: 2px;
}

/* Efecto de carga para las preguntas */
@keyframes fadeInUp {
    from { 
        opacity: 0; 
        transform: translateY(10px); 
    }
    to { 
        opacity: 1; 
        transform: translateY(0); 
    }
}

.faq-item {
    animation: fadeInUp 0.5s ease-out forwards;
    opacity: 0;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

/* Estilos para móviles */
@media (max-width: 768px) {
    .tab-button {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .faq-question, .faq-answer div {
        padding: 1rem;
    }
    
    .faq-question h3 {
        font-size: 1rem;
    }
}
