/* MEJORAS DE DISEÑO 2026 - TENDENCIAS MODERNAS */

/* Mejora de Botones con Efecto Ripple */
.btn-primary {
    position: relative;
    overflow: hidden;
    color: var(--color-white) !important;
}

.btn-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 cubic-bezier(0.25, 0.46, 0.45, 0.94), height 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    z-index: -1;
}

.btn-primary:hover::after {
    width: 400px;
    height: 400px;
}

.btn-primary:hover {
    transform: translateY(-4px) scale(1.02) !important;
}

/* Efecto Glassmorphism en Tarjetas */
.servicio-card,
.caracteristica-card,
.item-principal,
.unidad-item {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid rgba(39, 193, 191, 0.1);
}

.servicio-card:hover,
.caracteristica-card:hover,
.item-principal:hover,
.unidad-item:hover {
    background: rgba(255, 255, 255, 1) !important;
    border-color: rgba(39, 193, 191, 0.3);
}

/* Animaciones de Entrada Mejoradas */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

/* Aplicar Animaciones con Stagger */
.servicio-card {
    animation: slideInUp 0.6s ease-out forwards;
    opacity: 0;
}

.servicio-card:nth-child(1) { animation-delay: 0.1s; }
.servicio-card:nth-child(2) { animation-delay: 0.2s; }
.servicio-card:nth-child(3) { animation-delay: 0.3s; }
.servicio-card:nth-child(4) { animation-delay: 0.4s; }
.servicio-card:nth-child(5) { animation-delay: 0.5s; }
.servicio-card:nth-child(6) { animation-delay: 0.6s; }

.caracteristica-card {
    animation: scaleIn 0.6s ease-out forwards;
    opacity: 0;
}

.caracteristica-card:nth-child(1) { animation-delay: 0.1s; }
.caracteristica-card:nth-child(2) { animation-delay: 0.2s; }
.caracteristica-card:nth-child(3) { animation-delay: 0.3s; }
.caracteristica-card:nth-child(4) { animation-delay: 0.4s; }

.item-principal {
    animation: fadeInLeft 0.6s ease-out forwards;
    opacity: 0;
}

.item-principal:nth-child(1) { animation-delay: 0.1s; }
.item-principal:nth-child(2) { animation-delay: 0.2s; }
.item-principal:nth-child(3) { animation-delay: 0.3s; }
.item-principal:nth-child(4) { animation-delay: 0.4s; }

/* Mejora de Imágenes con Zoom y Rotación */
.servicio-image img {
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.6s ease !important;
}

.servicio-card:hover .servicio-image img {
    transform: scale(1.15) rotate(2deg) !important;
    filter: brightness(1.1) !important;
}

/* Mejora de Tipografía */
h1, h2, h3, h4, h5, h6 {
    letter-spacing: 0.5px;
    font-weight: 900;
    transition: color 0.3s ease;
}

h2 {
    background: linear-gradient(135deg, var(--color-dark), var(--color-primary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Mejora de Enlaces y Accesibilidad */
a {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

a:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 4px;
    border-radius: 4px;
}

/* Efectos de Navegación */
.nav-menu a:hover {
    color: var(--color-primary) !important;
    text-shadow: 0 0 10px rgba(39, 193, 191, 0.3);
}

/* Mejora de Contacto con Efectos */
.info-item {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.info-item:hover {
    transform: translateX(10px);
}

.info-icon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.info-item:hover .info-icon {
    transform: scale(1.2) rotate(10deg);
    color: var(--color-primary) !important;
}

/* Mejora de Iconos en General */
.caracteristica-icon,
.item-icon {
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.caracteristica-card:hover .caracteristica-icon,
.item-principal:hover .item-icon {
    transform: scale(1.3) rotate(360deg);
}

/* Mejora de Footer */
.footer {
    background: linear-gradient(135deg, var(--color-dark), var(--color-dark-light)) !important;
    border-top: 1px solid rgba(39, 193, 191, 0.2);
}

.footer a:hover {
    color: var(--color-primary) !important;
    text-shadow: 0 0 10px rgba(39, 193, 191, 0.3);
}

/* Mejora de Sombras */
.servicio-card,
.caracteristica-card,
.item-principal,
.unidad-item {
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}

.servicio-card:hover,
.caracteristica-card:hover,
.item-principal:hover,
.unidad-item:hover {
    box-shadow: 0 20px 60px rgba(39, 193, 191, 0.15) !important;
}

/* Mejora de Secciones */
section {
    position: relative;
}

section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(39, 193, 191, 0.3), transparent);
}

/* Efecto de Scroll Suave */
html {
    scroll-behavior: smooth;
}

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

/* Mejora de Hover en Redes Sociales */
.social-btn {
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.social-btn:hover {
    transform: translateY(-4px) scale(1.1);
}

/* Efecto de Brillo en Elementos */
.servicio-card::before,
.caracteristica-card::before,
.item-principal::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }
    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Mejora de Transiciones Globales */
* {
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Efecto de Hover en Párrafos */
p {
    transition: color 0.3s ease, text-shadow 0.3s ease;
}

.servicio-card:hover p,
.caracteristica-card:hover p,
.item-principal:hover p {
    color: var(--color-text);
}

/* Mejora de Botones en Contacto */
.social-btn {
    position: relative;
    overflow: hidden;
}

.social-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s ease;
}

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