/* ============================================
   INTEGRAL CONSTRUCT BENFEL
   DISEÑO CORPORATIVO PREMIUM 2025
   Colores: Azul Marino, Azul Medio, Azul Elegancia, Blanco
   ============================================ */
:root {
    /* Paleta Corporativa - Azules Profesionales */
    --primary-color: #0A2E5C;        /* Azul Marino Profundo - Principal */
    --primary-dark: #061D3A;         /* Azul Noche - Elegancia máxima */
    --primary-light: #1E5BA8;        /* Azul Medio - Claridad */
    --primary-medium: #0F4C81;       /* Azul Elegancia - Intermedio */
    --secondary-color: #2C7BE5;      /* Azul Brillante - CTAs secundarios */
    --accent-color: #4A90D9;         /* Azul Celeste - Acentos suaves */
    
    /* Accent Premium (sutil, para CTAs importantes) */
    --cta-primary: #1E5BA8;          /* CTA principal - Azul Medio */
    --cta-hover: #0A2E5C;            /* CTA hover - Azul Marino */
    --cta-accent: #C9A227;           /* Dorado sutil - Solo detalles premium */
    
    /* Colores de soporte */
    --success: #059669;              /* Verde profesional */
    --warning: #D97706;              /* Ámbar profesional */
    --info: #2563EB;                 /* Azul información */
    --error: #DC2626;                /* Rojo profesional */
    
    /* Neutros elegantes */
    --white: #FFFFFF;
    --off-white: #FAFBFC;
    --gray-50: #F8FAFC;
    --gray-100: #F1F5F9;
    --gray-200: #E2E8F0;
    --gray-300: #CBD5E1;
    --gray-400: #94A3B8;
    --gray-500: #64748B;
    --gray-600: #475569;
    --gray-700: #334155;
    --gray-800: #1E293B;
    --gray-900: #0F172A;
    --black: #020617;
    
    /* Compatibilidad con código existente */
    --gray-light: #F1F5F9;
    --gray-medium: #64748B;
    --gray-dark: #334155;
    
    /* Tipografía mejorada con fallbacks optimizados */
    --font-primary: 'Inter', 'Poppins', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-secondary: 'Outfit', 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
    --font-display: 'Outfit', 'Montserrat', 'Helvetica Neue', Georgia, serif;
    
    /* Tamaños de tipografía fluidos y responsivos */
    --text-xs: clamp(0.75rem, 0.7rem + 0.25vw, 0.875rem);
    --text-sm: clamp(0.875rem, 0.825rem + 0.25vw, 1rem);
    --text-base: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
    --text-lg: clamp(1.125rem, 1.05rem + 0.375vw, 1.25rem);
    --text-xl: clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
    --text-2xl: clamp(1.5rem, 1.35rem + 0.75vw, 2rem);
    --text-3xl: clamp(1.875rem, 1.65rem + 1.125vw, 2.5rem);
    --text-4xl: clamp(2.25rem, 1.95rem + 1.5vw, 3rem);
    --text-5xl: clamp(3rem, 2.5rem + 2.5vw, 4rem);
    
    /* Pesos de fuente */
    --font-light: 300;
    --font-normal: 400;
    --font-medium: 500;
    --font-semibold: 600;
    --font-bold: 700;
    --font-extrabold: 800;
    --font-black: 900;
    
    /* Line heights optimizados */
    --leading-tight: 1.25;
    --leading-snug: 1.375;
    --leading-normal: 1.5;
    --leading-relaxed: 1.625;
    --leading-loose: 2;
    
    /* Letter spacing */
    --tracking-tighter: -0.05em;
    --tracking-tight: -0.025em;
    --tracking-normal: 0;
    --tracking-wide: 0.025em;
    --tracking-wider: 0.05em;
    --tracking-widest: 0.1em;
    
    /* 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;
    margin: 0;
    padding: 0;
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: var(--font-primary);
    color: var(--black);
    background-color: var(--white);
    line-height: 1.6;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100vw;
}

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);
    width: 100%;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .container {
        padding: 0 1rem;
        max-width: 100%;
    }
}

.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: var(--text-4xl);
    font-weight: var(--font-extrabold);
    color: var(--black);
    margin-bottom: var(--spacing-md);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    font-family: var(--font-display);
}

.section-description {
    font-size: var(--text-lg);
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto var(--spacing-md);
    line-height: var(--leading-relaxed);
    font-weight: var(--font-normal);
}

/* Clases utilitarias de tipografía */
.text-gradient {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.text-shadow-soft {
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.text-shadow-medium {
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.text-shadow-strong {
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.3);
}

/* Mejoras en headings */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: var(--font-bold);
    line-height: var(--leading-tight);
    letter-spacing: var(--tracking-tight);
    color: var(--gray-900);
    margin-bottom: 1rem;
}

h1 {
    font-size: var(--text-5xl);
    font-weight: var(--font-black);
}

h2 {
    font-size: var(--text-4xl);
    font-weight: var(--font-extrabold);
}

h3 {
    font-size: var(--text-3xl);
    font-weight: var(--font-bold);
}

h4 {
    font-size: var(--text-2xl);
    font-weight: var(--font-semibold);
}

h5 {
    font-size: var(--text-xl);
    font-weight: var(--font-semibold);
}

h6 {
    font-size: var(--text-lg);
    font-weight: var(--font-medium);
}

p {
    font-size: var(--text-base);
    line-height: var(--leading-relaxed);
    color: var(--gray-700);
    margin-bottom: 1rem;
}

/* Text emphasis */
.text-emphasis {
    font-weight: var(--font-semibold);
    color: var(--primary-color);
}

/* Lead text - introducción */
.lead-text {
    font-size: var(--text-xl);
    line-height: var(--leading-relaxed);
    color: var(--gray-600);
    font-weight: var(--font-normal);
}

/* Small text */
.small-text {
    font-size: var(--text-sm);
    color: var(--gray-500);
}

/* Caption */
.caption-text {
    font-size: var(--text-xs);
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: var(--tracking-wider);
    font-weight: var(--font-semibold);
}

.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 SECTION - DISEÑO PREMIUM CON VIDEO
   ============================================ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 700px;
    max-height: 1200px;
    overflow: hidden;
    background: var(--primary-dark);
}

/* Video de fondo principal */
.hero-video-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-video-bg video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay con gradiente corporativo azul - elegante y moderno */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(6, 29, 58, 0.90) 0%,
        rgba(10, 46, 92, 0.75) 35%,
        rgba(15, 76, 129, 0.40) 70%,
        rgba(30, 91, 168, 0.15) 100%
    );
    z-index: 1;
}

.hero-overlay::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(ellipse at 30% 40%, rgba(30, 91, 168, 0.15) 0%, transparent 60%),
        radial-gradient(ellipse at 70% 60%, rgba(10, 46, 92, 0.2) 0%, transparent 60%);
}

