/* Codcall - Desarrollo Web Profesional Chile - Estilos principales */

/* Animaciones clave */
@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-20px) rotate(1deg); }
    66% { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(50px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes slideRight {
    from { opacity: 0; transform: translateX(-50px); }
    to { opacity: 1; transform: translateX(0); }
}

@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes blob {
    0% { transform: translate(0px, 0px) scale(1); }
    33% { transform: translate(30px, -50px) scale(1.1); }
    66% { transform: translate(-20px, 20px) scale(0.9); }
    100% { transform: translate(0px, 0px) scale(1); }
}

@keyframes floatUpDown {
    0%, 100% { transform: translateY(0px); }
    50% { transform: translateY(-30px); }
}

@keyframes blink {
    0%, 50% { border-color: #f59e0b; }
    51%, 100% { border-color: transparent; }
}

/* Clases de animación */
.float-up-down {
    animation: floatUpDown 4s ease-in-out infinite;
}

.gradient-bg {
    background: linear-gradient(-45deg, #3b82f6, #1d4ed8, #047857, #065f46);
    background-size: 400% 400%;
    animation: gradient 8s ease infinite;
}

.text-gradient {
    background: linear-gradient(135deg, #3b82f6 0%, #10b981 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.typing-animation {
    border-right: 3px solid #f59e0b;
    animation: blink 1s infinite;
}

/* Efectos visuales */
.glass-effect {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.whatsapp-float {
    position: fixed;
    width: 70px;
    height: 70px;
    bottom: 30px;
    right: 30px;
    background: linear-gradient(45deg, #25d366, #128c7e);
    color: #FFF;
    border-radius: 50%;
    text-align: center;
    font-size: 32px;
    box-shadow: 0 8px 32px rgba(37, 211, 102, 0.3);
    z-index: 100;
    animation: float 3s ease-in-out infinite;
    transition: all 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1) translateY(-5px);
    box-shadow: 0 12px 40px rgba(37, 211, 102, 0.5);
}

.whatsapp-float i {
    margin-top: 18px;
}

.blob {
    border-radius: 30% 70% 70% 30% / 30% 30% 70% 70%;
    animation: blob 7s infinite;
}

/* Efectos de tarjetas */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.15);
}

.pricing-card {
    transition: all 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
}

.parallax-element {
    transform-style: preserve-3d;
}

/* Estilos para modo oscuro */
.dark {
    background-color: #0f172a;
    color: #ffffff;
}

.dark .bg-white {
    background-color: #1e293b;
}

.dark .text-gray-800 {
    color: #ffffff;
}

.dark .text-gray-600 {
    color: #cbd5e1;
}

.dark .border-gray-200 {
    border-color: #334155;
}

.dark .bg-gray-50 {
    background-color: #1e293b;
}

.dark .bg-gray-900 {
    background-color: #0f172a;
}

/* Animaciones al hacer scroll */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease-out;
}

.animate-on-scroll.show {
    opacity: 1;
    transform: translateY(0);
}

/* Mejora para asegurar que los botones de pestañas se muestren horizontalmente en dispositivos móviles */
@media (max-width: 768px) {
    #detalles-planes .w-full.flex {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
        padding-bottom: 10px;
        margin-bottom: 10px;
    }

    #detalles-planes .tab-btn {
        flex: 0 0 auto;
        scroll-snap-align: start;
        white-space: nowrap;
        min-width: 130px;
        margin-right: 8px;
    }
}

/* Estilos para pestañas de servicios en dispositivos móviles */
@media (max-width: 767px) {
    .services-tabs {
        display: flex;
        flex-direction: row;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scroll-behavior: smooth;
        padding-bottom: 10px;
        margin-bottom: 20px;
        justify-content: flex-start;
        gap: 10px;
    }
    
    .tab-button {
        flex: 0 0 auto;
        margin-right: 5px;
        margin-bottom: 0;
        padding: 10px 15px;
        font-size: 14px;
    }
    
    /* Ocultar la scrollbar pero mantener la funcionalidad */
    .services-tabs::-webkit-scrollbar {
        height: 4px;
    }
    
    .services-tabs::-webkit-scrollbar-thumb {
        background-color: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
    
    .services-tabs::-webkit-scrollbar-track {
        background-color: rgba(0, 0, 0, 0.05);
    }
}