/* ============================================
   VARIABLES CSS Y CONFIGURACIÓN GLOBAL
   VERSIÓN PREMIUM MODERNIZADA
   ============================================ */
:root {
    /* Colores principales - Paleta Premium Construcción */
    --primary-color: #0A2E5C;        /* Azul marino profundo - Confianza */
    --primary-dark: #051a35;         /* Azul casi negro - Elegancia */
    --primary-light: #1E5BA8;        /* Azul medio - Claridad */
    --secondary-color: #FF6B35;      /* Naranja vibrante - Acción */
    --accent-color: #FDB44B;         /* Dorado cálido - Premium */
    
    /* Colores de soporte */
    --success: #10B981;              /* Verde éxito */
    --warning: #F59E0B;              /* Amarillo advertencia */
    --info: #3B82F6;                 /* Azul información */
    --error: #EF4444;                /* Rojo error */
    
    /* Neutros modernos mejorados */
    --white: #FFFFFF;
    --gray-50: #F9FAFB;
    --gray-100: #F3F4F6;
    --gray-200: #E5E7EB;
    --gray-300: #D1D5DB;
    --gray-400: #9CA3AF;
    --gray-500: #6B7280;
    --gray-600: #4B5563;
    --gray-700: #374151;
    --gray-800: #1F2937;
    --gray-900: #111827;
    --black: #0A0A0A;
    
    /* Compatibilidad con código existente */
    --gray-light: #F3F4F6;
    --gray-medium: #9CA3AF;
    --gray-dark: #374151;
    
    /* Tipografía mejorada */
    --font-primary: 'Inter', 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-secondary: 'Outfit', 'Montserrat', sans-serif;
    --font-display: 'Outfit', 'Montserrat', sans-serif;
    
    /* Espaciado */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;
    
    /* Transiciones mejoradas con cubic-bezier */
    --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    
    /* Sombras modernas en capas */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.2);
    --shadow-xl: 0 20px 40px rgba(0, 0, 0, 0.25);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-inner: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
    
    /* Sombras de color */
    --shadow-primary: 0 10px 40px -10px rgba(10, 46, 92, 0.4);
    --shadow-secondary: 0 10px 40px -10px rgba(255, 107, 53, 0.4);
    --shadow-accent: 0 10px 40px -10px rgba(253, 180, 75, 0.4);
    
    /* Border radius mejorado */
    --radius-xs: 4px;
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-2xl: 24px;
    --radius-full: 9999px;
    
    /* Blur para glassmorphism */
    --blur-sm: 8px;
    --blur-md: 12px;
    --blur-lg: 16px;
    --blur-xl: 24px;
    
    /* Z-index scale */
    --z-dropdown: 1000;
    --z-sticky: 1020;
    --z-fixed: 1030;
    --z-modal-backdrop: 1040;
    --z-modal: 1050;
    --z-popover: 1060;
    --z-tooltip: 1070;
}

/* Dark Mode Variables */
[data-theme="dark"] {
    --primary-color: #3B82F6;
    --primary-dark: #2563EB;
    --primary-light: #60A5FA;
    --secondary-color: #FB923C;
    --accent-color: #FBBF24;
    
    --white: #0A0A0A;
    --black: #F9FAFB;
    --gray-50: #111827;
    --gray-100: #1F2937;
    --gray-200: #374151;
    --gray-300: #4B5563;
    --gray-700: #D1D5DB;
    --gray-900: #F9FAFB;
    
    --gray-light: #1F2937;
    --gray-medium: #6B7280;
    --gray-dark: #D1D5DB;
    
    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
}

/* ============================================
   RESET Y ESTILOS BASE
   ============================================ */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-primary);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition-normal);
}

ul {
    list-style: none;
}

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
}

/* ============================================
   UTILIDADES
   ============================================ */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

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

.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: var(--spacing-sm);
}

.section-title {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--spacing-md);
    line-height: 1.2;
}