@media (max-width: 968px) {
    .hero-overlay {
        background: linear-gradient(
            180deg,
            rgba(6, 29, 58, 0.85) 0%,
            rgba(10, 46, 92, 0.75) 50%,
            rgba(15, 76, 129, 0.85) 100%
        );
    }
}

/* Patrón geométrico sutil sobre el overlay */
.hero-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02)),
        linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02)),
        linear-gradient(30deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02)),
        linear-gradient(150deg, rgba(255,255,255,0.02) 12%, transparent 12.5%, transparent 87%, rgba(255,255,255,0.02) 87.5%, rgba(255,255,255,0.02));
    background-size: 80px 140px;
    background-position: 0 0, 0 0, 40px 70px, 40px 70px;
    opacity: 0.5;
}

.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 1.5s 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;
    filter: brightness(0.9);
}

/* Efecto Ken Burns para imágenes */
.carousel-item.active img {
    animation: kenBurnsZoom 20s ease-in-out infinite;
}

@keyframes kenBurnsZoom {
    0% { transform: scale(1); }
    50% { transform: scale(1.08); }
    100% { transform: scale(1); }
}

.carousel-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(6, 29, 58, 0.70) 0%,
        rgba(10, 46, 92, 0.45) 45%,
        rgba(15, 76, 129, 0.25) 75%,
        rgba(15, 76, 129, 0.05) 100%
    );
}

@media (max-width: 968px) {
    .carousel-overlay {
        background: linear-gradient(
            180deg,
            rgba(6, 29, 58, 0.70) 0%,
            rgba(10, 46, 92, 0.60) 50%,
            rgba(6, 29, 58, 0.75) 100%
        );
    }
}

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

.hero-content .container {
    max-width: 650px;
    margin-left: 4rem;
}

@media (max-width: 1200px) {
    .hero-content .container {
        margin-left: 2rem;
    }
}

/* Badge superior del hero */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 0.5rem 1.25rem;
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 1.2rem;
    animation: fadeInDown 0.8s ease-out;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.hero-badge i {
    color: var(--accent-color);
    font-size: 0.9rem;
}

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

.hero-title {
    font-size: clamp(2rem, 5vw, 3.2rem);
    font-weight: 800;
    margin-bottom: 1.2rem;
    line-height: 1.15;
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Texto con acento de color */
.hero-title .text-accent {
    background: linear-gradient(135deg, var(--accent-color), var(--secondary-color));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(0.875rem, 2vw, 1.05rem);
    margin-bottom: 2rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.95);
    line-height: 1.5;
    max-width: 600px;
    margin-left: 0;
    margin-right: 0;
}

.hide-mobile {
    display: inline;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: flex-start;
    flex-wrap: wrap;
    margin-bottom: 2.5rem;
}

/* Botones del Hero - Diseño Premium Real Estate */
.hero .btn-primary {
    background: linear-gradient(135deg, var(--white) 0%, rgba(255, 255, 255, 0.95) 100%);
    color: var(--primary-color);
    border: none;
    font-weight: 700;
    padding: 1rem 2rem;
    border-radius: 16px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .btn-primary::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(10, 46, 92, 0.1);
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.hero .btn-primary:hover::before {
    width: 300px;
    height: 300px;
}

.hero .btn-primary:hover {
    background: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.hero .btn-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.6);
    font-weight: 600;
    padding: 1rem 2rem;
    border-radius: 16px;
    backdrop-filter: blur(10px);
    font-size: 1rem;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .btn-secondary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.2);
    transition: left 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero .btn-secondary:hover::before {
    left: 0;
}

.hero .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: var(--white);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3);
}

/* Stats en el Hero */
.hero-stats {
    display: flex;
    justify-content: flex-start;
    gap: 2.5rem;
    flex-wrap: wrap;
}

.hero-stat {
    text-align: left;
    display: flex;
    flex-direction: column;
}

.hero-stat-number {
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--white);
    font-family: var(--font-display);
    line-height: 1;
    display: block;
}

.hero-stat-label {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.8);
    margin-top: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    display: block;
}

/* Estilos específicos para heroes de subpáginas */
.page-hero-carousel {
    height: 60vh;
    min-height: 400px;
    max-height: 600px;
}

.page-hero-carousel .hero-content .container {
    background: rgba(10, 46, 92, 0.6);
    padding: 2.5rem 3rem;
    border-radius: var(--radius-xl);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-hero-carousel .hero-title {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: 1rem;
}

.page-hero-carousel .hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.125rem);
    margin-bottom: 0;
}

/* 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 - DISEÑO PREMIUM
   ============================================ */
.trust-badges-section {
    padding: var(--spacing-lg) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
    position: relative;
    overflow: hidden;
}

.trust-badges-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 15% 50%, rgba(10, 46, 92, 0.02) 0%, transparent 50%),
        radial-gradient(circle at 85% 50%, rgba(30, 91, 168, 0.02) 0%, transparent 50%);
}

.trust-badges-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    position: relative;
    z-index: 1;
}

.trust-badge {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: 20px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.trust-badge::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.trust-badge:hover::before {
    transform: scaleX(1);
}

.trust-badge:hover {
    transform: translateY(-10px) scale(1.03);
    box-shadow: 0 15px 40px rgba(10, 46, 92, 0.15);
    border-color: rgba(10, 46, 92, 0.1);
}

.trust-badge i {
    font-size: 3rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
}

.trust-badge:hover i {
    transform: scale(1.15) rotate(10deg);
    color: var(--primary-light);
}

.trust-badge h3 {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    transition: color 0.3s ease;
}

.trust-badge:hover h3 {
    color: var(--primary-color);
}

.trust-badge p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.5;
}

/* ============================================
   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;
}

/* Overlay elegante para mejorar legibilidad con diseño premium */
.about-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(6, 29, 58, 0.92) 0%,
        rgba(10, 46, 92, 0.88) 40%,
        rgba(15, 76, 129, 0.90) 80%,
        rgba(30, 91, 168, 0.92) 100%
    );
    z-index: 1;
}

.about-overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 70%, rgba(30, 91, 168, 0.15) 0%, transparent 50%);
}

.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);
}

/* Badges de especialidades - Diseño Premium */
.about-specialties {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0;
}

.specialty-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(15px);
    color: #ffffff;
    padding: 0.85rem 1.5rem;
    border-radius: 50px;
    font-size: 0.95rem;
    font-weight: 700;
    border: 2px solid rgba(255, 255, 255, 0.35);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    position: relative;
    overflow: hidden;
}

.specialty-badge::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;
}

.specialty-badge:hover::before {
    left: 100%;
}

.specialty-badge:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.specialty-badge i {
    color: #ffffff;
    font-size: 1.1rem;
    transition: transform 0.4s ease;
}

.specialty-badge:hover i {
    transform: rotate(360deg) scale(1.2);
}

.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 - DISEÑO REAL ESTATE PREMIUM
   ============================================ */
.services-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--white) 100%);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.services-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(10, 46, 92, 0.03) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(30, 91, 168, 0.03) 0%, transparent 50%);
    pointer-events: none;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    position: relative;
    z-index: 1;
}

