/**
 * custom.css - Estilos personalizados adicionales
 * 
 * Este archivo es opcional. Se puede usar para estilos que no están
 * disponibles directamente en Tailwind CSS o para personalizaciones específicas.
 */

/* Aplicar fuente Sora globalmente */
body, html {
    font-family: 'Sora', system-ui, sans-serif;
}

:root {
    --predicta-primary-dark: #101D30;
    --predicta-primary-blue: #4C9BD5;
    --predicta-secondary-dark: #13233B;
    --predicta-secondary-blue: #3983B8;
    --predicta-light-gray: #E5E5E5;
    --predicta-white: #FFFFFF;
}

/* Animaciones personalizadas */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
    }
    to {
        opacity: 0;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes scaleOut {
    from {
        transform: scale(1);
        opacity: 1;
    }
    to {
        transform: scale(0.95);
        opacity: 0;
    }
}

.animate-fade-in {
    animation: fadeIn 0.5s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.2s ease-out;
}

.animate-scale-out {
    animation: scaleOut 0.2s ease-in;
}

/* Utilidades adicionales */
.smooth-transition {
    transition: all 0.2s ease-out;
}

/* Scroll suave global (si el navegador lo soporta) */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Estilos para íconos de features */
.feature-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid var(--predicta-primary-blue);
    background-color: transparent;
    margin: 0 auto 12px auto;
    transition: all 0.18s ease-out;
}

.feature-icon svg {
    width: 20px;
    height: 20px;
    stroke: var(--predicta-primary-blue);
    fill: none;
}

.feature-item {
    transition: all 0.18s ease-out;
}

.feature-item:hover .feature-icon {
    background-color: rgba(76, 155, 213, 0.05);
    box-shadow: 0 6px 16px rgba(76, 155, 213, 0.12);
    transform: translateY(-2px);
}

@media (min-width: 768px) {
    .feature-icon {
        width: 56px;
        height: 56px;
        border-radius: 16px;
    }
    
    .feature-icon svg {
        width: 24px;
        height: 24px;
    }
}

/* Estilos para íconos de beneficios (más pequeños) */
.benefit-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    border: 1.5px solid var(--predicta-primary-blue);
    background-color: transparent;
    margin-bottom: 16px;
    transition: all 0.18s ease-out;
}

.benefit-icon svg {
    width: 24px;
    height: 24px;
    stroke: var(--predicta-primary-blue);
    fill: none;
}

.benefit-card {
    transition: all 0.18s ease-out;
}

.benefit-card:hover .benefit-icon {
    background-color: rgba(76, 155, 213, 0.05);
    box-shadow: 0 6px 16px rgba(76, 155, 213, 0.12);
    transform: translateY(-2px);
}

/* Estilo para enlace activo en navegación */
.nav-active {
    background-color: rgba(76, 155, 213, 0.08);
    padding: 6px 12px;
    border-radius: 8px;
    color: var(--predicta-primary-blue) !important;
    font-weight: 500;
}

/* Mejoras para mobile responsive */
@media (max-width: 640px) {
    /* Ajustar tamaño de texto en móviles */
    body {
        font-size: 16px;
    }
    
    /* Prevenir zoom en inputs en iOS */
    input, select, textarea {
        font-size: 16px !important;
    }
    
    /* Mejorar touch targets para móviles */
    button, a {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
}

/* Mejoras para imágenes responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Evitar overflow horizontal en móviles */
body {
    overflow-x: hidden;
}