.section-description {
    font-size: 1.125rem;
    color: var(--gray-dark);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

/* ============================================
   BOTONES
   ============================================ */
.btn {
    display: inline-block;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 1rem;
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 2px solid transparent;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    box-shadow: var(--shadow-md);
}

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

.btn-secondary {
    background: transparent;
    color: var(--white);
    border-color: var(--white);
}

.btn-secondary:hover {
    background: var(--white);
    color: var(--primary-color);
}

.btn-large {
    padding: 1.2rem 3rem;
    font-size: 1.125rem;
}

/* ============================================
   NAVEGACIÓN
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    backdrop-filter: none;
    box-shadow: none;
    z-index: 1000;
    transition: all var(--transition-normal);
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem var(--spacing-md);
}

.logo {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo img {
    height: 50px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    transition: var(--transition-normal);
}

.navbar.scrolled .logo img {
    filter: none;
}

.logo-text {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--white);
    font-family: var(--font-secondary);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.navbar.scrolled .logo-text {
    color: var(--primary-color);
    text-shadow: none;
}

.nav-menu {
    display: flex;
    gap: 2.5rem;
    align-items: center;
}

.nav-link {
    font-weight: 500;
    color: var(--white);
    position: relative;
    transition: var(--transition-normal);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .nav-link {
    color: var(--black);
    text-shadow: none;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--white);
    transition: width var(--transition-normal);
}

.navbar.scrolled .nav-link::after {
    background: var(--primary-color);
}

.nav-link:hover,
.nav-link.active {
    color: var(--white);
}

.navbar.scrolled .nav-link:hover,
.navbar.scrolled .nav-link.active {
    color: var(--primary-color);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    cursor: pointer;
    z-index: 1001;
}

.hamburger span {
    width: 25px;
    height: 3px;
    background: var(--white);
    border-radius: 2px;
    transition: var(--transition-normal);
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.navbar.scrolled .hamburger span {
    background: var(--primary-color);
    box-shadow: none;
}

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

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

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

/* ============================================
   HERO SECTION CON CARRUSEL
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 600px;
    overflow: hidden;
}

.hero-carousel {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.carousel-item {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.carousel-item.active {
    opacity: 1;
    z-index: 1;
}

.carousel-item img,
.carousel-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 50%, rgba(0, 0, 0, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 800;
    margin-bottom: var(--spacing-md);
    text-shadow: 2px 2px 20px rgba(0, 0, 0, 0.5), 0 0 30px rgba(0, 0, 0, 0.4);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(1.125rem, 3vw, 1.5rem);
    margin-bottom: var(--spacing-lg);
    font-weight: 300;
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5), 0 0 20px rgba(0, 0, 0, 0.4);
}

.hero-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* Estilos específicos para heroes de subpáginas - texto legible sin overlay completo */
.page-hero-carousel .hero-content .container {
    background: rgba(0, 0, 0, 0.4);
    padding: 3rem 2.5rem;
    border-radius: 20px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-hero-carousel .hero-title {
    text-shadow: 3px 3px 20px rgba(0, 0, 0, 1), 0 0 40px rgba(0, 0, 0, 0.9), 2px 2px 10px rgba(0, 0, 0, 1);
}

.page-hero-carousel .hero-subtitle {
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 1), 0 0 30px rgba(0, 0, 0, 0.9), 1px 1px 8px rgba(0, 0, 0, 1);
}

/* Animaciones Hero */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-fade-in {
    animation: fadeIn 1s ease-out 0.3s both;
}

.animate-fade-in-delay {
    animation: fadeIn 1s ease-out 0.6s both;
}

.animate-fade-in-delay-2 {
    animation: fadeIn 1s ease-out 0.9s both;
}

/* Controles del carrusel */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    background: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(5px);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.25rem;
    transition: var(--transition-normal);
    cursor: pointer;
}

.carousel-control:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: translateY(-50%) scale(1.1);
}

.carousel-control.prev {
    left: var(--spacing-md);
}

.carousel-control.next {
    right: var(--spacing-md);
}

/* Indicadores del carrusel */
.carousel-indicators {
    position: absolute;
    bottom: var(--spacing-md);
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: var(--spacing-sm);
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: var(--transition-normal);
}

.carousel-indicator.active {
    background: var(--white);
    width: 40px;
    border-radius: 6px;
}

/* Indicador de scroll */
.scroll-indicator {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 5px;
    align-items: center;
}

.scroll-indicator span {
    width: 2px;
    height: 15px;
    background: var(--white);
    animation: scrollAnimation 2s infinite;
}

.scroll-indicator span:nth-child(2) {
    animation-delay: 0.2s;
}