.service-card {
    background: var(--white);
    border-radius: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    position: relative;
    border: 2px solid transparent;
    transform-style: preserve-3d;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(10, 46, 92, 0.03) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.5s ease;
    pointer-events: none;
}

.service-card:hover {
    transform: translateY(-12px) scale(1.02);
    box-shadow: 0 20px 60px rgba(10, 46, 92, 0.15);
    border-color: var(--primary-light);
}

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

/* Tarjeta destacada (Consultoría) */
.service-card-featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 100%);
}

.service-card-featured:hover {
    border-color: var(--primary-light);
    box-shadow: var(--shadow-primary);
}

/* Badge NUEVO */
.service-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 0.35rem 0.75rem;
    font-size: 0.7rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    z-index: 10;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 12px rgba(10, 46, 92, 0.3);
}

.service-image {
    position: relative;
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.service-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 46, 92, 0.05) 50%,
        rgba(10, 46, 92, 0.2) 100%
    );
    transition: opacity 0.5s ease;
}

.service-card:hover .service-image::after {
    opacity: 0.7;
}

.service-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(1.05) contrast(1.1);
}

.service-card:hover .service-image img {
    transform: scale(1.12) rotate(1deg);
    filter: brightness(1.1) contrast(1.15);
}

/* Iconos superpuestos OCULTOS - usuario pidió quitarlos */
.service-icon {
    display: none;
    /* 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: 2rem 1.75rem 1.75rem;
    position: relative;
}

.service-card h3 {
    font-size: 1.6rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--gray-900);
    line-height: 1.3;
    transition: color 0.3s ease;
}

.service-card:hover h3 {
    color: var(--primary-color);
}

.service-card p {
    color: var(--gray-600);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.5rem;
}

.service-features {
    margin-bottom: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.service-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--gray-700);
    font-size: 0.95rem;
    font-weight: 500;
    transition: all 0.3s ease;
    padding: 0.5rem;
    border-radius: 8px;
}

.service-card:hover .service-features li {
    transform: translateX(5px);
}

.service-features i {
    color: var(--primary-color);
    font-size: 1rem;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10, 46, 92, 0.08);
    border-radius: 50%;
    padding: 12px;
    transition: all 0.3s ease;
}

.service-card:hover .service-features i {
    background: var(--primary-color);
    color: var(--white);
    transform: scale(1.1);
}

.service-link {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    border-radius: 12px;
    background: rgba(10, 46, 92, 0.05);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.service-link::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: var(--primary-color);
    transition: left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

.service-link:hover::before {
    left: 0;
}

.service-link:hover {
    color: var(--white);
    transform: translateX(5px);
    box-shadow: 0 4px 15px rgba(10, 46, 92, 0.2);
}

.service-link i {
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-link:hover i {
    transform: translateX(8px);
}

/* ============================================
   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 - DISEÑO REAL ESTATE PREMIUM
   ============================================ */
.projects-preview {
    padding: var(--spacing-xl) 0;
    position: relative;
}

/* Overlay elegante para proyectos con parallax */
.projects-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 46, 92, 0.92) 0%,
        rgba(6, 29, 58, 0.88) 50%,
        rgba(15, 76, 129, 0.92) 100%
    );
    z-index: 1;
}

.projects-overlay-dark::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 80%, rgba(30, 91, 168, 0.1) 0%, transparent 50%);
}

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

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

.project-card {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    height: 450px;
    border: 3px solid rgba(255, 255, 255, 0.15);
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
}

.project-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(10, 46, 92, 0.3) 100%
    );
    z-index: 1;
    transition: opacity 0.6s ease;
}

.project-card:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 70px rgba(30, 91, 168, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.project-card:hover::before {
    opacity: 0;
}

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

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95) contrast(1.1);
}

.project-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 46, 92, 0.95) 0%,
        rgba(30, 91, 168, 0.92) 100%
    );
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2;
}

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

.project-card:hover .project-image img {
    transform: scale(1.15);
    filter: brightness(1.1) contrast(1.2);
}

.project-info {
    text-align: center;
    color: var(--white);
    padding: 2rem;
    transform: translateY(30px);
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-card:hover .project-info {
    transform: translateY(0);
}

.project-info h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
}

.project-info p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
    line-height: 1.6;
    opacity: 0.95;
}

.project-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2.5rem;
    background: var(--white);
    color: var(--primary-color);
    border-radius: 16px;
    font-weight: 700;
    font-size: 1.05rem;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.project-btn:hover {
    gap: 1.25rem;
    background: rgba(255, 255, 255, 0.95);
    transform: scale(1.05);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.4);
}

.project-btn i {
    transition: transform 0.4s ease;
}

.project-btn:hover i {
    transform: translateX(5px);
}

/* ============================================
   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;
}

/* Overlay oscuro para testimonios con parallax */
.testimonials-overlay-dark {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        135deg,
        rgba(10, 46, 92, 0.88) 0%,
        rgba(6, 29, 58, 0.80) 50%,
        rgba(15, 76, 129, 0.88) 100%
    );
    z-index: 1;
}

/* 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.98);
    backdrop-filter: blur(15px);
    padding: 2.5rem;
    border-radius: 24px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    font-size: 5rem;
    color: rgba(10, 46, 92, 0.1);
    font-family: Georgia, serif;
    line-height: 1;
}

.testimonial-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    border-color: rgba(255, 255, 255, 0.5);
}

.testimonial-stars {
    color: #FFB800;
    font-size: 1.35rem;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 0.25rem;
}

.testimonial-stars i {
    transition: all 0.3s ease;
}

.testimonial-card:hover .testimonial-stars i {
    transform: scale(1.2);
}

.testimonial-text {
    color: var(--gray-800);
    font-size: 1.125rem;
    font-style: italic;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
    z-index: 1;
}

.testimonial-author {
    border-top: 2px solid rgba(10, 46, 92, 0.1);
    padding-top: 1rem;
}

.testimonial-author h4 {
    color: var(--gray-900);
    font-size: 1.2rem;
    font-weight: 700;
    margin-bottom: 0.35rem;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.95rem;
    font-weight: 500;
}

/* ============================================
   CTA SECTION - DISEÑO PREMIUM
   ============================================ */
.cta-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(
        135deg,
        rgba(6, 29, 58, 1) 0%,
        rgba(10, 46, 92, 1) 30%,
        rgba(15, 76, 129, 1) 70%,
        rgba(30, 91, 168, 1) 100%
    );
    color: var(--white);
    text-align: center;
    position: relative;
    z-index: 2;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 40%, rgba(255, 255, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(255, 255, 255, 0.03) 0%, transparent 50%);
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-content h2 {
    font-size: clamp(2rem, 5vw, 3rem);
    margin-bottom: var(--spacing-md);
    font-weight: 800;
    text-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}

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

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

.cta-buttons .btn-primary {
    background: var(--white);
    color: var(--primary-color);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.cta-buttons .btn-primary:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.35);
}

