/*--------------------------------------------------------------
# Modern Enhancements - Botones Mejorados y Animaciones
--------------------------------------------------------------*/

/* ============================================
   BOTONES MEJORADOS CON EFECTOS MODERNOS
   ============================================ */

/* Botón Principal Mejorado */
.cta-button.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a7a70 100%);
    color: var(--light-bg);
    border: none;
    box-shadow: 0 4px 15px rgba(106, 139, 128, 0.3),
                0 2px 5px rgba(106, 139, 128, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.cta-button.primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.cta-button.primary:hover::before {
    left: 100%;
}

.cta-button.primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(106, 139, 128, 0.4),
                0 4px 10px rgba(106, 139, 128, 0.3),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: linear-gradient(135deg, #7a9b8f 0%, var(--primary-color) 100%);
}

.cta-button.primary:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 4px 15px rgba(106, 139, 128, 0.3);
}

/* Efecto de pulso sutil en botón principal */
.cta-button.primary::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 ease, height 0.6s ease;
}

.cta-button.primary:hover::after {
    width: 300px;
    height: 300px;
    opacity: 0;
}

/* Botón Secundario Mejorado */
.cta-button.secondary {
    background: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 2px 8px rgba(106, 139, 128, 0.1);
}

.cta-button.secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 0;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a7a70 100%);
    transition: width 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: -1;
}

.cta-button.secondary:hover {
    color: var(--light-bg);
    border-color: var(--primary-color);
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(106, 139, 128, 0.3),
                0 4px 10px rgba(106, 139, 128, 0.2);
}

.cta-button.secondary:hover::before {
    width: 100%;
}

.cta-button.secondary:active {
    transform: translateY(-2px) scale(0.98);
}

/* Animación mejorada para iconos en botones */
.cta-button i {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    z-index: 1;
}

.cta-button.primary:hover i {
    transform: translateY(-2px) scale(1.1);
    animation: iconPulse 1s ease-in-out infinite;
}

.cta-button.secondary:hover i {
    transform: translateX(5px) scale(1.1);
}