.scroll-indicator span:nth-child(3) {
    animation-delay: 0.4s;
}

@keyframes scrollAnimation {
    0%, 100% {
        opacity: 0;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(10px);
    }
}

/* ============================================
   SECCIÓN ESTADÍSTICAS
   ============================================ */
.stats-section {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-lg);
    text-align: center;
}

.stat-item i {
    font-size: 3rem;
    margin-bottom: var(--spacing-sm);
    opacity: 0.9;
}

.stat-number {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: var(--spacing-xs);
}

.stat-item p {
    font-size: 1.125rem;
    font-weight: 300;
}

/* ============================================
   TRUST BADGES SECTION
   ============================================ */
.trust-badges-section {
    padding: var(--spacing-lg) 0;
    background: var(--white);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
}

.trust-badge {
    text-align: center;
    padding: var(--spacing-md);
    transition: transform var(--transition-normal);
}

.trust-badge:hover {
    transform: translateY(-5px);
}

.trust-badge i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: var(--spacing-sm);
}

.trust-badge h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--black);
    margin-bottom: var(--spacing-xs);
}

.trust-badge p {
    font-size: 0.875rem;
    color: var(--gray-dark);
}

/* ============================================
   SECCIÓN PARALLAX
   ============================================ */
.parallax-section {
    position: relative;
    padding: var(--spacing-xl) 0;
    overflow: hidden;
}

.parallax-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    z-index: -1;
}

.parallax-bg::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /* Sin overlay - imágenes se ven naturales */
    background: transparent;
}

/* ============================================
   VIDEO CORPORATIVO SECTION
   ============================================ */
.video-corporate-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
}

.video-corporate-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-xl);
    align-items: center;
}

.video-corporate-text .section-description {
    text-align: left;
    margin: 0 0 var(--spacing-md);
}

.video-features {
    list-style: none;
    margin-bottom: var(--spacing-lg);
}

.video-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-sm);
    font-size: 1.125rem;
    color: var(--gray-dark);
}

.video-features i {
    color: var(--primary-color);
    font-size: 1.25rem;
}

.video-cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    flex-wrap: wrap;
}

.video-corporate-player {
    position: relative;
}

.video-wrapper-corporate {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--black);
}

.video-wrapper-corporate video {
    width: 100%;
    height: auto;
    display: block;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 1;
    transition: opacity var(--transition-normal);
    cursor: pointer;
}

.video-play-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}

.video-play-button {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    font-size: 2rem;
    border: none;
    cursor: pointer;
    transition: all var(--transition-normal);
    padding-left: 5px;
    box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
}

.video-play-button:hover {
    transform: scale(1.1);
    background: var(--primary-color);
    color: var(--white);
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 0 30px rgba(255, 255, 255, 0.5);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 0 40px rgba(255, 255, 255, 0.8);
    }
}

.video-play-button {
    animation: pulse 2s infinite;
}

.video-play-button:hover {
    animation: none;
}

.video-info-card {
    background: var(--white);
    padding: var(--spacing-md);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    margin-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.video-info-item {
    display: flex;
    gap: var(--spacing-sm);
    align-items: center;
}

.video-info-item i {
    font-size: 2rem;
    color: var(--primary-color);
}

.video-info-item h4 {
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
    color: var(--black);
}

.video-info-item p {
    font-size: 0.875rem;
    color: var(--gray-dark);
}

.video-stats {
    display: flex;
    gap: var(--spacing-md);
}

.video-stat {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: var(--gray-light);
    border-radius: var(--radius-sm);
}

.video-stat i {
    color: var(--primary-color);
}

.video-stat span {
    font-weight: 600;
    color: var(--black);
}

/* ============================================
   VIDEO SHOWCASE SECTION
   ============================================ */
.video-showcase-section {
    padding: var(--spacing-xl) 0;
    background: var(--gray-light);
}

.video-showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: var(--spacing-lg);
}

.video-showcase-card {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-slow);
}

.video-showcase-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.video-thumbnail {
    position: relative;
    background: var(--black);
}

.video-thumbnail video {
    width: 100%;
    height: auto;
    display: block;
}

.video-duration {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0, 0, 0, 0.8);
    color: var(--white);
    padding: 4px 12px;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.video-showcase-info {
    padding: var(--spacing-md);
}