.cta-buttons .btn-secondary {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.6);
    backdrop-filter: blur(10px);
}

.cta-buttons .btn-secondary:hover {
    background: rgba(255, 255, 255, 0.25);
    border-color: var(--white);
}

/* ============================================
   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);
    flex-wrap: wrap;
}

.social-links a {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--gray-dark), var(--gray-700));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    transition: all var(--transition-normal);
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    overflow: visible;
}

.social-links a::before {
    content: '';
    position: absolute;
    inset: -3px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    opacity: 0;
    transition: opacity var(--transition-normal);
    z-index: -1;
}

.social-links a:hover::before {
    opacity: 1;
}

.social-links a:hover {
    transform: translateY(-5px) scale(1.1);
    box-shadow: 0 8px 25px rgba(30, 91, 168, 0.4);
}

.social-links a i {
    font-size: 1.25rem;
    transition: transform var(--transition-normal);
}

.social-links a:hover i {
    transform: scale(1.1) rotate(5deg);
}

/* Tooltips de redes sociales */
.social-tooltip {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%) scale(0.8);
    background: var(--gray-900);
    color: var(--white);
    padding: 0.4rem 0.8rem;
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: all var(--transition-normal);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 100;
}

.social-tooltip::before {
    content: '';
    position: absolute;
    top: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 0;
    height: 0;
    border-left: 6px solid transparent;
    border-right: 6px solid transparent;
    border-bottom: 6px solid var(--gray-900);
}

.social-links a:hover .social-tooltip {
    opacity: 1;
    transform: translateX(-50%) scale(1);
}

/* Colores específicos por red social */
.social-links a:nth-child(1):hover {
    background: linear-gradient(135deg, #1877F2, #4267B2);
}

.social-links a:nth-child(2):hover {
    background: linear-gradient(135deg, #E4405F, #C13584);
}

.social-links a:nth-child(3):hover {
    background: linear-gradient(135deg, #0077B5, #00A0DC);
}

.social-links a:nth-child(4):hover {
    background: linear-gradient(135deg, #25D366, #128C7E);
}

.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;
    }
}

/* ============================================
   OPTIMIZACIONES DE PERFORMANCE CSS
   ============================================ */

/* Promover elementos animados a su propia capa de composición */
.hero-carousel,
.carousel-item,
.service-card,
.project-card,
.testimonial-card,
.modal,
.lightbox {
    will-change: transform, opacity;
    transform: translateZ(0);
    backface-visibility: hidden;
}

/* Optimizar transformaciones CSS */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Reducir repaints en scroll */
img, video {
    content-visibility: auto;
}

/* Optimizar animaciones para 60fps */
@media (prefers-reduced-motion: no-preference) {
    * {
        animation-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    }
}

/* Contain layout para mejorar rendering */
.service-card,
.project-card,
.testimonial-card {
    contain: layout style paint;
}

/* GPU acceleration para elementos críticos */
.btn,
.carousel-control,
.scroll-top {
    transform: translate3d(0, 0, 0);
}

/* ============================================
   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);
}

/* ============================================
   SERVICIOS PROFESIONALES - DISEÑO PREMIUM
   ============================================ */
.services-pro-section {
    padding: 6rem 0;
    background: linear-gradient(180deg, var(--white) 0%, var(--gray-50) 50%, var(--white) 100%);
    position: relative;
    overflow: hidden;
}

.services-pro-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 6px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light), var(--secondary-color));
}

.services-pro-header {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 4rem;
}

.services-pro-header .section-tag {
    display: inline-block;
    padding: 0.5rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    margin-bottom: 1.5rem;
}

.services-pro-header h2 {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.services-pro-header p {
    font-size: 1.25rem;
    color: var(--gray-600);
    line-height: 1.7;
}

/* Servicio Principal Destacado */
.service-hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    background: var(--white);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.12);
    margin-bottom: 4rem;
    position: relative;
}

.service-hero-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
}

.service-hero-image {
    position: relative;
    min-height: 450px;
    overflow: hidden;
}

.service-hero-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.service-hero-badge {
    position: absolute;
    top: 1.5rem;
    left: 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    padding: 0.75rem 1.25rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    border-radius: var(--radius-full);
    box-shadow: 0 8px 25px rgba(10, 46, 92, 0.35);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.service-hero-content {
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.service-hero-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    box-shadow: 0 15px 40px rgba(10, 46, 92, 0.25);
}

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

.service-hero-content h3 {
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.service-hero-content p {
    font-size: 1.1rem;
    color: var(--gray-600);
    line-height: 1.8;
    margin-bottom: 1.5rem;
}

.service-hero-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.service-hero-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    transition: all 0.3s ease;
}

.service-hero-feature:hover {
    background: var(--primary-color);
    color: var(--white);
    transform: translateX(5px);
}

.service-hero-feature:hover i {
    color: var(--white);
}

.service-hero-feature i {
    color: var(--primary-color);
    font-size: 1rem;
    transition: color 0.3s ease;
}

.service-hero-feature span {
    font-size: 0.9rem;
    font-weight: 500;
}

/* Grid de Servicios Premium */
.services-pro-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (max-width: 1024px) {
    .services-pro-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .service-hero-card {
        grid-template-columns: 1fr;
    }
    
    .service-hero-image {
        min-height: 300px;
    }
}

@media (max-width: 768px) {
    .services-pro-grid {
        grid-template-columns: 1fr;
    }
    
    .service-hero-features {
        grid-template-columns: 1fr;
    }
}

/* Tarjeta de Servicio Premium */
.service-pro-card {
    background: var(--white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.08);
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.service-pro-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
}

.service-pro-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    transform: scaleX(0);
    transition: transform 0.4s ease;
}

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

.service-pro-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-pro-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.165, 0.84, 0.44, 1);
}

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

.service-pro-icon-wrapper {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
}

.service-pro-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 30px rgba(10, 46, 92, 0.3);
    border: 4px solid var(--white);
    transition: all 0.4s ease;
}

.service-pro-card:hover .service-pro-icon {
    transform: scale(1.1) rotate(10deg);
}

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

.service-pro-content {
    padding: 3rem 1.75rem 1.75rem;
    text-align: center;
}

.service-pro-content h4 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 0.75rem;
}

.service-pro-content p {
    font-size: 0.95rem;
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.service-pro-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.service-pro-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.4rem 0.75rem;
    background: var(--gray-100);
    color: var(--gray-700);
    font-size: 0.75rem;
    font-weight: 500;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.service-pro-tag i {
    color: var(--primary-color);
    font-size: 0.7rem;
}

.service-pro-card:hover .service-pro-tag {
    background: var(--primary-color);
    color: var(--white);
}

.service-pro-card:hover .service-pro-tag i {
    color: var(--white);
}

.service-pro-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary-color);
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
}

.service-pro-link i {
    transition: transform 0.3s ease;
}

.service-pro-link:hover {
    color: var(--primary-light);
}

.service-pro-link:hover i {
    transform: translateX(5px);
}

