/* MoriDev - Estilos Principales Optimizados */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

:root {
    /* Colores Principales */
    --primary: #1b663b;  
    --secondary: #f0c192; 
    --accent: #f4d075;   
    --accent-light: #ff9a47; 
    --dark: #264653;   
    --darker: #0D161A;  
    --light: #f5ffff;   
    --success: #37c53c;   
    --error: #D64545;     

    /* Degradados mejorados */
    --gradient-1: linear-gradient(135deg, var(--primary) 0%, var(--dark) 100%);
    --gradient-2: linear-gradient(135deg, var(--secondary) 0%, var(--accent) 100%);
    --gradient-3: linear-gradient(135deg, var(--primary) 0%, var(--accent) 100%);
    --gradient-4: linear-gradient(135deg, var(--success) 0%, var(--primary) 100%);
    --gradient-5: linear-gradient(135deg, var(--accent) 0%, var(--accent-light) 50%, var(--secondary) 100%);
    --gradient-6: linear-gradient(45deg, var(--primary), var(--accent), var(--secondary), var(--primary));
    
    /* Sombras dinámicas */
    --shadow-sm: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 5px 25px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.3);
    
    /* Transiciones suaves */
    --transition-fast: all 0.2s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-normal: all 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-bounce: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

/* Optimizaciones de rendimiento */
html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    background: var(--darker);
    color: var(--light);
    overflow-x: hidden;
    line-height: 1.6;
    transition: var(--transition-normal);
    will-change: scroll-position;
}

/* Navegación con efectos avanzados */
nav {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(13, 22, 26, 0.85);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    z-index: 1000;
    padding: 1rem 0;
    transition: all 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 5px 30px rgba(0, 0, 0, 0.1);
    will-change: transform, background, backdrop-filter;
}

nav::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-6);
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    z-index: -1;
}

nav:hover::before {
    opacity: 0.03;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 2rem;
    position: relative;
}

.logo {
    font-size: 1.8rem;
    font-weight: 900;
    text-decoration: none;
    color: var(--light);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
    transform-origin: center;
    will-change: transform;
}

.logo:hover {
    transform: scale(1.05) rotate(1deg);
}

.logo span {
    background: var(--gradient-5);
    background-size: 200% 200%;
    background-clip: text;
    
    -webkit-text-fill-color: transparent;
    animation: gradientFlow 4s ease-in-out infinite;
    will-change: background-position;
}

@keyframes gradientFlow {
    0%, 100% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
}

.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
    align-items: center;
}

.nav-links a {
    text-decoration: none;
    color: var(--light);
    font-weight: 500;
    transition: var(--transition-normal);
    position: relative;
    padding: 0.5rem 0;
    will-change: transform, color;
}

.nav-links a::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-2);
    transition: width 0.4s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.nav-links a:hover {
    color: var(--accent);
    transform: translateY(-2px);
}

.nav-links a:hover::before {
    width: 100%;
}

.nav-cta {
    background: var(--gradient-2);
    padding: 0.7rem 1.5rem;
    border-radius: 50px;
    font-weight: 700;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    will-change: transform, box-shadow;
}

.nav-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.nav-cta:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.nav-cta:hover::before {
    left: 100%;
}

@keyframes pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(233, 196, 106, 0.4);
    }
    50% { 
        transform: scale(1.02);
        box-shadow: 0 0 0 10px rgba(233, 196, 106, 0);
    }
}

.nav-cta {
    animation: pulse 3s infinite;
}

/* Botones con efectos premium */
.btn-primary, .btn-secondary {
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    font-size: 1.1rem;
    transition: var(--transition-smooth);
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transform-origin: center;
    will-change: transform, box-shadow;
}

.btn-primary::before,
.btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.btn-primary {
    background: var(--gradient-2);
    color: var(--darker);
    box-shadow: 0 5px 25px rgba(233, 196, 106, 0.3);
}

.btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(233, 196, 106, 0.5);
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:active {
    transform: translateY(-2px) scale(1.02);
    transition: var(--transition-fast);
}