.video-showcase-info h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
}

.video-showcase-info i {
    color: var(--primary-color);
}

.video-showcase-info p {
    color: var(--gray-dark);
    line-height: 1.6;
}

/* ============================================
   ABOUT PREVIEW
   ============================================ */
.about-preview {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.about-preview .container {
    position: relative;
    z-index: 2;
}

.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: center;
}

.about-text {
    position: relative;
    z-index: 1;
}

.about-text .section-description {
    text-align: left;
    margin: 0 0 var(--spacing-md);
}

.about-images {
    position: relative;
    z-index: 1;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
}

.image-grid img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    transition: transform var(--transition-slow);
}

.image-grid img:hover {
    transform: scale(1.05);
}

/* ============================================
   SERVICIOS
   ============================================ */
.services-section {
    padding: var(--spacing-xl) 0;
    background: var(--gray-light);
    position: relative;
    z-index: 10;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: var(--spacing-lg);
}

.service-card {
    background: var(--white);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.service-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.service-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.service-card:hover .service-image img {
    transform: scale(1.1);
}

.service-icon {
    position: absolute;
    bottom: -40px;
    right: var(--spacing-md);
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-lg);
    z-index: 2;
}

.service-icon i {
    font-size: 2.5rem;
    color: var(--white);
}

.service-content {
    padding: var(--spacing-lg);
    padding-top: calc(var(--spacing-lg) + 50px);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.service-card > p {
    color: var(--gray-dark);
    margin-bottom: var(--spacing-md);
}

.service-features {
    margin-bottom: var(--spacing-md);
}

.service-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xs);
    color: var(--gray-dark);
}

.service-features i {
    color: var(--primary-color);
    font-size: 0.875rem;
}

.service-link {
    color: var(--primary-color);
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
}

.service-link:hover {
    gap: var(--spacing-sm);
}

/* ============================================
   BEFORE/AFTER COMPARISON SLIDER
   ============================================ */
.before-after-section {
    padding: var(--spacing-xl) 0;
    background: var(--gray-light);
}

.before-after-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: var(--spacing-xl);
    margin-top: var(--spacing-lg);
}

.before-after-container {
    background: var(--white);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-slow);
}

.before-after-container:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.comparison-slider {
    position: relative;
    width: 100%;
    height: 500px;
    overflow: hidden;
    cursor: ew-resize;
    user-select: none;
}

.before-image,
.after-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.before-image img,
.after-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.after-image {
    clip-path: inset(0 0 0 50%);
}

.image-label {
    position: absolute;
    top: 20px;
    padding: 8px 16px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 2px;
    border-radius: var(--radius-sm);
    z-index: 2;
}

.label-before {
    left: 20px;
}

.label-after {
    right: 20px;
}

.slider-handle {
    position: absolute;
    top: 0;
    left: 50%;
    width: 4px;
    height: 100%;
    background: var(--white);
    transform: translateX(-50%);
    z-index: 3;
    cursor: ew-resize;
}

.slider-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    background: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
    transition: var(--transition-normal);
}

.slider-button:hover {
    transform: translate(-50%, -50%) scale(1.1);
    background: var(--primary-color);
}

.slider-button:hover i {
    color: var(--white);
}

.slider-button i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: var(--transition-normal);
}

.slider-line {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 2px;
    height: 100%;
    background: var(--white);
    pointer-events: none;
}

.comparison-info {
    padding: var(--spacing-lg);
    text-align: center;
}

.comparison-info h3 {
    font-size: 1.5rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.comparison-info p {
    color: var(--gray-dark);
    font-size: 1rem;
    line-height: 1.6;
}

/* ============================================
   PROYECTOS
   ============================================ */
.projects-preview {
    padding: var(--spacing-xl) 0;
    position: relative;
}

.projects-preview .container {
    position: relative;
    z-index: 2;
}

.projects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    height: 400px;
}

.project-image {
    position: relative;
    width: 100%;
    height: 100%;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(30, 91, 168, 0.9), rgba(61, 155, 217, 0.9));
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-slow);
}

.project-card:hover .project-overlay {
    opacity: 1;
}

.project-card:hover .project-image img {
    transform: scale(1.1);
}

.project-info {
    text-align: center;
    color: var(--white);
    padding: var(--spacing-md);
}