/* Servicio Destacado (Consultoría) */
.service-pro-card.featured {
    border: 2px solid var(--primary-color);
    background: linear-gradient(180deg, var(--white) 0%, rgba(10, 46, 92, 0.02) 100%);
}

.service-pro-card.featured::before {
    content: 'NUEVO';
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: linear-gradient(135deg, #f59e0b, #f97316);
    color: var(--white);
    padding: 0.35rem 0.75rem;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    border-radius: var(--radius-full);
    z-index: 20;
    box-shadow: 0 5px 15px rgba(249, 115, 22, 0.4);
}

/* CTA de Servicios */
.services-pro-cta {
    text-align: center;
    padding: 3rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-radius: 24px;
    color: var(--white);
    position: relative;
    overflow: hidden;
}

.services-pro-cta::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    animation: rotateBg 20s linear infinite;
}

@keyframes rotateBg {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.services-pro-cta h3 {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    position: relative;
    z-index: 1;
}

.services-pro-cta p {
    font-size: 1.1rem;
    opacity: 0.9;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.services-pro-cta .btn {
    position: relative;
    z-index: 1;
    background: var(--white);
    color: var(--primary-color);
    padding: 1rem 2.5rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    transition: all 0.3s ease;
}

.services-pro-cta .btn:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
}

/* ============================================
   RESPONSIVE MEJORADO - MOBILE, TABLET, DESKTOP
   ============================================ */

/* TABLET - 768px a 1024px */
@media (max-width: 1024px) {
    .hero {
        min-height: 75vh;
    }
    
    .hero-title {
        font-size: clamp(2.5rem, 6vw, 3.5rem);
        line-height: 1.2;
    }
    
    .hero-subtitle {
        font-size: clamp(1rem, 2.5vw, 1.125rem);
        line-height: 1.6;
    }
    
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .service-card {
        border-radius: 20px;
    }
    
    .service-image {
        height: 260px;
    }
    
    .service-content {
        padding: 1.75rem 1.5rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .project-card {
        height: 420px;
        border-radius: 20px;
    }
    
    .testimonials-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.75rem;
    }
    
    .testimonial-card {
        padding: 2rem;
        border-radius: 20px;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .trust-badges-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 1.25rem;
    }
    
    .trust-badge {
        padding: 1.75rem 1.25rem;
    }
    
    .about-content {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-lg);
    }
    
    .section-title {
        font-size: clamp(2rem, 5vw, 2.5rem);
        margin-bottom: 1.5rem;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .navbar .container {
        padding: 0 1.5rem;
    }
    
    .service-pro-image {
        height: 220px;
    }
    
    .service-hero-features {
        grid-template-columns: 1fr;
    }
    
    .carousel-control {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
}

/* MOBILE - Hasta 768px - OPTIMIZACIÓN PREMIUM */
@media (max-width: 768px) {
    :root {
        --spacing-xl: 4rem;
        --spacing-lg: 2.5rem;
        --spacing-md: 1.5rem;
    }
    
    .hero {
        min-height: 75vh;
    }
    
    .hero-content {
        justify-content: center;
        text-align: center;
        padding: 0 1.25rem;
    }
    
    .hero-content .container {
        max-width: 100%;
        margin: 0 auto !important;
    }
    
    .hero-title {
        font-size: clamp(1.875rem, 8vw, 2.5rem);
        line-height: 1.25;
        margin-bottom: 1.25rem;
        font-weight: 800;
    }
    
    .hero-subtitle {
        font-size: clamp(0.9rem, 4vw, 1.05rem);
        line-height: 1.6;
        margin-bottom: 1.75rem;
    }
    
    .hide-mobile {
        display: none;
    }
    
    .hero-buttons {
        flex-direction: column;
        gap: 1rem;
        justify-content: center;
        width: 100%;
    }
    
    .hero-buttons .btn {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.75rem;
        font-size: 1rem;
        border-radius: 14px;
    }
    
    .hero-stats {
        flex-direction: row;
        justify-content: center;
        gap: 1.5rem;
    }
    
    .hero-stat {
        text-align: center;
    }
    
    .hero-stat-number {
        font-size: 2rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .carousel-control {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .carousel-control.prev {
        left: 0.5rem;
    }
    
    .carousel-control.next {
        right: 0.5rem;
    }
    
    .carousel-indicators {
        bottom: 1rem;
        gap: 0.5rem;
    }
    
    .carousel-indicators span {
        width: 8px;
        height: 8px;
    }
    
    .section-title {
        font-size: clamp(1.875rem, 6vw, 2.25rem);
        margin-bottom: 1.25rem;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 1.5rem;
    }
    
    .services-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .service-card {
        max-width: 100%;
        border-radius: 20px;
        margin: 0 auto;
    }
    
    .service-image {
        height: 260px;
        border-radius: 18px 18px 0 0;
    }
    
    .service-content {
        padding: 1.75rem 1.5rem;
    }
    
    .service-card h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .service-features {
        gap: 0.65rem;
    }
    
    .service-link {
        width: 100%;
        justify-content: center;
        padding: 1rem 1.5rem;
    }
    
    .projects-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .project-card {
        height: 420px;
        border-radius: 20px;
    }
    
    .project-info h3 {
        font-size: 1.75rem;
    }
    
    .project-info p {
        font-size: 1.05rem;
    }
    
    .project-btn {
        padding: 0.95rem 2rem;
        font-size: 1rem;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .testimonial-card {
        padding: 2rem 1.5rem;
        border-radius: 18px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .trust-badges-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.25rem;
    }
    
    .trust-badge {
        padding: 1.75rem 1.25rem;
        border-radius: 16px;
    }
    
    .trust-badge i {
        font-size: 2.5rem;
    }
    
    .trust-badge h3 {
        font-size: 1.05rem;
    }
    
    .trust-badge p {
        font-size: 0.9rem;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .navbar {
        padding: 0.75rem 0;
    }
    
    .nav-menu {
        position: fixed;
        left: -100%;
        top: 70px;
        flex-direction: column;
        background-color: var(--white);
        width: 100%;
        max-width: 100vw;
        text-align: center;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-lg);
        padding: 2rem 0;
        z-index: 1000;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-menu li {
        margin: 1rem 0;
    }
    
    .hamburger {
        display: flex;
    }
    
    .logo img {
        max-height: 45px;
    }
    
    .logo-text {
        font-size: 1rem;
    }
    
    .about-content {
        padding: var(--spacing-lg) 0;
    }
    
    .about-specialties {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .specialty-badge {
        justify-content: flex-start;
        width: 100%;
        font-size: 0.85rem;
        padding: 0.65rem 1rem;
    }
    
    .image-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .before-after-grid {
        grid-template-columns: 1fr;
        gap: var(--spacing-lg);
    }
    
    .comparison-slider {
        min-height: 300px;
    }
    
    .process-timeline {
        padding: 0 1rem;
    }
    
    .process-item {
        flex-direction: column;
        text-align: center;
        gap: 1rem;
    }
    
    .process-number {
        font-size: 3rem;
        position: static;
        transform: none;
    }
    
    .video-corporate-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .video-showcase-grid {
        grid-template-columns: 1fr;
    }
    
    .cta-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .cta-buttons .btn {
        width: 100%;
    }
    
    .whatsapp-float {
        bottom: 80px;
        right: 1rem;
        width: 55px;
        height: 55px;
    }
    
    .whatsapp-float i {
        font-size: 1.75rem;
    }
    
    .whatsapp-text {
        display: none;
    }
    
    .free-budget-badge {
        bottom: 1rem;
        right: 1rem;
        padding: 0.75rem 1rem;
    }
    
    .badge-title {
        font-size: 0.7rem;
    }
    
    .badge-subtitle {
        font-size: 0.9rem;
    }
    
    .scroll-top {
        bottom: 1rem;
        right: 1rem;
        width: 45px;
        height: 45px;
    }
    
    /* Servicios PRO responsive */
    .services-pro-section {
        padding: 4rem 0;
    }
    
    .services-pro-header h2 {
        font-size: clamp(1.75rem, 5vw, 2.25rem);
    }
    
    .services-pro-header p {
        font-size: 1rem;
    }
    
    .service-hero-card {
        grid-template-columns: 1fr;
    }
    
    .service-hero-image {
        min-height: 250px;
    }
    
    .service-hero-content {
        padding: 2rem 1.5rem;
    }
    
    .service-hero-features {
        grid-template-columns: 1fr;
    }
    
    .services-pro-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .service-pro-content h4 {
        font-size: 1.2rem;
    }
    
    .services-pro-cta {
        padding: 2rem 1.5rem;
    }
    
    .services-pro-cta h3 {
        font-size: 1.5rem;
    }
    
    .services-pro-cta p {
        font-size: 1rem;
    }
}

/* MOBILE PEQUEÑO - Hasta 480px - OPTIMIZACIÓN PREMIUM */
@media (max-width: 480px) {
    .hero {
        min-height: 70vh;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: 1.75rem;
        margin-bottom: 1rem;
        font-weight: 800;
    }
    
    .hero-subtitle {
        font-size: 0.9rem;
        line-height: 1.5;
        margin-bottom: 1.5rem;
    }
    
    .hero-badge {
        font-size: 0.8rem;
        padding: 0.5rem 1.1rem;
    }
    
    .hero-buttons {
        gap: 0.85rem;
    }
    
    .hero-buttons .btn {
        padding: 0.95rem 1.5rem;
        font-size: 0.95rem;
        border-radius: 12px;
    }
    
    .hero-stats {
        gap: 1.25rem;
        justify-content: space-around;
    }
    
    .hero-stat-number {
        font-size: 1.85rem;
    }
    
    .hero-stat-label {
        font-size: 0.75rem;
    }
    
    .section-title {
        font-size: 1.75rem;
        line-height: 1.3;
    }
    
    .section-description {
        font-size: 0.95rem;
    }
    
    .trust-badges-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .trust-badge {
        padding: 1.5rem;
        border-radius: 14px;
    }
    
    .service-image {
        height: 240px;
    }
    
    .service-card {
        border-radius: 18px;
    }
    
    .service-content {
        padding: 1.5rem;
    }
    
    .project-card {
        height: 380px;
        border-radius: 18px;
    }
    
    .btn {
        padding: 0.85rem 1.75rem;
        font-size: 0.95rem;
    }
    
    .btn-large {
        padding: 1rem 2rem;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .service-pro-image {
        height: 200px;
    }
    
    .service-pro-icon {
        width: 65px;
        height: 65px;
    }
    
    .service-pro-icon i {
        font-size: 1.6rem;
    }
    
    .carousel-control {
        width: 38px;
        height: 38px;
        font-size: 0.95rem;
    }
}

/* Logo con fondo transparente */
.logo img {
    background: transparent;
    mix-blend-mode: multiply;
}

.navbar.scrolled .logo img {
    background: transparent;
}

/* ============================================
   CONTENEDORES GLASSMORPHISM PREMIUM
   ============================================ */
.glass-container {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1),
                inset 0 1px 0 rgba(255, 255, 255, 0.2);
    transition: all var(--transition-slow);
}

.glass-container:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.glass-container-dark {
    background: rgba(10, 10, 10, 0.6);
    backdrop-filter: blur(20px) saturate(150%);
    -webkit-backdrop-filter: blur(20px) saturate(150%);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* Contenedores premium con gradiente */
.premium-container {
    position: relative;
    padding: 3rem;
    background: linear-gradient(
        135deg,
        rgba(255, 255, 255, 0.95) 0%,
        rgba(248, 250, 252, 0.98) 100%
    );
    border-radius: var(--radius-2xl);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(10, 46, 92, 0.05);
    overflow: hidden;
    transition: all var(--transition-slow);
}

.premium-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color), var(--accent-color));
}

.premium-container:hover {
    transform: translateY(-8px);
    box-shadow: 0 30px 80px rgba(10, 46, 92, 0.15);
}

/* Efecto de profundidad en cards */
.depth-card {
    position: relative;
    transform-style: preserve-3d;
    transition: transform var(--transition-slow);
}

.depth-card::before {
    content: '';
    position: absolute;
    inset: -10px;
    background: linear-gradient(
        135deg,
        rgba(30, 91, 168, 0.05) 0%,
        rgba(10, 46, 92, 0.1) 100%
    );
    border-radius: inherit;
    transform: translateZ(-20px);
    opacity: 0;
    transition: opacity var(--transition-slow);
}

.depth-card:hover::before {
    opacity: 1;
}

.depth-card:hover {
    transform: translateZ(20px) rotateX(2deg) rotateY(2deg);
}

/* ============================================
   MICRO-INTERACCIONES PROFESIONALES
   ============================================ */

/* Efecto magnetic en botones */
.btn-magnetic {
    position: relative;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.320, 1);
}

.btn-magnetic::after {
    content: '';
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: inherit;
    opacity: 0.3;
    filter: blur(10px);
    z-index: -1;
    transition: all 0.3s ease;
}

.btn-magnetic:hover::after {
    opacity: 0.6;
    transform: scale(1.1);
}

/* Efecto de revelado progresivo */
.reveal-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

/* Línea de separación animada */
.animated-divider {
    position: relative;
    width: 100%;
    height: 2px;
    background: var(--gray-200);
    margin: 3rem 0;
    overflow: hidden;
}

.animated-divider::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: dividerSlide 3s ease-in-out infinite;
}

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

/* Efecto de pulsación suave */
.pulse-soft {
    animation: pulseSoft 3s ease-in-out infinite;
}

@keyframes pulseSoft {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.02);
        opacity: 0.95;
    }
}

/* Efecto de sombra dinámica */
.dynamic-shadow {
    transition: all var(--transition-normal);
}

.dynamic-shadow:hover {
    box-shadow: 
        0 0 0 1px rgba(10, 46, 92, 0.05),
        0 2px 4px rgba(10, 46, 92, 0.05),
        0 8px 16px rgba(10, 46, 92, 0.1),
        0 16px 32px rgba(10, 46, 92, 0.1),
        0 32px 64px rgba(10, 46, 92, 0.15);
}

/* Indicador de carga moderno */
.modern-loader {
    width: 50px;
    height: 50px;
    border: 4px solid var(--gray-200);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: modernSpin 0.8s cubic-bezier(0.68, -0.55, 0.265, 1.55) infinite;
}

@keyframes modernSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

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

.shine-hover::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(
        45deg,
        transparent 30%,
        rgba(255, 255, 255, 0.3) 50%,
        transparent 70%
    );
    transform: translateX(-100%) translateY(-100%) rotate(45deg);
    transition: transform 0.8s ease;
}

