/* Custom CSS para Talentary Landing Page */

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Custom animations */
@keyframes float {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-20px);
    }
}

@keyframes pulse-slow {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
}

@keyframes bounce-slow {
    0%, 100% {
        transform: translateY(0px);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* Utility classes */
.animate-float {
    animation: float 6s ease-in-out infinite;
}

.animate-pulse-slow {
    animation: pulse-slow 4s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.animate-bounce-slow {
    animation: bounce-slow 3s infinite;
}

/* Navbar Scroll Effect */
.navbar-scrolled {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

/* Gradient Text Effect */
.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Card Hover Effects */
.card-hover {
    transition: all 0.3s ease;
}

.card-hover:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

/* Button Hover Effects */
.btn-primary {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* Loading Animation */
.loading-dots {
    display: inline-block;
}

.loading-dots:after {
    content: '.';
    animation: dots 1.5s steps(5, end) infinite;
}

@keyframes dots {
    0%, 20% {
        color: rgba(0,0,0,0);
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    40% {
        color: black;
        text-shadow:
            .25em 0 0 rgba(0,0,0,0),
            .5em 0 0 rgba(0,0,0,0);
    }
    60% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 rgba(0,0,0,0);
    }
    80%, 100% {
        text-shadow:
            .25em 0 0 black,
            .5em 0 0 black;
    }
}

/* Responsive Design Enhancements */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: 1.125rem;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #2563eb, #7c3aed);
}

/* Glassmorphism Effect */
.glass {
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Particle Animation Background */
.particles {
    position: relative;
    overflow: hidden;
}

.particles::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 92, 246, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(59, 130, 246, 0.1) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
    pointer-events: none;
}

/* Feature Card Custom Styling */
.feature-card {
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 25px 50px -12px rgba(0, 0, 0, 0.25),
        0 0 0 1px rgba(255, 255, 255, 0.2);
}

/* Agent Card Styling */
.agent-card {
    background: linear-gradient(135deg, #ffffff, #f8fafc);
    border: 2px solid transparent;
    background-clip: padding-box;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.agent-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
}

.agent-card:hover::before {
    opacity: 0.05;
}

.agent-card:hover {
    transform: translateY(-12px);
    box-shadow: 0 25px 50px -12px rgba(59, 130, 246, 0.25);
    border-color: rgba(59, 130, 246, 0.2);
}

/* Pricing Card Styling */
.pricing-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid;
    border-image: linear-gradient(135deg, #3b82f6, #8b5cf6) 1;
}

.pricing-card:hover {
    transform: translateY(-8px) scale(1.02);
}

.pricing-card.featured:hover {
    transform: translateY(-8px) scale(1.07);
}

/* Testimonial Card Styling */
.testimonial-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

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

/* Hero Section Background */
.hero-bg {
    background: linear-gradient(135deg, 
        rgba(59, 130, 246, 0.1) 0%, 
        rgba(139, 92, 246, 0.1) 100%);
    position: relative;
}

.hero-bg::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Ccircle cx='30' cy='30' r='2'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    animation: float 30s ease-in-out infinite;
}

/* Custom Selection */
::selection {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

::-moz-selection {
    background: linear-gradient(135deg, #3b82f6, #8b5cf6);
    color: white;
}

/* Focus States */
button:focus,
a:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Print Styles */
@media print {
    .no-print {
        display: none !important;
    }
}

/* Dark Mode Support (for future implementation) */
@media (prefers-color-scheme: dark) {
    .auto-dark {
        background-color: #1f2937;
        color: #f9fafb;
    }
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
    .feature-card,
    .agent-card,
    .pricing-card {
        border: 2px solid currentColor;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Loading State */
.loading {
    pointer-events: none;
    opacity: 0.6;
}

.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #3b82f6;
    border-radius: 50%;
    border-top-color: transparent;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Success Animation */
.success-checkmark {
    animation: success-pop 0.3s ease-out;
}

@keyframes success-pop {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Estilos personalizados para Talentary */

/* Mejoras responsive generales */
@media (max-width: 640px) {
    .container {
        padding-left: 1rem;
        padding-right: 1rem;
    }
}

/* Ajustes para el Executive Command Center en móviles */
@media (max-width: 640px) {
    .animate-float-slow {
        animation-duration: 8s;
    }
    
    /* Reducir el tamaño de los chips en móviles muy pequeños */
    @media (max-width: 375px) {
        .animate-float-slow {
            font-size: 0.75rem;
            padding: 0.25rem 0.5rem;
        }
    }
}

/* Mejoras para formularios en móviles */
@media (max-width: 640px) {
    input, select, textarea {
        font-size: 16px; /* Evita zoom en iOS */
    }
    
    .grid-cols-2 {
        grid-template-columns: 1fr;
    }
}

/* Ajustes para botones en móviles */
@media (max-width: 640px) {
    .btn-mobile {
        min-height: 44px; /* Tamaño mínimo para touch */
        padding: 0.75rem 1rem;
    }
}

/* Mejoras para la navegación móvil */
@media (max-width: 768px) {
    #mobile-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: white;
        border-top: 1px solid #e5e7eb;
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
        z-index: 40;
    }
    
    #mobile-menu a {
        padding: 1rem 1.5rem;
        border-bottom: 1px solid #f3f4f6;
        display: block;
        color: #374151;
        text-decoration: none;
    }
    
    #mobile-menu a:hover {
        background-color: #f9fafb;
        color: #3b82f6;
    }
}



/* Botón del menú móvil */
#mobile-menu-button {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0.5rem;
    border-radius: 0.375rem;
    transition: all 0.3s ease;
}

#mobile-menu-button:hover {
    background-color: #f3f4f6;
}

#mobile-menu-button:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Ajustes para el hero en móviles */
@media (max-width: 640px) {
    .hero-title {
        line-height: 1.1;
    }
    
    .hero-subtitle {
        line-height: 1.5;
    }
}

/* Mejoras para las tarjetas de agentes */
@media (max-width: 640px) {
    .agent-card {
        padding: 1.5rem;
    }
    
    .agent-card h3 {
        font-size: 1.125rem;
    }
    
    .agent-card p {
        font-size: 0.875rem;
    }
}

/* Ajustes para testimonios en móviles */
@media (max-width: 640px) {
    .testimonial-card {
        padding: 1.5rem;
    }
    
    .testimonial-card blockquote {
        font-size: 0.875rem;
        line-height: 1.6;
    }
}

/* Mejoras para el formulario de registro */
@media (max-width: 640px) {
    .registration-form {
        padding: 1.5rem;
    }
    
    .registration-form h3 {
        font-size: 1.25rem;
    }
    
    .registration-form label {
        font-size: 0.875rem;
    }
}

/* Ajustes para el footer en móviles */
@media (max-width: 640px) {
    .footer-links {
        text-align: center;
    }
    
    .footer-links ul {
        margin-bottom: 1.5rem;
    }
}

/* Mejoras para la navegación */
.nav-link {
    transition: all 0.3s ease;
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Animaciones suaves para elementos interactivos */
.interactive-element {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.interactive-element:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

/* Mejoras para el scroll en móviles */
@media (max-width: 640px) {
    html {
        scroll-behavior: smooth;
    }
    
    body {
        -webkit-overflow-scrolling: touch;
    }
}

/* Ajustes para el Executive Command Center */
.executive-command-center {
    overflow: hidden;
}

@media (max-width: 640px) {
    .executive-command-center {
        margin: 0 -1rem;
    }
}

/* Mejoras para las estadísticas */
@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
    
    .stats-item {
        text-align: center;
        padding: 1rem 0.5rem;
    }
}

/* Ajustes para el pricing toggle */
@media (max-width: 640px) {
    .pricing-toggle-container {
        flex-direction: column;
        gap: 0.5rem;
        align-items: center;
    }
    
    .pricing-toggle-label {
        font-size: 0.875rem;
    }
}

/* Mejoras para las FAQ */
@media (max-width: 640px) {
    .faq-question {
        padding: 1rem;
        font-size: 0.875rem;
    }
    
    .faq-answer {
        padding: 0 1rem 1rem;
        font-size: 0.875rem;
    }
    
    .faq-answer.active {
        padding: 1rem !important;
    }
    
    .faq-answer:not(.active) {
        padding: 0 1rem !important;
    }
}

/* Estilos específicos para las FAQ */
.faq-item {
    border: 1px solid #e5e7eb;
    border-radius: 0.5rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-question {
    width: 100%;
    text-align: left;
    padding: 1.5rem;
    font-weight: 600;
    color: #111827;
    background-color: #ffffff;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.faq-question:hover {
    background-color: #f9fafb;
}

.faq-question:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    background-color: #f9fafb;
    border-top: 1px solid #f3f4f6;
}

.faq-answer.active {
    max-height: 200px;
    padding: 1.5rem;
}

.faq-answer-content {
    color: #6b7280;
    line-height: 1.6;
    font-size: 0.875rem;
}

/* Icono del FAQ */
.faq-icon {
    color: #3b82f6;
    font-weight: bold;
    font-size: 1.25rem;
    transition: transform 0.3s ease;
}

.faq-question.active .faq-icon {
    transform: rotate(45deg);
}

/* Estado colapsado completamente */
.faq-answer:not(.active) {
    max-height: 0 !important;
    padding: 0 1.5rem !important;
    opacity: 0;
    visibility: hidden;
}

/* Estado expandido */
.faq-answer.active {
    max-height: 200px !important;
    padding: 1.5rem !important;
    opacity: 1;
    visibility: visible;
}

/* Ajustes para el case study */
@media (max-width: 640px) {
    .case-study {
        padding: 1.5rem;
        text-align: center;
    }
    
    .case-study h3 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .case-study p {
        font-size: 0.875rem;
        line-height: 1.5;
    }
}

/* Mejoras para los botones CTA */
@media (max-width: 640px) {
    .cta-button {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
    
    .cta-button-secondary {
        width: 100%;
        padding: 1rem;
        font-size: 1rem;
        min-height: 48px;
    }
}

/* Ajustes para el hero badge */
@media (max-width: 640px) {
    .hero-badge {
        font-size: 0.75rem;
        padding: 0.5rem 1rem;
        flex-direction: column;
        gap: 0.25rem;
        text-align: center;
    }
}

/* Mejoras para la navegación del idioma */
@media (max-width: 640px) {
    .language-selector-mobile {
        justify-content: center;
        gap: 1rem;
        padding: 0.5rem 0;
    }
    
    .language-option-mobile {
        padding: 0.5rem 1rem;
        border-radius: 0.5rem;
        background-color: #f3f4f6;
        transition: all 0.3s ease;
    }
    
    .language-option-mobile:hover {
        background-color: #e5e7eb;
    }
}

/* Ajustes para el logo en móviles */
@media (max-width: 640px) {
    .logo-container {
        flex-shrink: 0;
    }
    
    .logo-text {
        font-size: 1.125rem;
    }
    
    /* Logo responsive */
    .navbar-logo {
        height: 2.25rem;
        width: auto;
    }
    
    .footer-logo {
        height: 2.25rem;
        width: auto;
    }
}

/* Logo responsive general */
.navbar-logo {
    height: 2.5rem;
    width: auto;
    transition: all 0.3s ease;
}

.footer-logo {
    height: 2.5rem;
    width: auto;
    transition: all 0.3s ease;
}

/* Hover effect para el logo */
.navbar-logo:hover {
    transform: scale(1.05);
}

.footer-logo:hover {
    transform: scale(1.05);
}

/* Mejoras para el menú móvil */
@media (max-width: 768px) {
    .mobile-menu-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(10px);
        border-top: 1px solid #e5e7eb;
    }
    
    .mobile-menu-item {
        padding: 1rem 0;
        border-bottom: 1px solid #f3f4f6;
        transition: all 0.3s ease;
    }
    
    .mobile-menu-item:hover {
        background-color: #f9fafb;
        padding-left: 1rem;
    }
}

/* Ajustes para el scroll suave */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Mejoras para el focus en elementos interactivos */
.interactive-element:focus {
    outline: 2px solid #3b82f6;
    outline-offset: 2px;
}

/* Ajustes para el contraste en móviles */
@media (max-width: 640px) {
    .text-contrast {
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    }
}

/* Mejoras para las imágenes y iconos */
@media (max-width: 640px) {
    .responsive-icon {
        width: 1.5rem;
        height: 1.5rem;
    }
    
    .responsive-emoji {
        font-size: 1.5rem;
    }
}

/* Ajustes para el espaciado en móviles */
@media (max-width: 640px) {
    .mobile-spacing {
        margin-bottom: 1rem;
    }
    
    .mobile-padding {
        padding: 1rem;
    }
}

/* Mejoras para la accesibilidad */
@media (max-width: 640px) {
    .focus-visible {
        outline: 2px solid #3b82f6;
        outline-offset: 2px;
    }
    
    .sr-only {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
}