.project-info h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
}

.project-info p {
    margin-bottom: var(--spacing-md);
    font-size: 1.125rem;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: 0.75rem 2rem;
    background: var(--white);
    color: var(--primary-color);
    border-radius: var(--radius-sm);
    font-weight: 600;
}

.project-btn:hover {
    gap: var(--spacing-md);
}

/* ============================================
   PROCESO
   ============================================ */
.process-section {
    padding: var(--spacing-xl) 0;
    background: var(--white);
    position: relative;
    z-index: 10;
}

.process-timeline {
    max-width: 800px;
    margin: 0 auto;
}

.process-item {
    display: grid;
    grid-template-columns: 100px 1fr;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    position: relative;
}

.process-item::before {
    content: '';
    position: absolute;
    left: 50px;
    top: 100px;
    width: 2px;
    height: calc(100% + var(--spacing-lg));
    background: var(--gray-medium);
}

.process-item:last-child::before {
    display: none;
}

.process-number {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 800;
    box-shadow: var(--shadow-md);
    z-index: 1;
    position: relative;
}

.process-content h3 {
    font-size: 1.75rem;
    margin-bottom: var(--spacing-sm);
    color: var(--black);
}

.process-content p {
    color: var(--gray-dark);
    font-size: 1.125rem;
}

/* ============================================
   TESTIMONIOS
   ============================================ */
.testimonials-section {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Asegurar que el contenido sea visible sobre el parallax */
.testimonials-section .container {
    position: relative;
    z-index: 2;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: var(--spacing-lg);
}

.testimonial-card {
    background: rgba(255, 255, 255, 0.95); /* Ligeramente transparente */
    backdrop-filter: blur(5px);
    padding: var(--spacing-lg);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    position: relative;
    z-index: 1;
}

.testimonial-stars {
    color: var(--accent-color);
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.testimonial-text {
    color: var(--gray-dark);
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.testimonial-author h4 {
    color: var(--black);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xs);
}

.testimonial-author span {
    color: var(--gray-medium);
    font-size: 0.875rem;
}

/* ============================================
   CTA SECTION
   ============================================ */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary-color));
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 2;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-md);
}

.cta-content p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-lg);
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.cta-buttons {
    display: flex;
    gap: var(--spacing-md);
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
    background: var(--black);
    color: var(--white);
    padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: var(--spacing-md);
}

.footer-col p {
    color: var(--gray-medium);
    margin-bottom: var(--spacing-md);
    line-height: 1.8;
}

.footer-col h3 {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
}

.footer-col ul li {
    margin-bottom: var(--spacing-sm);
}

.footer-col ul li a {
    color: var(--gray-medium);
    transition: var(--transition-normal);
}

.footer-col ul li a:hover {
    color: var(--white);
    padding-left: 5px;
}

.contact-info li {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    color: var(--gray-medium);
}

.contact-info i {
    color: var(--primary-light);
    margin-top: 5px;
}

.social-links {
    display: flex;
    gap: var(--spacing-md);
}

.social-links a {
    width: 40px;
    height: 40px;
    background: var(--gray-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: var(--transition-normal);
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    border-top: 1px solid var(--gray-dark);
    padding-top: var(--spacing-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-md);
}

.footer-bottom p {
    color: var(--gray-medium);
}

.footer-links {
    display: flex;
    gap: var(--spacing-md);
}

.footer-links a {
    color: var(--gray-medium);
}

.footer-links a:hover {
    color: var(--white);
}

/* ============================================
   SCROLL TO TOP
   ============================================ */
.scroll-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--primary-color);
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition-normal);
    z-index: 999;
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
}

.scroll-top:hover {
    background: var(--primary-dark);
    transform: translateY(-5px);
}

/* ============================================
   WHATSAPP FLOATING BUTTON
   ============================================ */
.whatsapp-float {
    position: fixed;
    bottom: 100px;
    right: 30px;
    background: #25D366;
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    z-index: 998;
    transition: all var(--transition-normal);
    overflow: hidden;
}

.whatsapp-float:hover {
    width: 220px;
    border-radius: 30px;
    background: #128C7E;
    transform: translateY(-5px);
    box-shadow: 0 6px 30px rgba(37, 211, 102, 0.6);
}

.whatsapp-float i {
    transition: var(--transition-normal);
}