/* Botón de Submit Mejorado */
.submit-btn {
    background: linear-gradient(135deg, var(--primary-color) 0%, #5a7a70 100%);
    color: var(--light-bg);
    border: none;
    box-shadow: 0 4px 15px rgba(106, 139, 128, 0.3);
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    cursor: pointer;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.submit-btn:hover::before {
    left: 100%;
}

.submit-btn:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 8px 25px rgba(106, 139, 128, 0.4),
                0 4px 10px rgba(106, 139, 128, 0.3);
    background: linear-gradient(135deg, #7a9b8f 0%, var(--primary-color) 100%);
}

.submit-btn:active {
    transform: translateY(-2px) scale(0.98);
}

.submit-btn i {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.submit-btn:hover i {
    transform: translateX(5px) rotate(15deg);
}

/* ============================================
   ANIMACIONES MODERNAS
   ============================================ */

/* Fade In con Slide Up mejorado */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Fade In con Scale */
@keyframes fadeInScale {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Slide In desde la izquierda */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Slide In desde la derecha */
@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Rotate In */
@keyframes rotateIn {
    from {
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to {
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Pulse suave */
@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.05);
        opacity: 0.9;
    }
}

/* Shimmer effect */
@keyframes shimmer {
    0% {
        background-position: -1000px 0;
    }
    100% {
        background-position: 1000px 0;
    }
}

/* Icon pulse mejorado */
@keyframes iconPulse {
    0%, 100% {
        transform: scale(1) translateY(0);
    }
    50% {
        transform: scale(1.15) translateY(-3px);
    }
}

/* ============================================
   APLICACIÓN DE ANIMACIONES A ELEMENTOS
   ============================================ */

/* Hero Content con animación escalonada */
.hero-content h1 {
    animation: fadeInUp 0.8s ease-out;
}

.hero-content p {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.cta-buttons {
    animation: fadeInUp 0.8s ease-out 0.4s both;
}

/* Cards con animación al aparecer - Mejorado */
.about-story,
.about-mission,
.credential-card {
    animation: fadeInScale 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.about-story::after,
.about-mission::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(106, 139, 128, 0.03) 0%, 
        transparent 50%,
        rgba(176, 162, 149, 0.03) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
    border-radius: 20px;
}

.about-story:hover::after,
.about-mission:hover::after {
    opacity: 1;
}

.about-story:hover,
.about-mission:hover,
.credential-card:hover {
    transform: translateY(-8px) scale(1.01);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12),
                0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Benefit Items con animación */
.benefit-item {
    animation: fadeInUp 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-item:nth-child(1) { animation-delay: 0.1s; }
.benefit-item:nth-child(2) { animation-delay: 0.2s; }
.benefit-item:nth-child(3) { animation-delay: 0.3s; }
.benefit-item:nth-child(4) { animation-delay: 0.4s; }

.benefit-item:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.benefit-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.benefit-item:hover .benefit-icon {
    transform: rotate(5deg) scale(1.1);
    box-shadow: 0 5px 15px rgba(176, 162, 149, 0.4);
}

/* Recurso Cards mejorados */
.recurso-card {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: fadeInScale 0.6s ease-out;
}

.recurso-card:nth-child(1) { animation-delay: 0.1s; }
.recurso-card:nth-child(2) { animation-delay: 0.2s; }
.recurso-card:nth-child(3) { animation-delay: 0.3s; }

.recurso-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
}

.recurso-card .card-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.recurso-card:hover .card-icon {
    transform: scale(1.2) rotate(5deg);
}

/* Bio Slide mejorado */
.bio-slide-content {
    animation: fadeInScale 0.6s ease-out;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bio-slide-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gentlePulse 3s ease-in-out infinite;
}

.bio-slide.active .bio-slide-icon {
    animation: rotateIn 0.8s ease-out;
}

/* Nav Links mejorados */
.nav-link {
    position: relative;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 80%;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-link:hover::after {
    transform: translateX(-50%) scaleX(1);
}

.nav-link:hover {
    color: var(--primary-color);
    transform: translateY(-2px);
}

/* Social Icons mejorados */
.social-icon,
.social-link {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.social-icon::before,
.social-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(106, 139, 128, 0.2);
    transform: translate(-50%, -50%);
    transition: width 0.4s ease, height 0.4s ease;
}

.social-icon:hover::before,
.social-link:hover::before {
    width: 100%;
    height: 100%;
}

.social-icon:hover,
.social-link:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 5px 15px rgba(106, 139, 128, 0.3);
}

/* Form Inputs mejorados */
.form-group input,
.form-group select,
.form-group textarea {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(106, 139, 128, 0.15),
                0 0 0 3px rgba(106, 139, 128, 0.1);
    border-color: var(--primary-color);
}

/* Questions mejorados */
.questions__padding {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.questions__padding:hover {
    transform: translateX(5px);
    box-shadow: 0 5px 15px rgba(106, 139, 128, 0.1);
}

.questions__arrow {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.questions__title:hover .questions__arrow {
    transform: scale(1.2);
}

/* Floating Brain mejorado */
.floating-brain {
    animation: floatingBrain 6s ease-in-out infinite,
               gentlePulse 4s ease-in-out infinite;
}

@keyframes floatingBrain {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    25% {
        transform: translateY(-15px) rotate(2deg);
    }
    50% {
        transform: translateY(-25px) rotate(0deg);
    }
    75% {
        transform: translateY(-15px) rotate(-2deg);
    }
}

/* Floating Image mejorado */
.floating-image {
    animation: floatAnimation 6s ease-in-out infinite,
               gentlePulse 5s ease-in-out infinite;
}

@keyframes floatAnimation {
    0%, 100% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(-25px) scale(1.02);
    }
}

/* Smooth scroll behavior */
html {
    scroll-behavior: smooth;
}

/* Mejoras en transiciones globales */
* {
    transition-property: transform, opacity, box-shadow, background-color, color;
}

/* Efecto de parallax sutil en hero */
.hero-background {
    animation: gentlePulse 8s ease-in-out infinite;
}

/* Mejora en el navbar */
.navbar {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.brand-logo {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.nav-brand:hover .brand-logo {
    transform: scale(1.1) rotate(5deg);
    filter: drop-shadow(0 5px 15px rgba(106, 139, 128, 0.3));
}

/* Card Button mejorado */
.card-button {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
}

.card-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);
    transition: left 0.5s ease;
}

.card-button:hover::before {
    left: 100%;
}

.card-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(106, 139, 128, 0.3);
}

/* Bio Slider Dots mejorados */
.bio-slider-dot {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bio-slider-dot:hover {
    transform: scale(1.3);
    box-shadow: 0 0 10px rgba(106, 139, 128, 0.5);
}

.bio-slider-dot.active {
    animation: gentlePulse 2s ease-in-out infinite;
}

/* Bio Slider Arrows mejorados */
.bio-slider-arrow {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.bio-slider-arrow:hover {
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 8px 25px rgba(106, 139, 128, 0.4);
}

/* Credential Icon mejorado */
.credential-icon {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    animation: gentlePulse 3s ease-in-out infinite;
}

.credential-card:hover .credential-icon {
    transform: scale(1.2) rotate(10deg);
    animation: iconPulse 1s ease-in-out infinite;
}

/* Mejoras adicionales para elementos interactivos */
.btn-recurso {
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(106, 139, 128, 0.2);
}

.btn-recurso::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(255, 255, 255, 0.3), 
        transparent);
    transition: left 0.5s ease;
}

.btn-recurso:hover::before {
    left: 100%;
}

.btn-recurso:hover {
    transform: translateY(-4px) scale(1.05);
    box-shadow: 0 8px 25px rgba(106, 139, 128, 0.3);
}

/* Mejora en el header accent */
.header-accent {
    position: relative;
    overflow: hidden;
}

.header-accent::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(106, 139, 128, 0.5), 
        transparent);
    animation: shimmer 3s ease-in-out infinite;
}

/* Mejora en title accent */
.title-accent {
    animation: fadeInUp 0.8s ease-out 0.3s both;
}

.accent-dot {
    animation: gentlePulse 2s ease-in-out infinite;
}

.accent-dot:nth-child(3) {
    animation-delay: 0.3s;
}

/* Mejora en section headers */
.section-header {
    animation: fadeInUp 0.8s ease-out;
}

.recursos-header {
    animation: fadeInUp 0.8s ease-out;
}

.preguntas-header {
    animation: fadeInUp 0.8s ease-out;
}

/* Mejora en contact details */
.contact-details p {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    padding-left: 0;
}

.contact-details p::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s ease;
}

.contact-details p:hover::before {
    width: 5px;
}

.contact-details p:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

/* Mejora en footer links */
.footer-nav a {
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.footer-nav a::before {
    content: '';
    position: absolute;
    left: -10px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    transition: width 0.3s ease;
}

.footer-nav a:hover::before {
    width: 5px;
}

.footer-nav a:hover {
    transform: translateX(5px);
    color: rgba(255, 255, 255, 1);
}

/* Responsive - mantener animaciones en móvil pero más sutiles */
@media (max-width: 768px) {
    .cta-button:hover {
        transform: translateY(-2px) scale(1.01);
    }
    
    .benefit-item:hover,
    .recurso-card:hover {
        transform: translateY(-5px) scale(1.01);
    }
    
    /* Reducir animaciones en móvil para mejor rendimiento */
    .floating-brain,
    .floating-image {
        animation-duration: 8s;
    }
}