.shine-hover:hover::before {
    transform: translateX(100%) translateY(100%) rotate(45deg);
}

/* Badge flotante animado */
.floating-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 700;
    box-shadow: 0 8px 25px rgba(10, 46, 92, 0.3);
    animation: floatBadge 3s ease-in-out infinite;
}

@keyframes floatBadge {
    0%, 100% {
        transform: translateY(0);
        box-shadow: 0 8px 25px rgba(10, 46, 92, 0.3);
    }
    50% {
        transform: translateY(-10px);
        box-shadow: 0 15px 40px rgba(10, 46, 92, 0.4);
    }
}

/* Efecto de texto gradiente animado */
.animated-gradient-text {
    background: linear-gradient(
        90deg,
        var(--primary-color),
        var(--secondary-color),
        var(--accent-color),
        var(--primary-color)
    );
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradientFlow 5s ease infinite;
}

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

/* Contador animado con efecto flip */
.flip-counter {
    display: inline-block;
    perspective: 1000px;
}

.flip-counter.counting {
    animation: flipNumber 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

@keyframes flipNumber {
    0% { transform: rotateX(0deg); }
    50% { transform: rotateX(90deg); opacity: 0.5; }
    100% { transform: rotateX(0deg); }
}

/* Efecto de onda al hacer click */
.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::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;
}

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