.whatsapp-float:hover i {
    margin-right: 10px;
}

.whatsapp-text {
    position: absolute;
    right: 20px;
    opacity: 0;
    white-space: nowrap;
    font-size: 0.95rem;
    font-weight: 600;
    transition: opacity var(--transition-normal);
}

.whatsapp-float:hover .whatsapp-text {
    opacity: 1;
}

/* Animación de pulso para WhatsApp */
@keyframes whatsapp-pulse {
    0% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
    50% {
        box-shadow: 0 4px 30px rgba(37, 211, 102, 0.8);
    }
    100% {
        box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    }
}

.whatsapp-float {
    animation: whatsapp-pulse 2s infinite;
}

.whatsapp-float:hover {
    animation: none;
}

/* ============================================
   FREE BUDGET BADGE
   ============================================ */
.free-budget-badge {
    position: fixed;
    top: 120px;
    right: -10px;
    background: linear-gradient(135deg, #f0a500, #ff6b35);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 8px 0 0 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-shadow: -4px 4px 20px rgba(240, 165, 0, 0.4);
    z-index: 997;
    cursor: pointer;
    transition: all var(--transition-normal);
    animation: badge-slide 0.6s ease-out 1s both;
}

@keyframes badge-slide {
    from {
        right: -200px;
    }
    to {
        right: -10px;
    }
}

.free-budget-badge:hover {
    right: 0;
    box-shadow: -6px 6px 30px rgba(240, 165, 0, 0.6);
    transform: scale(1.05);
}

.free-budget-badge i {
    font-size: 1.5rem;
}

.badge-content {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.badge-title {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 400;
}

.badge-subtitle {
    font-size: 1.1rem;
    font-weight: 800;
    letter-spacing: 2px;
}

/* ============================================
   ANIMACIONES AOS
   ============================================ */
[data-aos] {
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
}

[data-aos].aos-animate {
    opacity: 1;
}

[data-aos="fade-up"] {
    transform: translateY(50px);
}

[data-aos="fade-up"].aos-animate {
    transform: translateY(0);
}

[data-aos="fade-right"] {
    transform: translateX(-50px);
}

[data-aos="fade-right"].aos-animate {
    transform: translateX(0);
}

[data-aos="fade-left"] {
    transform: translateX(50px);
}

[data-aos="fade-left"].aos-animate {
    transform: translateX(0);
}

[data-aos="zoom-in"] {
    transform: scale(0.9);
}

[data-aos="zoom-in"].aos-animate {
    transform: scale(1);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablets */
@media (max-width: 968px) {
    :root {
        --spacing-lg: 3rem;
        --spacing-xl: 4rem;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 0;
        flex-direction: column;
        background: var(--white);
        width: 100%;
        height: 100vh;
        padding-top: 100px;
        box-shadow: var(--shadow-lg);
        transition: left var(--transition-slow);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .about-content {
        grid-template-columns: 1fr;
    }
    
    .video-corporate-content {
        grid-template-columns: 1fr;
    }
    
    .video-cta-buttons {
        flex-direction: column;
    }
    
    .video-cta-buttons .btn {
        width: 100%;
        text-align: center;
    }
    
    .video-info-card {
        flex-direction: column;
        gap: var(--spacing-md);
        text-align: center;
    }
    
    .video-info-item {
        justify-content: center;
    }
    
    .video-stats {
        justify-content: center;
    }
    
    .video-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .projects-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
    
    .process-item {
        grid-template-columns: 80px 1fr;
    }
    
    .process-number {
        width: 80px;
        height: 80px;
        font-size: 1.5rem;
    }
    
    .process-item::before {
        left: 40px;
    }
}

/* Móviles */
@media (max-width: 640px) {
    :root {
        --spacing-lg: 2rem;
        --spacing-xl: 3rem;
    }
    
    .logo img {
        height: 40px;
    }
    
    .logo-text {
        display: none;
    }
    
    .hero {
        min-height: 500px;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        padding: 0.875rem 2rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
    }
    
    .carousel-control.prev {
        left: var(--spacing-sm);
    }
    
    .carousel-control.next {
        right: var(--spacing-sm);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-md);
    }
    
    .services-grid {
        grid-template-columns: 1fr;
    }
    
    .service-image {
        height: 220px;
    }
    
    .service-icon {
        width: 70px;
        height: 70px;
        bottom: -35px;
    }
    
    .service-icon i {
        font-size: 2rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
    }
    
    .project-card {
        height: 300px;
    }
    
    .process-item {
        grid-template-columns: 60px 1fr;
        gap: var(--spacing-md);
    }
    
    .process-number {
        width: 60px;
        height: 60px;
        font-size: 1.25rem;
    }
    
    .process-item::before {
        left: 30px;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }
    
    .scroll-top {
        width: 45px;
        height: 45px;
        bottom: 20px;
        right: 20px;
    }
    
    .whatsapp-float {
        width: 55px;
        height: 55px;
        bottom: 80px;
        right: 20px;
        font-size: 1.75rem;
    }
    
    .whatsapp-float:hover {
        width: 55px;
        border-radius: 50%;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .free-budget-badge {
        top: 100px;
        padding: 10px 15px;
        font-size: 0.85rem;
    }
    
    .free-budget-badge i {
        font-size: 1.25rem;
    }
    
    .badge-title {
        font-size: 0.65rem;
    }
    
    .badge-subtitle {
        font-size: 0.95rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
    }
    
    .parallax-bg {
        background-attachment: scroll;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
    }
    
    .comparison-slider {
        height: 400px;
    }
    
    .slider-button {
        width: 45px;
        height: 45px;
    }
    
    .slider-button i {
        font-size: 0.875rem;
    }
    
    .video-play-button {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }
    
    .video-features li {
        font-size: 1rem;
    }
}

/* Pantallas muy pequeñas */
@media (max-width: 380px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .stat-item i {
        font-size: 2.5rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
}

/* ============================================
   EFECTOS MODERNOS AVANZADOS 2024
   ============================================ */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    z-index: 9999;
    transform-origin: left;
    transition: transform 0.1s ease-out;
    box-shadow: 0 0 10px rgba(10, 46, 92, 0.5);
}

/* Glassmorphism Cards */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    border-radius: var(--radius-xl);
}

.glass-card-dark {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Mesh Gradient Background (Tendencia 2024) */
.mesh-gradient-bg {
    background: 
        radial-gradient(at 40% 20%, rgba(10, 46, 92, 0.8) 0px, transparent 50%),
        radial-gradient(at 80% 0%, rgba(255, 107, 53, 0.6) 0px, transparent 50%),
        radial-gradient(at 0% 50%, rgba(253, 180, 75, 0.5) 0px, transparent 50%),
        radial-gradient(at 80% 80%, rgba(30, 91, 168, 0.7) 0px, transparent 50%);
    background-size: 200% 200%;
    animation: meshMove 15s ease infinite;
}

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

/* Ken Burns Effect para carrusel */
.carousel-item.ken-burns img {
    animation: kenBurns 10s ease-out infinite alternate;
}

@keyframes kenBurns {
    0% { 
        transform: scale(1) translateX(0);
    }
    100% { 
        transform: scale(1.15) translateX(-20px);
    }
}

/* Botones con efecto ripple mejorado */
.btn-ripple {
    position: relative;
    overflow: hidden;
    transform: translate3d(0, 0, 0);
}

.btn-ripple::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.5);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.btn-ripple:active::after {
    width: 300px;
    height: 300px;
}

/* Micro-interacciones para botones */
.btn-interactive {
    transition: all var(--transition-bounce);
    position: relative;
}

.btn-interactive::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.btn-interactive:hover::before {
    opacity: 0.15;
}

.btn-interactive:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-xl);
}

.btn-interactive:active {
    transform: translateY(-2px) scale(0.98);
}

/* Cards con tilt 3D al hover */
.card-3d {
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.card-3d:hover {
    transform: perspective(1000px) rotateX(5deg) rotateY(5deg) translateZ(10px);
}

.card-3d-content {
    transform: translateZ(50px);
}

/* Efecto de ondas en hover */
.wave-hover {
    position: relative;
    overflow: hidden;
}

.wave-hover::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.3) 0%, transparent 70%);
    transform: translate(-50%, -50%);
    transition: width 0.8s, height 0.8s;
}