.btn-secondary {
    background: transparent;
    color: var(--light);
    border: 2px solid var(--accent);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

.btn-secondary:hover {
    background: var(--accent);
    color: var(--darker);
    transform: translateY(-3px) scale(1.05);
    box-shadow: var(--shadow-lg);
}

.btn-secondary:hover::before {
    left: 100%;
}

/* Secciones con animaciones de entrada */
.section {
    padding: 6rem 2rem;
    position: relative;
    overflow: hidden;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 1px;
    background: var(--gradient-2);
    opacity: 0.3;
    animation: slideIn 2s ease-out;
}

@keyframes slideIn {
    0% { left: -100%; }
    100% { left: -50%; }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
    position: relative;
}

.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 1rem;
    background: var(--gradient-3);
    background-size: 200% 200%;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: gradientShift 4s ease infinite;
    will-change: background-position;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: var(--gradient-2);
    border-radius: 2px;
    animation: expandLine 1s ease-out 0.5s both;
}

@keyframes expandLine {
    0% { width: 0; }
    100% { width: 60px; }
}

.section-subtitle {
    font-size: 1.2rem;
    opacity: 0.8;
    max-width: 700px;
    margin: 0 auto;
    transition: var(--transition-normal);
}

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

/* Hero con efectos cinematográficos */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 6rem 2rem 4rem;
    background-image: url('../images/Vista_Catarata_Gocta.jpg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    animation: overlayShift 8s ease-in-out infinite;
}

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

.hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, transparent 20%, rgba(13, 22, 26, 0.4) 100%);
    pointer-events: none;
}

.hero-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: clamp(2.5rem, 5vw, 3.5rem);
    font-weight: 900;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease-out;
}
.hero-image{
    width: 60%;
    border-radius: 20px;
    animation: fadeInUp 1s ease-out 0.2s both;
}
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.highlight {
    background: var(--gradient-5);
    background-size: 300% 300%;
    background-clip: text;
    
    -webkit-text-fill-color: transparent;
    animation: gradientDance 3s ease infinite;
    position: relative;
    will-change: background-position;
}

.highlight::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    filter: blur(20px);
    animation: glow 2s ease-in-out infinite alternate;
    z-index: -1;
}

@keyframes gradientDance {
    0% { background-position: 0% 50%; }
    33% { background-position: 100% 0%; }
    66% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

@keyframes glow {
    0% { opacity: 0; }
    100% { opacity: 0.3; }
}

.hero-content p {
    font-size: 1.3rem;
    margin-bottom: 2rem;
    opacity: 0.9;
    text-shadow: 2px 2px 10px rgba(2, 6, 29, 0.8);
    animation: fadeInUp 1s ease-out 0.3s both;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    animation: fadeInUp 1s ease-out 0.6s both;
}

/* Cards con efectos 3D */
.card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 20px;
    padding: 2rem;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
    z-index: -1;
}

.card:hover {
    transform: translateY(-10px) rotateX(5deg) rotateY(2deg);
    box-shadow: 
        0 25px 50px rgba(44, 110, 73, 0.2),
        0 0 30px rgba(233, 196, 106, 0.1);
    border-color: rgba(233, 196, 106, 0.3);
}

.card:hover::before {
    opacity: 0.03;
}

/* Efectos de micro-interacción en cards */
.card:active {
    transform: translateY(-5px) rotateX(2deg) scale(0.98);
    transition: var(--transition-fast);
}

/* Grids con animaciones escalonadas */
.grid-2 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.grid-3 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

/* Servicios con efectos premium */
.service-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 30px;
    padding: 3rem 2rem;
    text-align: center;
    transition: var(--transition-smooth);
    position: relative;
    overflow: hidden;
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    transform-style: preserve-3d;
    will-change: transform, box-shadow;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-2);
    transform: scaleX(0);
    transition: transform 0.4s ease;
    transform-origin: left;
}

.service-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at center, rgba(233, 196, 106, 0.1) 0%, transparent 70%);
    opacity: 0;
    transition: opacity 0.4s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-15px) rotateX(3deg);
    box-shadow: 
        0 30px 60px rgba(44, 110, 73, 0.3),
        0 0 40px rgba(233, 196, 106, 0.2);
    border-color: rgba(233, 196, 106, 0.4);
}

