/* ========================================
   AquaFold Premium - Estilos Principales
   Optimizado para TikTok Ads (Mobile-First)
   ======================================== */

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Texto con gradiente */
.gradient-text {
    background: linear-gradient(135deg, #0EA5E9, #06B6D4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Barra CTA fija inferior */
.sticky-bottom-cta {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
}

/* Animacion de entrada para la barra sticky */
#sticky-cta-bar {
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

#sticky-cta-bar.translate-y-0 {
    transform: translateY(0);
}

/* Efecto de brillo en el boton */
#sticky-cta-bar button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    animation: buttonShine 2s infinite;
}

@keyframes buttonShine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

/* Ocultar scrollbar */
.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

/* ========================================
   ANIMACIONES HERO SECTION
   ======================================== */

/* Animacion flotante */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-8px);
    }
}

.animate-float {
    animation: float 4s ease-in-out infinite;
}

/* Efecto pulso suave para boton WhatsApp */
@keyframes pulse-glow {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.5),
                    0 4px 15px rgba(37, 211, 102, 0.3);
    }
    50% {
        box-shadow: 0 0 0 12px rgba(37, 211, 102, 0),
                    0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.btn-whatsapp-pulse {
    animation: pulse-glow 2s ease-in-out infinite;
}

/* Animacion bounce para scroll indicator */
@keyframes bounce-down {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0) translateX(-50%);
    }
    40% {
        transform: translateY(8px) translateX(-50%);
    }
    60% {
        transform: translateY(4px) translateX(-50%);
    }
}

.animate-bounce-down {
    animation: bounce-down 2s ease-in-out infinite;
}

/* Fade in desde abajo */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.6s ease-out forwards;
}

.animate-fade-in-up-delay-1 {
    animation: fadeInUp 0.6s ease-out 0.1s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-2 {
    animation: fadeInUp 0.6s ease-out 0.2s forwards;
    opacity: 0;
}

.animate-fade-in-up-delay-3 {
    animation: fadeInUp 0.6s ease-out 0.3s forwards;
    opacity: 0;
}

/* Efecto shimmer para badges */
@keyframes shimmer {
    0% {
        background-position: -200% center;
    }
    100% {
        background-position: 200% center;
    }
}

.badge-shimmer {
    background: linear-gradient(90deg,
        transparent 0%,
        rgba(255,255,255,0.4) 50%,
        transparent 100%);
    background-size: 200% 100%;
    animation: shimmer 3s infinite;
}

/* Burbujas decorativas */
@keyframes bubble-float {
    0%, 100% {
        transform: translateY(0) scale(1);
        opacity: 0.6;
    }
    50% {
        transform: translateY(-15px) scale(1.1);
        opacity: 0.3;
    }
}

.bubble {
    animation: bubble-float 4s ease-in-out infinite;
}

.bubble-delay-1 {
    animation-delay: 0.5s;
}

.bubble-delay-2 {
    animation-delay: 1s;
}

.bubble-delay-3 {
    animation-delay: 1.5s;
}

/* Hero image hover effect */
.hero-image-container:hover .hero-image {
    transform: scale(1.02);
}

.hero-image {
    transition: transform 0.5s ease;
}

/* Lista con checks */
.check-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

/* ========================================
   ESTILOS RESPONSIVOS
   ======================================== */

/* Asegurar que el hero sea visible sin scroll en movil */
@media (max-width: 640px) {
    .hero-mobile-optimized {
        min-height: calc(100vh - 80px);
        min-height: calc(100dvh - 80px);
    }
}

/* Efecto glassmorphism para badges */
.glass-badge {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

/* ========================================
   CARRUSEL DE MODELOS PREMIUM
   ======================================== */

/* Contenedor del carrusel con padding para mostrar tarjetas parciales */
#models-carousel {
    scroll-padding: 0 16px;
    padding-left: calc(50% - 180px);
    padding-right: calc(50% - 180px);
}

@media (min-width: 640px) {
    #models-carousel {
        padding-left: calc(50% - 190px);
        padding-right: calc(50% - 190px);
    }
}

/* Tarjetas de modelo con efecto de escala al estar activa */
.model-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.model-card:hover {
    z-index: 10;
}

/* Indicadores de color con ring animado */
.model-indicator {
    transition: all 0.3s ease;
    position: relative;
}

.model-indicator.active {
    transform: scale(1.15);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.model-indicator::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

.model-indicator.active::after {
    border-color: currentColor;
    animation: ring-pulse 1.5s ease-in-out infinite;
}

@keyframes ring-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }
}

/* Dots de navegacion */
.model-dot {
    transition: all 0.3s ease;
}

.model-dot.active {
    transform: scaleX(2);
    border-radius: 4px;
}

/* Efecto shine en las tarjetas */
.model-card .bg-white::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: left 0.5s ease;
    z-index: 1;
    pointer-events: none;
}

.model-card:hover .bg-white::before {
    left: 100%;
}