.wave-hover:hover::before {
    width: 500px;
    height: 500px;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 25%,
        var(--gray-300) 50%,
        var(--gray-200) 75%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s infinite;
    border-radius: var(--radius-md);
}

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

/* Gradient Text */
.gradient-text {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color), var(--accent-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 200%;
    animation: gradientShift 5s ease infinite;
}

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

/* Floating Animation */
.floating {
    animation: floating 3s ease-in-out infinite;
}

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

/* Pulse Animation mejorado */
.pulse-modern {
    animation: pulse-modern 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

@keyframes pulse-modern {
    0%, 100% {
        opacity: 1;
        transform: scale(1);
    }
    50% {
        opacity: 0.8;
        transform: scale(1.05);
    }
}

/* Shine Effect */
.shine-effect {
    position: relative;
    overflow: hidden;
}

.shine-effect::after {
    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.7s;
}

.shine-effect:hover::after {
    left: 100%;
}

/* Neon Glow Effect */
.neon-glow {
    text-shadow: 
        0 0 10px var(--primary-color),
        0 0 20px var(--primary-color),
        0 0 30px var(--primary-color),
        0 0 40px var(--secondary-color);
    animation: neon-flicker 3s infinite;
}

@keyframes neon-flicker {
    0%, 100% { opacity: 1; }
    45%, 55% { opacity: 0.8; }
    50% { opacity: 1; }
}

/* Stagger Animation para listas */
.stagger-item {
    opacity: 0;
    animation: staggerFadeIn 0.6s ease forwards;
}

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

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

/* Custom Cursor (opcional, se activa con JS) */
.custom-cursor {
    width: 20px;
    height: 20px;
    border: 2px solid var(--primary-color);
    border-radius: 50%;
    position: fixed;
    pointer-events: none;
    z-index: 99999;
    transition: all 0.15s ease;
    transform: translate(-50%, -50%);
    mix-blend-mode: difference;
}

.custom-cursor.hover {
    width: 40px;
    height: 40px;
    background: rgba(10, 46, 92, 0.1);
}

/* Dark Mode Toggle Button */
.dark-mode-toggle {
    position: fixed;
    bottom: 180px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: var(--white);
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-full);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 998;
    transition: all var(--transition-normal);
    box-shadow: var(--shadow-lg);
}