.service-card:hover::before {
    transform: scaleX(1);
}

.service-card:hover::after {
    opacity: 1;
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    color: var(--accent);
    transition: var(--transition-bounce);
    display: inline-block;
    will-change: transform;
}

.service-card:hover .service-icon {
    transform: scale(1.2) rotateY(360deg);
    color: var(--accent-light);
    filter: drop-shadow(0 5px 15px rgba(233, 196, 106, 0.4));
}

.service-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--light);
    transition: var(--transition-normal);
}

.service-card:hover .service-title {
    color: var(--accent);
}

.service-description {
    font-size: 1rem;
    opacity: 0.8;
    margin-bottom: 2rem;
    line-height: 1.6;
    transition: var(--transition-normal);
}

.service-card:hover .service-description {
    opacity: 1;
}

.service-features {
    list-style: none;
    text-align: left;
}

.service-features li {
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: flex-start;
    gap: 0.8rem;
    transition: var(--transition-normal);
    position: relative;
    overflow: hidden;
}

.service-features li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: var(--gradient-2);
    transform: scaleY(0);
    transition: transform 0.3s ease;
    transform-origin: bottom;
}

.service-features li:hover::before {
    transform: scaleY(1);
}

.service-features li:hover {
    transform: translateX(10px);
    background: rgba(255, 255, 255, 0.02);
}

.service-features li:last-child {
    border-bottom: none;
}

.service-features i {
    color: var(--success);
    width: 16px;
    margin-top: 0.2rem;
    transition: var(--transition-normal);
}

.service-features li:hover i {
    color: var(--accent);
    transform: scale(1.2);
}

/* Footer con efectos sutiles */
footer {
    background: var(--darker);
    padding: 4rem 2rem 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--gradient-2);
    animation: shimmer 3s ease-in-out infinite;
}

@keyframes shimmer {
    0%, 100% { transform: translateX(-100%); }
    50% { transform: translateX(100%); }
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-brand h3 {
    font-size: 1.8rem;
    margin-bottom: 1rem;
    background: var(--gradient-3);
    background-clip: text;
    
    -webkit-text-fill-color: transparent;
}

.footer-section h4 {
    margin-bottom: 1rem;
    color: var(--primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 2px;
    background: var(--gradient-2);
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 0.8rem;
    opacity: 0.8;
    transition: var(--transition-normal);
}

.footer-section ul li:hover {
    opacity: 1;
    transform: translateX(5px);
}

.footer-section a {
    color: var(--light);
    text-decoration: none;
    transition: var(--transition-normal);
    position: relative;
}

.footer-section a::before {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--primary);
    transition: width 0.3s ease;
}

.footer-section a:hover {
    color: var(--primary);
}

.footer-section a:hover::before {
    width: 100%;
}

.footer-bottom {
    text-align: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.7;
    position: relative;
}

.footer-bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: var(--gradient-2);
}

/* Menu móvil con animaciones fluidas */
.menu-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    transition: var(--transition-normal);
}

.menu-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background: var(--light);
    transition: var(--transition-normal);
    transform-origin: center;
    border-radius: 2px;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(6px, 6px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(6px, -6px);
}

/* Responsive con mejores transiciones */
@media (max-width: 768px) {
    .menu-toggle {
        display: flex;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        right: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: rgba(13, 22, 26, 0.98);
        -webkit-backdrop-filter: blur(20px);
        backdrop-filter: blur(20px);
        flex-direction: column;
        justify-content: flex-start;
        padding: 2rem;
        transition: right 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
        z-index: 999;
    }

    .nav-links.active {
        right: 0;
    }

    .nav-links a {
        font-size: 1.2rem;
        padding: 1rem 0;
        opacity: 0;
        transform: translateX(50px);
        transition: var(--transition-normal);
    }

    .nav-links.active a {
        opacity: 1;
        transform: translateX(0);
    }

    .nav-links.active a:nth-child(1) { transition-delay: 0.1s; }
    .nav-links.active a:nth-child(2) { transition-delay: 0.2s; }
    .nav-links.active a:nth-child(3) { transition-delay: 0.3s; }
    .nav-links.active a:nth-child(4) { transition-delay: 0.4s; }

    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }

    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .service-card {
        padding: 2rem 1.5rem;
    }

    .service-card:hover {
        transform: translateY(-10px);
    }
}

