/* Animaciones fluidas desde la izquierda */

/* Variables CSS optimizadas */
:root {
    --primary-color: #005200;
    --animation-ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --animation-speed: 0.5s;
}

/* Transiciones más suaves */
* {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

/* Animación de entrada desde la izquierda - Hero */
.hero-content {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) forwards;
}

.hero-content .hero-title {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 0.1s forwards;
}

.hero-content .hero-text {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 0.2s forwards;
}

.hero-content .btn-primary {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 0.3s forwards;
}

/* Imagen de perfil - entrada fluida */
.hero-image {
    opacity: 0;
    transform: translateX(-40px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 0.3s forwards;
}

/* Secciones About - entrada fluida */
.about-section {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 0.4s forwards;
}

.about-title {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 0.5s forwards;
}

/* Tarjetas About - entrada fluida */
.about-card {
    opacity: 0;
    transform: translateX(-25px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) forwards;
    transition: all 0.2s ease;
}

.about-card:hover {
    transform: translateY(-2px);
}

.about-card:nth-child(1) { animation-delay: 0.6s; }
.about-card:nth-child(2) { animation-delay: 0.7s; }
.about-card:nth-child(3) { animation-delay: 0.8s; }
.about-card:nth-child(4) { animation-delay: 0.9s; }

/* Sección de herramientas - entrada fluida */
.herramientas {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 1s forwards;
}

.main-title {
    opacity: 0;
    transform: translateX(-20px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 1.1s forwards;
}

.tools-section {
    opacity: 0;
    transform: translateX(-25px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) forwards;
    transition: all 0.2s ease;
}

.tools-section:hover {
    transform: translateY(-2px);
}

.tools-section:nth-child(1) { animation-delay: 1.2s; }
.tools-section:nth-child(2) { animation-delay: 1.3s; }
.tools-section:nth-child(3) { animation-delay: 1.4s; }

/* Elementos de herramientas */
.tool-item {
    transition: all 0.2s ease;
}

.tool-item:hover {
    transform: translateY(-2px);
}

/* Footer - entrada fluida */
footer {
    opacity: 0;
    transform: translateX(-30px);
    animation: slideInLeft var(--animation-speed) var(--animation-ease) 1.5s forwards;
}

/* Botón simple */
.btn-primary:hover {
    transform: translateY(-1px);
}

/* Keyframe principal optimizado */
@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* Responsive - mantener animaciones en móvil pero simplificadas */
@media (max-width: 768px) {
    .hero-image {
        animation: slideInLeft var(--animation-speed) var(--animation-ease) 0.3s forwards;
        transform: translateX(-20px);
    }
}

/* Scroll suave */
html {
    scroll-behavior: smooth;
}

/* Reducir movimiento si es necesario */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.2s !important;
        transition-duration: 0.2s !important;
    }
}