/* Animacion de entrada para las tarjetas */
@keyframes cardSlideIn {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.model-card {
    animation: cardSlideIn 0.6s ease-out forwards;
}

.model-card:nth-child(1) {
    animation-delay: 0.1s;
}

.model-card:nth-child(2) {
    animation-delay: 0.2s;
}

.model-card:nth-child(3) {
    animation-delay: 0.3s;
}

/* Efecto de brillo en los precios */
@keyframes priceGlow {
    0%, 100% {
        text-shadow: 0 0 5px rgba(0, 0, 0, 0.1);
    }
    50% {
        text-shadow: 0 0 15px rgba(34, 197, 94, 0.4);
    }
}

.model-card:hover .text-cyan-600,
.model-card:hover .text-pink-600,
.model-card:hover .text-green-600 {
    animation: priceGlow 1.5s ease-in-out infinite;
}

/* Gradiente animado para el fondo de la seccion */
@keyframes gradientShift {
    0%, 100% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
}

#modelos {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* Mejora para touch en movil */
@media (hover: none) {
    .model-card:active {
        transform: scale(0.98);
    }
}

/* Scrollbar personalizado para desktop */
@media (min-width: 768px) {
    #models-carousel::-webkit-scrollbar {
        height: 6px;
    }

    #models-carousel::-webkit-scrollbar-track {
        background: #f1f5f9;
        border-radius: 10px;
    }

    #models-carousel::-webkit-scrollbar-thumb {
        background: linear-gradient(90deg, #06b6d4, #ec4899, #22c55e);
        border-radius: 10px;
    }

    #models-carousel {
        scrollbar-width: thin;
    }
}

/* ========================================
   SECCION FAQ - ACORDEON ANIMADO
   ======================================== */

/* Contenedor de cada item FAQ */
.faq-item {
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

/* Respuesta del FAQ con animacion */
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out, opacity 0.3s ease-out;
    opacity: 0;
}

.faq-answer:not(.hidden) {
    opacity: 1;
}

/* Icono rotacion */
.faq-item button i {
    transition: transform 0.3s ease;
}

.faq-item button i.fa-minus {
    transform: rotate(180deg);
}

/* Efecto de borde al abrir */
.faq-item:has(.faq-answer:not(.hidden)) {
    border-color: #06b6d4;
    box-shadow: 0 4px 15px rgba(6, 182, 212, 0.15);
}

/* Animacion de entrada para FAQ items */
@keyframes faqSlideIn {
    from {
        opacity: 0;
        transform: translateX(-20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

#faq .faq-item {
    animation: faqSlideIn 0.4s ease-out forwards;
    opacity: 0;
}

#faq .faq-item:nth-child(1) { animation-delay: 0.05s; }
#faq .faq-item:nth-child(2) { animation-delay: 0.1s; }
#faq .faq-item:nth-child(3) { animation-delay: 0.15s; }
#faq .faq-item:nth-child(4) { animation-delay: 0.2s; }
#faq .faq-item:nth-child(5) { animation-delay: 0.25s; }
#faq .faq-item:nth-child(6) { animation-delay: 0.3s; }
#faq .faq-item:nth-child(7) { animation-delay: 0.35s; }
#faq .faq-item:nth-child(8) { animation-delay: 0.4s; }

/* Mejorar touch area en movil */
@media (max-width: 640px) {
    .faq-item button {
        padding: 1rem;
        min-height: 60px;
    }
}

/* ========================================
   CARRUSEL INFINITO - ALMACEN
   ======================================== */

@keyframes scrollInfinite {
    0% {
        transform: translateX(0);
    }
    100% {
        /* 4 imagenes (9rem c/u) + 4 gaps (0.75rem c/u) = 39rem */
        transform: translateX(calc(-4 * 9rem - 4 * 0.75rem));
    }
}

.animate-scroll-infinite {
    animation: scrollInfinite 20s linear infinite;
    width: max-content;
}

.animate-scroll-infinite:hover {
    animation-play-state: paused;
}

/* ========================================
   VIDEO HERO - PORTADA VERTICAL
   ======================================== */

/* Contenedor principal del video */
.video-container {
    position: relative;
    transition: all 0.3s ease;
}

.video-container:hover {
    transform: scale(1.01);
}

/* Video responsive para formato vertical */
.video-container video {
    background-color: #e0f7fa;
}

/* Overlay de play con efecto glass */
#video-play-overlay {
    background: linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.3) 100%
    );
    transition: opacity 0.4s ease;
}

/* Boton de play circular con pulso */
#video-play-overlay > div:first-child {
    animation: playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4),
                    0 10px 40px rgba(0, 0, 0, 0.3);
    }
    50% {
        box-shadow: 0 0 0 15px rgba(255, 255, 255, 0),
                    0 15px 50px rgba(0, 0, 0, 0.4);
    }
}

/* Controles personalizados del video */
#video-controls {
    transition: opacity 0.3s ease;
}

#video-controls button {
    transition: all 0.2s ease;
}

#video-controls button:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: scale(1.05);
}

/* Adaptacion responsive del video */
@media (max-width: 640px) {
    .video-container {
        max-height: 580px !important;
    }

    #video-play-overlay > div:first-child {
        width: 64px !important;
        height: 64px !important;
    }

    #video-play-overlay > div:first-child i {
        font-size: 1.5rem !important;
    }
}

@media (min-width: 641px) and (max-width: 1024px) {
    .video-container {
        max-height: 650px !important;
    }
}

@media (min-width: 1025px) {
    .video-container {
        max-height: 700px !important;
        max-width: 400px !important;
    }

    /* En desktop, centrar el video en su columna */
    .hero-image-container {
        display: flex;
        justify-content: center;
    }
}

/* Ajuste de los badges flotantes para el video */
.hero-image-container .glass-badge {
    z-index: 10;
}

/* Animacion de entrada para el video */
.video-container {
    animation: videoFadeIn 0.8s ease-out forwards;
}

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