/* Utilidades mejoradas */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
}

.text-center {
    text-align: center;
}

.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

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

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

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

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

@keyframes rotateIn {
    from { 
        opacity: 0;
        transform: rotate(-10deg) scale(0.9);
    }
    to { 
        opacity: 1;
        transform: rotate(0deg) scale(1);
    }
}

/* Clases de animación para JavaScript */
.animate-fade-in {
    animation: fadeIn 0.8s ease-out;
}

.animate-slide-left {
    animation: slideInLeft 0.8s ease-out;
}

.animate-slide-right {
    animation: slideInRight 0.8s ease-out;
}

.animate-scale-in {
    animation: scaleIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animate-rotate-in {
    animation: rotateIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* Efectos de parallax y scroll */
.parallax-element {
    will-change: transform;
    transition: transform 0.1s ease-out;
}

/* Optimizaciones de hardware acceleration */
.gpu-accelerated {
    transform: translateZ(0);
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
}

/* Efectos de glassmorphism mejorados */
.glass-effect {
    background: rgba(255, 255, 255, 0.08);
    
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 32px rgba(0, 0, 0, 0.1);
}

/* Efectos de loading para mejor UX */
.loading-shimmer {
    background: linear-gradient(90deg, rgba(255,255,255,0.1) 25%, rgba(255,255,255,0.2) 50%, rgba(255,255,255,0.1) 75%);
    background-size: 200% 100%;
    animation: shimmerLoad 1.5s infinite;
}

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

/* Mejoras específicas para elementos interactivos */
input, textarea, select {
    transition: var(--transition-normal);
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.05);
    color: var(--light);
    padding: 1rem;
}

input:focus, textarea:focus, select:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.2);
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
}

/* Efectos de hover universales mejorados */
.hover-lift {
    transition: var(--transition-smooth);
}

.hover-lift:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-lg);
}

.hover-glow {
    position: relative;
    transition: var(--transition-normal);
}

.hover-glow::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--gradient-2);
    opacity: 0;
    filter: blur(20px);
    transition: opacity 0.4s ease;
    z-index: -1;
    border-radius: inherit;
}

.hover-glow:hover::before {
    opacity: 0.3;
}

/* Efectos de texto mejorados */
.text-gradient {
    background: var(--gradient-3);
    background-size: 200% 200%;
    background-clip: text;
    
    -webkit-text-fill-color: transparent;
    animation: gradientShift 3s ease infinite;
}

.text-glow {
    text-shadow: 
        0 0 10px rgba(233, 196, 106, 0.3),
        0 0 20px rgba(233, 196, 106, 0.2),
        0 0 30px rgba(233, 196, 106, 0.1);
}

/* Mejoras en animaciones de scroll reveal */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.reveal-left {
    opacity: 0;
    transform: translateX(-30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-left.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-right {
    opacity: 0;
    transform: translateX(30px);
    transition: all 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-right.revealed {
    opacity: 1;
    transform: translateX(0);
}

.reveal-scale {
    opacity: 0;
    transform: scale(0.8);
    transition: all 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.reveal-scale.revealed {
    opacity: 1;
    transform: scale(1);
}

/* Optimizaciones finales de rendimiento */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img, video {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    transition: var(--transition-normal);
}

img:hover, video:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-lg);
}

/* Media queries adicionales para mejor responsive */
@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2rem;
    }
    
    .service-card {
        padding: 1.5rem 1rem;
    }
    
    .btn-primary, .btn-secondary {
        padding: 0.8rem 1.5rem;
        font-size: 1rem;
    }
    
    .section {
        padding: 4rem 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Scrollbar personalizada */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: var(--darker);
}

::-webkit-scrollbar-thumb {
    background: var(--gradient-2);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--gradient-3);
}