/* Importar fuente moderna */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;800&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    overflow-x: hidden;
}

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

/* Animaciones personalizadas */
@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(100px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInBottom {
    from {
        opacity: 0;
        transform: translateY(50px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Aplicar animaciones */
.animate-slide-down {
    animation: slideDown 1s ease-out;
}

.animate-slide-up {
    animation: slideUp 1s ease-out 0.3s backwards;
}

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

.animate-bounce-slow {
    animation: bounceSlow 2s ease-in-out infinite;
}

/* Efectos de hover para cards */
.card-hover {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Header con efecto de scroll */
#header.scrolled {
    padding: 0.5rem 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Efectos de revelación al hacer scroll */
.reveal-left,
.reveal-right,
.reveal-bottom {
    opacity: 0;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.reveal-left {
    transform: translateX(-50px);
}

.reveal-right {
    transform: translateX(50px);
}

.reveal-bottom {
    transform: translateY(50px);
}

.reveal-left.active,
.reveal-right.active,
.reveal-bottom.active {
    opacity: 1;
    transform: translate(0, 0);
}

/* Efecto parallax suave para hero */
#hero {
    position: relative;
}

/* Gradientes personalizados */
.gradient-overlay {
    background: linear-gradient(135deg, rgba(5, 150, 105, 0.9) 0%, rgba(75, 85, 99, 0.9) 100%);
}

/* Botones con efectos */
button,
a.button {
    position: relative;
    overflow: hidden;
    z-index: 1;
}

button::before,
a.button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.3s ease;
    z-index: -1;
}

button:hover::before,
a.button:hover::before {
    left: 100%;
}

/* Estilos para imágenes con efecto zoom */
img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto de pulso para iconos */
@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

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

/* Sombras personalizadas */
.shadow-custom {
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.shadow-custom-lg {
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .animate-slide-down {
        animation: slideDown 0.8s ease-out;
    }

    .animate-slide-up {
        animation: slideUp 0.8s ease-out 0.2s backwards;
    }
}

/* Loading spinner para imágenes */
img[src] {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: loading 1.5s ease-in-out infinite;
}

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

img[src]:not([src=""]) {
    background: none;
    animation: none;
}

/* Efecto de línea animada */
.line-animate {
    position: relative;
    display: inline-block;
}

.line-animate::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 3px;
    background: #059669;
    transition: width 0.3s ease;
}

.line-animate:hover::after {
    width: 100%;
}

/* Scroll suave para anclas */
section {
    scroll-margin-top: 100px;
}

/* Efecto glassmorphism */
.glass {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}