/* ============================================
   FILTROS DE GALERÍA MEJORADOS
   ============================================ */
.filters-clean, .project-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 3rem;
}

.filter-clean, .filter-btn-modern {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.875rem 1.75rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.filter-clean:hover, .filter-btn-modern:hover {
    background: var(--gray-50);
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 46, 92, 0.1);
}

.filter-clean.active, .filter-btn-modern.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 8px 20px rgba(10, 46, 92, 0.25);
}

.filter-clean .count, .filter-btn-modern .count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 24px;
    padding: 0 0.5rem;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: var(--font-bold);
    color: var(--gray-700);
    transition: all var(--transition-normal);
}

.filter-clean.active .count, .filter-btn-modern.active .count {
    background: rgba(255, 255, 255, 0.3);
    color: var(--white);
}

/* Animación del grid al filtrar */
.projects-grid-clean.filtering, .masonry-grid.filtering {
    opacity: 0.5;
    pointer-events: none;
}

/* ============================================
   LIGHTBOX AVANZADO PROFESIONAL
   ============================================ */
.advanced-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s ease;
    align-items: center;
    justify-content: center;
}

.advanced-lightbox.active {
    display: flex;
    opacity: 1;
    animation: fadeIn 0.3s ease;
}

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

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.96);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
}

.lightbox-container {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-xl);
}

.lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.lightbox-image {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 25px 70px rgba(0, 0, 0, 0.6);
    transition: all 0.4s ease;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-image.loading {
    opacity: 0.3;
    filter: blur(10px);
}

.lightbox-caption {
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 600;
    text-align: center;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 46, 92, 0.85);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    max-width: 90%;
    margin: 0 auto;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(10, 46, 92, 0.9);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--white);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 100001;
    font-size: 1.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.lightbox-close {
    top: 2rem;
    right: 2rem;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.15);
    box-shadow: 0 6px 25px rgba(10, 46, 92, 0.4);
}

.lightbox-close:active,
.lightbox-prev:active,
.lightbox-next:active {
    transform: scale(0.95);
}

.lightbox-prev {
    left: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev:hover {
    transform: translateY(-50%) scale(1.15);
}

.lightbox-next {
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-next:hover {
    transform: translateY(-50%) scale(1.15);
}

.lightbox-counter {
    position: absolute;
    top: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    font-size: 1.125rem;
    font-weight: 700;
    padding: 0.75rem 1.75rem;
    background: rgba(10, 46, 92, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 50px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    letter-spacing: 0.5px;
    z-index: 100001;
}

.lightbox-thumbnails {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    background: rgba(10, 46, 92, 0.9);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-radius: 15px;
    max-width: 90vw;
    overflow-x: auto;
    overflow-y: hidden;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    z-index: 100000;
}

.lightbox-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.lightbox-thumbnails::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.lightbox-thumbnails::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.lightbox-thumbnail {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    cursor: pointer;
    opacity: 0.5;
    transition: all 0.3s ease;
    border: 3px solid transparent;
    flex-shrink: 0;
}

.lightbox-thumbnail:hover {
    opacity: 0.9;
    transform: translateY(-3px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-thumbnail.active {
    opacity: 1;
    border-color: var(--primary-color);
    transform: scale(1.1);
    box-shadow: 0 6px 15px rgba(255, 107, 53, 0.4);
}

/* Indicador de carga para lightbox */
.lightbox-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    border: 4px solid rgba(255, 255, 255, 0.2);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    z-index: 100002;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Navegación con gestos táctiles */
.lightbox-swipe-hint {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
    display: none;
}

/* Responsive lightbox */
@media (max-width: 768px) {
    .lightbox-container {
        padding: 1rem;
    }
    
    .lightbox-content {
        max-width: 95vw;
    }
    
    .lightbox-image {
        max-height: 65vh;
        max-width: 95vw;
    }
    
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 50px;
        height: 50px;
        font-size: 1.25rem;
    }
    
    .lightbox-close {
        top: 1rem;
        right: 1rem;
    }
    
    .lightbox-prev {
        left: 1rem;
    }
    
    .lightbox-next {
        right: 1rem;
    }
    
    .lightbox-counter {
        top: 1rem;
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
    }
    
    .lightbox-thumbnails {
        padding: 0.5rem 0.75rem;
        gap: 0.5rem;
        bottom: 1rem;
    }
    
    .lightbox-thumbnail {
        width: 55px;
        height: 55px;
    }
    
    .lightbox-caption {
        font-size: 1rem;
        padding: 0.625rem 1.25rem;
        max-width: 95%;
    }
    
    .lightbox-swipe-hint {
        display: block;
    }
}

@media (max-width: 480px) {
    .lightbox-close,
    .lightbox-prev,
    .lightbox-next {
        width: 45px;
        height: 45px;
        font-size: 1.125rem;
    }
    
    .lightbox-image {
        max-height: 60vh;
    }
    
    .lightbox-thumbnails {
        bottom: 0.75rem;
        padding: 0.5rem;
    }
    
    .lightbox-thumbnail {
        width: 50px;
        height: 50px;
    }
    
    .lightbox-counter {
        font-size: 0.9375rem;
        padding: 0.5rem 1rem;
    }
    
    .lightbox-caption {
        font-size: 0.9375rem;
        padding: 0.5rem 1rem;
    }
}

/* ============================================
   OPTIMIZACIÓN DE IMÁGENES - SKELETON LOADING
   ============================================ */
img.skeleton {
    background: linear-gradient(
        90deg,
        var(--gray-200) 0%,
        var(--gray-300) 50%,
        var(--gray-200) 100%
    );
    background-size: 200% 100%;
    animation: skeleton-loading 1.5s ease-in-out infinite;
}

img.loaded {
    animation: fadeIn 0.6s ease;
}

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

/* Optimización de videos */
video {
    background: var(--gray-900);
}

video.loading {
    position: relative;
}

video.loading::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50px;
    height: 50px;
    border: 3px solid var(--gray-300);
    border-top-color: var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* ============================================
   ESTADÍSTICAS DE GALERÍA
   ============================================ */
.gallery-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-xl);
}

.stat-card {
    background: var(--white);
    padding: var(--spacing-lg);
    border-radius: var(--radius-lg);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all var(--transition-normal);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    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.5s;
}

.stat-card:hover::before {
    left: 100%;
}

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

.stat-card i {
    font-size: 2rem;
    opacity: 0.3;
    display: block;
    margin-bottom: 0.5rem;
    transition: all var(--transition-normal);
}

.stat-card:hover i {
    opacity: 0.6;
    transform: scale(1.2) rotateY(360deg);
}

/* Animación de contador */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.stat-card > div:first-of-type {
    animation: countUp 0.8s ease-out;
}

/* ============================================
   GALERÍA COMPLETA CON FILTROS
   ============================================ */
.gallery-filters {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: var(--spacing-xl);
    flex-wrap: wrap;
}

.gallery-filter-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.75rem;
    background: var(--white);
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-full);
    color: var(--gray-700);
    font-weight: var(--font-semibold);
    font-size: var(--text-sm);
    cursor: pointer;
    transition: all var(--transition-normal);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.gallery-filter-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 46, 92, 0.15);
}