.dark-mode-toggle:hover {
    transform: translateY(-5px) rotate(15deg);
    box-shadow: var(--shadow-xl);
}

.dark-mode-toggle i {
    font-size: 1.25rem;
    color: var(--primary-color);
    transition: transform var(--transition-normal);
}

[data-theme="dark"] .dark-mode-toggle {
    background: var(--gray-800);
    border-color: var(--gray-700);
}

/* Parallax Layers */
.parallax-layer-1 { transform: translateZ(-100px) scale(1.1); }
.parallax-layer-2 { transform: translateZ(-50px) scale(1.05); }
.parallax-layer-3 { transform: translateZ(0); }

/* Toast Notifications */
.toast-container {
    position: fixed;
    top: 100px;
    right: 20px;
    z-index: 10000;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.toast {
    background: var(--white);
    padding: 1rem 1.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    min-width: 300px;
    animation: toastSlideIn 0.3s ease-out;
    border-left: 4px solid var(--primary-color);
}

.toast.success { border-left-color: var(--success); }
.toast.error { border-left-color: var(--error); }
.toast.warning { border-left-color: var(--warning); }
.toast.info { border-left-color: var(--info); }

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

.toast-close {
    margin-left: auto;
    cursor: pointer;
    color: var(--gray-500);
    transition: color var(--transition-fast);
}

.toast-close:hover {
    color: var(--gray-900);
}

/* Loading Spinner moderno */
.spinner-modern {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Backdrop Blur */
.backdrop-blur {
    backdrop-filter: blur(var(--blur-lg));
    -webkit-backdrop-filter: blur(var(--blur-lg));
}

/* Aplicar mejoras a elementos existentes */
.btn-primary,
.btn-secondary {
    position: relative;
    overflow: hidden;
}

.service-card,
.project-card,
.testimonial-card {
    transition: all var(--transition-slow);
}

.service-card:hover,
.project-card:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: var(--shadow-2xl);
}

/* Mejora visual del hero */
.hero-title {
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 4px;
    background: linear-gradient(90deg, var(--secondary-color), var(--accent-color));
    border-radius: var(--radius-full);
}

