/* EVEA Team - Custom Styles */
/* Complementa Tailwind CSS con animaciones y efectos personalizados */

/* ========================================
   ANIMACIONES
   ======================================== */

/* Fade In Up - Animación principal de entrada */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Fade In - Simple fade */
@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.animate-fade-in {
    animation: fadeIn 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Delays escalonados */
.delay-100 {
    animation-delay: 100ms;
}

.delay-200 {
    animation-delay: 200ms;
}

.delay-300 {
    animation-delay: 300ms;
}

.delay-400 {
    animation-delay: 400ms;
}

.delay-500 {
    animation-delay: 500ms;
}

/* ========================================
   SCROLL-TRIGGERED ANIMATIONS
   ======================================== */

.scroll-reveal {
    opacity: 0;
    transform: translateY(60px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1),
                transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.scroll-reveal.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ========================================
   SMOOTH SCROLL
   ======================================== */

html {
    scroll-behavior: smooth;
}

/* ========================================
   SELECTION COLOR
   ======================================== */

::selection {
    background-color: #58918E;
    color: white;
}

::-moz-selection {
    background-color: #58918E;
    color: white;
}

/* ========================================
   CUSTOM SCROLLBAR
   ======================================== */

::-webkit-scrollbar {
    width: 10px;
}

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

::-webkit-scrollbar-thumb {
    background: #4B6061;
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: #58918E;
}

/* Dark mode scrollbar */
html.dark ::-webkit-scrollbar-track {
    background: #1A2324;
}

html.dark ::-webkit-scrollbar-thumb {
    background: #58918E;
}

/* ========================================
   HOVER EFFECTS
   ======================================== */

/* Card hover lift */
.card-hover {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-hover:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 40px rgba(75, 96, 97, 0.15);
}

/* Button ripple effect base */
.btn-ripple {
    position: relative;
    overflow: hidden;
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* ========================================
   GRADIENT ANIMATIONS
   ======================================== */

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.gradient-animated {
    background-size: 200% 200%;
    animation: gradientShift 15s ease infinite;
}

/* ========================================
   PULSE ANIMATION FOR BADGES
   ======================================== */

@keyframes pulse-soft {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

.pulse-soft {
    animation: pulse-soft 3s ease-in-out infinite;
}

/* ========================================
   FLOATING ANIMATION
   ======================================== */

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

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

/* ========================================
   FORM STYLES
   ======================================== */

input:focus,
select:focus,
textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(88, 145, 142, 0.15);
}

/* Error states - solo borde rojo, sin fondo blanco */
input.error,
select.error,
textarea.error {
    border-color: #DC2626 !important;
    border-width: 2px;
    background-color: transparent !important;
    outline: none;
}

/* Dark mode error */
html.dark input.error,
html.dark select.error,
html.dark textarea.error {
    border-color: #EF4444 !important;
}

/* Error message styling */
.error-message {
    animation: fadeIn 0.3s ease;
}

/* ========================================
   NAVIGATION BLUR EFFECT
   ======================================== */

.nav-blur {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

/* ========================================
   RESPONSIVE TYPOGRAPHY
   ======================================== */

@media (max-width: 640px) {
    .text-responsive {
        font-size: clamp(1rem, 5vw, 1.25rem);
    }
}

/* ========================================
   LOADING STATES
   ======================================== */

.loading-skeleton {
    background: linear-gradient(
        90deg,
        #F8FAFA 0%,
        #E8EEEF 50%,
        #F8FAFA 100%
    );
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }
    100% {
        background-position: -200% 0;
    }
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

/* Text gradient */
.text-gradient {
    background: linear-gradient(135deg, #4B6061 0%, #58918E 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Glass morphism */
.glass {
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* Shadow colored */
.shadow-colored {
    box-shadow: 0 10px 40px rgba(88, 145, 142, 0.2);
}

/* ========================================
   DARK MODE CONTRAST IMPROVEMENTS
   ======================================== */

html.dark body {
    color: #E8EEEF;
}

html.dark .text-evea-light {
    color: #F5F7F7;
}

html.dark h1,
html.dark h2,
html.dark h3,
html.dark h4,
html.dark h5,
html.dark h6 {
    color: #F5F7F7;
}

html.dark p {
    color: #E8EEEF;
}

/* ========================================
   PRINT STYLES
   ======================================== */

@media print {
    .no-print {
        display: none !important;
    }

    body {
        font-size: 12pt;
        line-height: 1.5;
    }
}