.gallery-filter-btn.active {
    background: linear-gradient(135deg, var(--primary-color), var(--primary-light));
    border-color: var(--primary-color);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(10, 46, 92, 0.3);
}

.gallery-filter-btn i {
    font-size: 1.1em;
}

/* Full Gallery Section */
.full-gallery-section {
    padding: var(--spacing-xl) 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    position: relative;
    overflow: hidden;
}

.gallery-bg-pattern {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0.03;
    background-image: url('data:image/svg+xml;utf8,<svg width="60" height="60" viewBox="0 0 60 60" xmlns="http://www.w3.org/2000/svg"><g fill="none" fill-rule="evenodd"><g fill="black" fill-opacity="1"><path d="M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z"/></g></g></svg>');
    pointer-events: none;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.gallery-item {
    position: relative;
    aspect-ratio: 16/10;
    height: 220px;
    overflow: hidden;
    border-radius: var(--radius-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

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

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
    padding: var(--spacing-md);
    transform: translateY(100%);
    transition: transform var(--transition-normal);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-overlay h4 {
    color: var(--white);
    font-size: 1rem;
    font-weight: var(--font-bold);
    margin-bottom: 0.25rem;
    line-height: 1.3;
}

.gallery-overlay p {
    color: var(--gray-300);
    font-size: 0.8rem;
    line-height: 1.2;
}

/* Icono de zoom en las imágenes */
.gallery-item::after {
    content: '\f00e';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 2rem;
    color: white;
    background: rgba(10, 46, 92, 0.9);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-normal);
    opacity: 0;
    z-index: 2;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

@media (max-width: 768px) {
    .gallery-item::after {
        width: 45px;
        height: 45px;
        font-size: 1.5rem;
    }
    
    .gallery-overlay {
        padding: var(--spacing-sm);
    }
    
    .gallery-overlay h4 {
        font-size: 0.875rem;
    }
    
    .gallery-overlay p {
        font-size: 0.75rem;
    }
}

/* Animación para filtros */
.gallery-item {
    animation: fadeIn 0.5s ease;
}

.gallery-item.hidden {
    display: none;
}

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

/* Responsive gallery */
@media (min-width: 1400px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    }
    
    .gallery-item {
        height: 240px;
    }
}

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
    
    .gallery-item {
        height: 180px;
    }
    
    .gallery-filters {
        gap: 0.5rem;
    }
    
    .gallery-filter-btn {
        padding: 0.625rem 1.25rem;
        font-size: 0.875rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .gallery-item {
        height: 150px;
    }
}

/* ============================================
   CORRECCIONES ADICIONALES RESPONSIVE
   ============================================ */
   
/* Prevenir scroll horizontal en todos los elementos */
* {
    max-width: 100%;
}

section {
    width: 100%;
    overflow-x: hidden;
}

.hero, .page-hero-carousel {
    width: 100%;
    max-width: 100vw;
}

/* Ajustes para imágenes y videos */
img, video {
    max-width: 100%;
    height: auto;
}

/* Grid responsive mejorado */
.services-grid,
.projects-grid,
.testimonials-grid,
.stats-grid,
.trust-badges-grid {
    width: 100%;
    max-width: 100%;
}

/* Navbar responsive */
@media (max-width: 768px) {
    .navbar .container {
        padding: 0 1rem;
        width: 100%;
    }
    
    .logo {
        max-width: 60%;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-title {
        font-size: clamp(1.5rem, 7vw, 2.5rem);
        line-height: 1.2;
        word-wrap: break-word;
    }
    
    .hero-subtitle {
        font-size: clamp(0.875rem, 3.5vw, 1rem);
    }
    
    /* Botones responsive */
    .btn {
        padding: 0.875rem 1.5rem;
        font-size: 0.9rem;
        white-space: nowrap;
    }
    
    .hero-buttons {
        width: 100%;
        padding: 0 1rem;
    }
    
    /* Stats responsive */
    .hero-stats {
        flex-wrap: wrap;
        padding: 0 1rem;
        gap: 0.75rem;
    }
    
    .hero-stat-item {
        flex: 1 1 auto;
        min-width: calc(33.333% - 0.5rem);
    }
    
    /* Carrusel responsive */
    .carousel-item {
        width: 100%;
    }
    
    .carousel-overlay {
        padding: 1rem;
    }
}

/* Mobile extra pequeño */
@media (max-width: 375px) {
    .container {
        padding: 0 0.75rem;
    }
    
    .hero-title {
        font-size: 1.5rem;
    }
    
    .hero-subtitle {
        font-size: 0.875rem;
    }
    
    .btn {
        padding: 0.75rem 1.25rem;
        font-size: 0.85rem;
    }
    
    .hero-stat-item {
        min-width: 100%;
    }
}

