/* ========================================
   LEGALITS BOUTIQUE - STYLESHEET COMPLETO
   ======================================== */

/* === VARIABLES CSS === */
:root {
    --primary: #1e40af;
    --primary-light: #3b82f6;
    --primary-dark: #1e3a8a;
    --secondary: #0f172a;
    --accent-blue: #0ea5e9;
    --accent-gold: #c4912f;
    --white: #ffffff;
    --black: #000000;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;
    --success: #10b981;
    --warning: #f59e0b;
    --error: #ef4444;
    
    --primary-black: #0f172a;
    --primary-blue: #1e40af;
    --accent-teal: #0d9488;
    --accent-amber: #f59e0b;
    
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
    --font-display: 'Plus Jakarta Sans', var(--font-sans);
    
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 1.5rem;
    --spacing-lg: 2rem;
    --spacing-xl: 3rem;
    --spacing-2xl: 4rem;
    --spacing-3xl: 6rem;
    
    --container-sm: 640px;
    --container-md: 768px;
    --container-lg: 1024px;
    --container-xl: 1200px;
    --container-2xl: 1400px;
    
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --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);
    
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 500ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 500ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

*:focus {
    outline: none !important;
}

a:focus, button:focus, input:focus {
    outline: 2px solid transparent !important;
    outline-offset: 2px !important;
}

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

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--gray-800);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    margin-bottom: var(--spacing-md);
}

h1 {
    font-size: 3.5rem;
    letter-spacing: -0.025em;
}

h2 {
    font-size: 2.5rem;
    letter-spacing: -0.025em;
}

h3 {
    font-size: 1.875rem;
}

h4 {
    font-size: 1.5rem;
}

h5 {
    font-size: 1.25rem;
}

h6 {
    font-size: 1.125rem;
}

p {
    margin-bottom: var(--spacing-md);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* === LAYOUT & CONTENEDORES === */
.container {
    width: 100%;
    max-width: var(--container-xl);
    margin: 0 auto;
    padding: 0 var(--spacing-lg);
}

.container-narrow {
    max-width: var(--container-lg);
}

.container-wide {
    max-width: var(--container-2xl);
}

/* === UTILITIES === */
.text-center {
    text-align: center;
}

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

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

.mt-1 { margin-top: var(--spacing-xs); }
.mt-2 { margin-top: var(--spacing-sm); }
.mt-3 { margin-top: var(--spacing-md); }
.mt-4 { margin-top: var(--spacing-lg); }
.mt-5 { margin-top: var(--spacing-xl); }

.mb-1 { margin-bottom: var(--spacing-xs); }
.mb-2 { margin-bottom: var(--spacing-sm); }
.mb-3 { margin-bottom: var(--spacing-md); }
.mb-4 { margin-bottom: var(--spacing-lg); }
.mb-5 { margin-bottom: var(--spacing-xl); }

/* === BARRA DE PROGRESO === */
.progress-bar {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--accent-blue));
    z-index: 9999;
    transition: width var(--transition-fast);
}

/* === NAVIGATION === */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--gray-200);
    z-index: 1000;
    transition: all var(--transition-base);
}

.navbar.scrolled {
    box-shadow: var(--shadow-md);
    background: rgba(255, 255, 255, 0.98);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem var(--spacing-lg);
    gap: 2rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-right: auto;
}

.logo-link {
    display: flex;
    align-items: center;
    text-decoration: none;
    padding: 0.5rem 0;
}

/* LOGO PROFESIONAL GRANDE */
.logo-img {
    height: 85px !important;
    width: auto;
    transition: transform var(--transition-base);
    filter: brightness(1) contrast(1.2);
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.3);
}

.navbar.scrolled .logo-img {
    height: 75px !important;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--spacing-lg);
    list-style: none;
    flex-grow: 1;
    justify-content: flex-end;
}

.nav-menu li:first-child {
    margin-left: 2rem;
}

.nav-link {
    font-family: var(--font-sans);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-700);
    text-decoration: none;
    transition: all var(--transition-base);
    position: relative;
    padding: 0.5rem 0;
    white-space: nowrap;
}

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

.nav-link:hover {
    color: var(--primary);
}

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

.nav-link.active {
    color: var(--primary);
    font-weight: 600;
}

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

.btn-nav-elite {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.9375rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    white-space: nowrap;
    margin-left: 1rem;
}

.btn-nav-elite:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hamburger-elite {
    display: none;
    flex-direction: column;
    gap: 4px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    z-index: 1001;
}

.hamburger-elite span {
    width: 24px;
    height: 2px;
    background: var(--gray-800);
    transition: all var(--transition-base);
    border-radius: 2px;
}

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

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

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

/* === HERO SECTIONS === */
.hero-cinematic-index {
    background: linear-gradient(135deg, var(--primary-black) 0%, var(--primary-blue) 100%);
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding-top: 260px;
    padding-bottom: 140px;
}

.hero-cinematic-index::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 1000 1000" opacity="0.05"><path d="M500,100 C700,50 900,150 900,350 C900,550 700,650 500,600 C300,650 100,550 100,350 C100,150 300,50 500,100 Z"/></svg>') center/contain repeat;
}

.hero-content-elite {
    position: relative;
    z-index: 1;
    color: var(--white);
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.5px;
    backdrop-filter: blur(10px);
}

.hero-title-elite {
    font-size: 3.5rem;
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
    line-height: 1.1;
}

.title-line {
    display: block;
}

.hero-subtitle-elite {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
    max-width: 700px;
    line-height: 1.7;
}

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

/* === BUTTONS === */
.btn-elite {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    border-radius: var(--radius-lg);
    font-family: var(--font-sans);
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all var(--transition-base);
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-elite::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.7s;
}

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

.btn-elite-primary {
    background: var(--primary);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-elite-primary:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl);
}

.btn-elite-secondary {
    background: rgba(255, 255, 255, 0.1);
    color: var(--white);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.btn-elite-secondary:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

/* === SECTIONS === */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header-modern {
    text-align: center;
    max-width: 800px;
    margin: 0 auto var(--spacing-2xl);
}

.section-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--primary);
    color: var(--white);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: var(--spacing-lg);
    letter-spacing: 0.5px;
}

.section-title-modern {
    font-size: 2.75rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--spacing-lg);
    letter-spacing: -0.5px;
}

.section-subtitle-modern {
    font-size: 1.125rem;
    color: var(--gray-600);
    line-height: 1.8;
    max-width: 700px;
    margin: 0 auto;
}

/* === VALUE PROPOSITION === */
.section-light {
    background: var(--gray-50);
}

.value-proposition {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.value-card-modern {
    background: var(--white);
    padding: 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.value-card-modern:hover {
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.value-card-modern .especializacion-icon {
    margin-bottom: 1.5rem;
    flex-shrink: 0;
}

.value-card-modern h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.value-card-modern p {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 0;
    flex-grow: 1;
}

/* === SERVICIOS MODERN === */
.services-modern {
    background: var(--white);
}

.especializaciones-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
    align-items: stretch;
}

.especializacion-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 2rem;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
    cursor: pointer;
    height: 100%;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
    min-height: 340px;
}

.especializacion-card:hover {
    transform: translateY(-5px);
    border-color: var(--primary);
    box-shadow: var(--shadow-lg);
}

.especializacion-card:hover .especializacion-icon {
    transform: scale(1.1) rotate(5deg);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.especializacion-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    margin-bottom: 1.5rem;
    transition: all var(--transition-base);
}

.especializacion-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
}

.especializacion-card p {
    color: var(--gray-600);
    line-height: 1.7;
    margin-bottom: 1.5rem;
    flex-grow: 1;
}

.especializacion-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--gray-200);
}

.ver-detalle {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: gap var(--transition-base);
}

.especializacion-card:hover .ver-detalle {
    gap: 1rem;
}

/* === PROCESS SECTION === */
.process-section {
    background: var(--primary-black);
    color: var(--white);
}

.process-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.process-step {
    text-align: center;
    padding: 2.5rem 2rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 280px;
}

.process-step:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-xl);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: var(--white);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: var(--shadow-md);
}

.process-step h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 1rem;
    line-height: 1.4;
}

.process-step p {
    color: var(--gray-600);
    line-height: 1.6;
    font-size: 0.95rem;
    margin: 0;
}

/* === EQUIPO GRID - MEJORADO PARA IMÁGENES === */
.equipo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    align-items: stretch;
}

.team-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
    height: 100%;
    display: flex;
    flex-direction: column;
}

.team-card:hover {
    box-shadow: var(--shadow-2xl);
    transform: translateY(-8px);
}

.team-image {
    width: 100%;
    height: 280px;
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    overflow: hidden;
    flex-shrink: 0;
    position: relative;
}

.team-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 30%;
    transition: transform var(--transition-base);
}

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

/* Overlay para imágenes de respaldo */
.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(30, 64, 175, 0.2), rgba(15, 23, 42, 0.3));
    pointer-events: none;
    opacity: 0;
    transition: opacity var(--transition-base);
}

.team-card:hover .image-overlay {
    opacity: 1;
}

/* Estilos específicos para imágenes de Unsplash */
.team-image img[src*="unsplash"] {
    object-fit: cover;
    object-position: center 30%;
    filter: grayscale(20%);
}

.team-info {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 0.5rem;
    line-height: 1.3;
}

.team-role {
    color: var(--accent-gold);
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.team-expertise {
    color: var(--primary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
    font-weight: 600;
    line-height: 1.4;
}

.team-description {
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 0.95rem;
}

.team-linkedin {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    padding: 0.5rem 0;
    margin-top: auto;
}

.team-linkedin:hover {
    gap: 0.75rem;
    color: var(--primary-dark);
}

/* === CLIENTES === */
.clients-text-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.5rem;
    margin-top: 4rem;
    text-align: center;
}

.client-name-box {
    padding: 2rem 1.5rem;
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
    border: 1px solid var(--gray-200);
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.client-name-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary);
    background: linear-gradient(135deg, var(--white) 0%, var(--gray-50) 100%);
}

.client-name {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--gray-800);
    line-height: 1.4;
    text-align: center;
    margin: 0;
    transition: transform var(--transition-base);
}

.client-name-box:hover .client-name {
    color: var(--primary);
    transform: scale(1.05);
}

/* === PARTNERS === */
.partners-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 3rem;
}

.partner-card {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    padding: 2.5rem;
    border-radius: var(--radius-2xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all var(--transition-base);
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 320px;
}

.partner-card:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(255, 255, 255, 0.2);
    box-shadow: var(--shadow-2xl);
    transform: translateY(-10px);
}

.partner-logo {
    width: 100%;
    height: 160px;
    background: transparent;
    border-radius: var(--radius-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
    overflow: hidden;
    padding: 0;
}

.partner-logo-img {
    max-width: 85%;
    max-height: 85%;
    object-fit: contain;
    transition: transform var(--transition-base);
}

.partner-card:nth-child(1) .partner-logo-img {
    max-width: 80%;
    max-height: 80%;
}

.partner-card:nth-child(2) .partner-logo-img {
    max-width: 90%;
    max-height: 90%;
}

.partner-card:hover .partner-logo-img {
    transform: scale(1.08);
}

.partner-btn-container {
    margin-top: 1.5rem;
    width: 100%;
    display: flex;
    justify-content: center;
}

.partner-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    font-weight: 600;
    text-decoration: none;
    transition: all var(--transition-base);
    font-size: 0.95rem;
}

.partner-btn:hover {
    background: var(--white);
    color: var(--primary);
    border-color: var(--white);
    transform: translateY(-2px);
}

/* === CONTACTO GRID === */
.contacto-grid {
    display: grid;
    grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem;
}

.contacto-info {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    height: fit-content;
}

.contacto-info-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 2rem;
}

.contacto-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.contacto-icon {
    width: 48px;
    height: 48px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    flex-shrink: 0;
}

.contacto-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contacto-value {
    color: var(--gray-900);
    font-size: 1rem;
    line-height: 1.6;
}

.contacto-social {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--gray-200);
}

.social-link {
    width: 44px;
    height: 44px;
    background: var(--gray-100);
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    transition: all var(--transition-base);
}

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

.contacto-form {
    background: var(--white);
    padding: 3rem;
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 0.5rem;
}

.form-input,
.form-textarea {
    width: 100%;
    padding: 0.875rem 1.25rem;
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    font-family: var(--font-sans);
    font-size: 1rem;
    color: var(--gray-900);
    transition: all var(--transition-base);
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(30, 64, 175, 0.1);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-disclaimer {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 1rem;
    line-height: 1.6;
}

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

.footer-content-elite {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-2xl);
    margin-bottom: var(--spacing-2xl);
}

.footer-brand-elite {
    max-width: 300px;
}

.footer-logo {
    height: 180px !important;
    width: auto;
    margin-bottom: var(--spacing-md);
    filter: brightness(0) invert(1);
}

.footer-description-elite {
    color: var(--gray-400);
    line-height: 1.7;
    margin-bottom: var(--spacing-md);
}

.footer-title-elite {
    font-size: 1rem;
    font-weight: 700;
    color: var(--white);
    margin-bottom: var(--spacing-lg);
}

.footer-links-elite ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.footer-links-elite li {
    margin-bottom: var(--spacing-sm);
}

.footer-links-elite a {
    color: var(--gray-400);
    text-decoration: none;
    transition: color var(--transition-base);
    font-size: 0.9375rem;
}

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

.footer-contact-elite p {
    color: var(--gray-400);
    font-size: 0.9375rem;
    margin-bottom: var(--spacing-sm);
    display: flex;
    align-items: start;
    gap: var(--spacing-sm);
}

.footer-contact-elite i {
    color: var(--primary-light);
    margin-top: 3px;
    flex-shrink: 0;
}

.footer-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: var(--spacing-2xl) 0;
}

.footer-bottom-elite {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--spacing-lg);
}

.footer-partners-elite {
    margin-right: auto;
}

.footer-partners-elite h5 {
    font-size: 0.875rem;
    color: var(--gray-400);
    margin-bottom: var(--spacing-sm);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.partner-logos-footer {
    display: flex;
    gap: var(--spacing-lg);
    align-items: center;
}

.partner-logo-footer a {
    display: block;
    transition: transform var(--transition-base);
}

.partner-logo-footer a:hover {
    transform: translateY(-2px);
}

.footer-logo-img {
    height: 55px !important;
    width: auto;
    filter: brightness(0) invert(1);
    opacity: 0.9;
    transition: opacity var(--transition-base);
    max-width: 200px;
}

.partner-logo-footer:nth-child(2) .footer-logo-img {
    height: 60px !important;
    max-width: 220px;
}

.footer-legal-elite {
    text-align: right;
}

.footer-legal-elite p {
    color: var(--gray-500);
    font-size: 0.875rem;
    margin-bottom: 0.25rem;
}

.footer-legal-elite .legal-info {
    color: var(--gray-600);
    font-size: 0.75rem;
}

/* === WHATSAPP ASSISTANT MEJORADO === */
.whatsapp-assistant {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 1rem;
}

.assistant-bubble {
    position: relative;
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 1.25rem;
    box-shadow: var(--shadow-2xl);
    max-width: 320px;
    min-width: 280px;
    width: auto;
    opacity: 0;
    transform: translateY(10px) scale(0.95);
    transition: all var(--transition-bounce);
    pointer-events: none;
    border: 1px solid var(--gray-200);
    backdrop-filter: blur(10px);
    display: none;
}

.assistant-bubble.active {
    display: block;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: all;
    animation: fadeInBubble 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

.bubble-content {
    display: flex;
    gap: 1rem;
    align-items: flex-start;
}

.bubble-avatar {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, #25D366, #128C7E);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
    box-shadow: var(--shadow-md);
    border: 2px solid var(--white);
}

.bubble-text {
    flex: 1;
    min-width: 0;
}

.bubble-message {
    color: var(--gray-800);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
    word-wrap: break-word;
    word-break: break-word;
    hyphens: auto;
}

.bubble-message strong {
    color: var(--gray-900);
    font-weight: 700;
    display: block;
    margin-bottom: 0.5rem;
}

.bubble-arrow {
    position: absolute;
    bottom: -8px;
    right: 20px;
    width: 16px;
    height: 16px;
    background: var(--white);
    transform: rotate(45deg);
    border-bottom: 1px solid var(--gray-200);
    border-right: 1px solid var(--gray-200);
}

.bubble-close {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-sm);
    color: var(--gray-600);
    font-size: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    z-index: 2;
}

.bubble-close:hover {
    background: var(--primary);
    color: var(--white);
}

.bubble-timestamp {
    font-size: 0.75rem;
    color: var(--gray-500);
    margin-top: 0.75rem;
    text-align: right;
    font-weight: 500;
}

.whatsapp-float {
    position: relative;
    width: 64px;
    height: 64px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.75rem;
    box-shadow: var(--shadow-xl);
    transition: all var(--transition-bounce);
    text-decoration: none;
    border: 3px solid var(--white);
    z-index: 1;
    -webkit-tap-highlight-color: transparent;
}

.whatsapp-float:hover {
    transform: scale(1.1) rotate(5deg);
    box-shadow: var(--shadow-2xl);
    background: #128C7E;
}

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

@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7);
    }
    70% {
        box-shadow: 0 0 0 15px rgba(37, 211, 102, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 211, 102, 0);
    }
}

/* === ANIMACIONES REVEAL === */
.reveal {
    opacity: 0;
    transform: translateY(30px);
    transition: all var(--transition-slow);
}

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

/* === LOGO SIZING - TODOS LOS DISPOSITIVOS === */
.nav-brand .logo-img {
    height: 180px !important;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    filter: brightness(1) contrast(1.2);
    transition: all var(--transition-base);
}

.navbar.scrolled .logo-img {
    height: 150px !important;
}

.logo-img:hover {
    transform: scale(1.05);
    filter: brightness(1.1) contrast(1.3);
}

/* === FLOATING CURSOR === */
.floating-cursor {
    position: fixed;
    width: 40px;
    height: 40px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    z-index: 9999;
    transform: translate(-50%, -50%);
    transition: width 0.2s, height 0.2s, border-color 0.2s;
    opacity: 0.5;
    display: none;
}

.floating-cursor.active {
    width: 60px;
    height: 60px;
    border-color: var(--accent-blue);
    opacity: 0.3;
}

@media (min-width: 769px) {
    .floating-cursor {
        display: block;
    }
}

/* === RESPONSIVE === */
@media (max-width: 1200px) {
    .process-steps {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .nav-menu {
        gap: var(--spacing-md);
    }
    
    .clients-text-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

@media (max-width: 1024px) {
    .servicios-grid,
    .equipo-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-content-elite {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .partners-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .contacto-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
    
    .partner-card {
        height: 280px;
        padding: 2rem;
    }
    
    .partner-logo {
        height: 140px;
    }
    
    .clients-text-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .nav-brand .logo-img {
        height: 150px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 125px !important;
    }
}

@media (max-width: 768px) {
    .hamburger-elite {
        display: flex;
    }
    
    .nav-menu {
        position: fixed;
        top: 73px;
        left: 0;
        right: 0;
        background: var(--white);
        flex-direction: column;
        align-items: stretch;
        padding: 2rem;
        gap: 1rem;
        box-shadow: var(--shadow-lg);
        transform: translateX(-100%);
        transition: transform var(--transition-base);
        z-index: 1000;
    }
    
    .nav-menu.active {
        transform: translateX(0);
    }
    
    .nav-menu li:first-child {
        margin-left: 0;
    }
    
    .nav-link {
        padding: 0.75rem 0;
        font-size: 1rem;
    }
    
    .btn-nav-elite {
        margin-left: 0;
        width: 100%;
        justify-content: center;
    }
    
    .hero-title-elite {
        font-size: 2.5rem;
    }
    
    .hero-subtitle-elite {
        font-size: 1.125rem;
    }
    
    .hero-buttons-elite {
        flex-direction: column;
    }
    
    .section-title-modern {
        font-size: 2rem;
    }
    
    .servicios-grid,
    .especializaciones-grid,
    .equipo-grid {
        grid-template-columns: 1fr;
    }
    
    .equipo-grid[style*="grid-template-columns: repeat(2, 1fr)"] {
        grid-template-columns: 1fr !important;
        max-width: 500px !important;
    }
    
    .footer-content-elite {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom-elite {
        flex-direction: column;
        text-align: center;
        gap: 1.5rem;
    }
    
    .footer-partners-elite {
        margin-right: 0;
        text-align: center;
        width: 100%;
    }
    
    .partner-logos-footer {
        justify-content: center;
    }
    
    .footer-legal-elite {
        text-align: center;
        width: 100%;
    }
    
    .process-steps {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .process-step {
        min-height: 250px;
        padding: 2rem 1.5rem;
    }
    
    .logo-img {
        height: 160px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 135px !important;
    }
    
    .partner-card {
        height: 250px;
        padding: 1.5rem;
    }
    
    .partner-logo {
        height: 120px;
    }
    
    .footer-logo-img {
        height: 45px !important;
    }
    
    .partner-logo-footer:nth-child(2) .footer-logo-img {
        height: 50px !important;
    }
    
    .whatsapp-assistant {
        bottom: 1.5rem;
        right: 1.5rem;
    }
    
    .assistant-bubble {
        position: fixed;
        bottom: 90px;
        right: 15px;
        left: 15px;
        max-width: calc(100vw - 30px);
        width: auto;
        margin: 0 auto;
        padding: 1.25rem 1rem;
    }
    
    .bubble-arrow {
        bottom: -8px;
        right: 40px;
    }
    
    .bubble-avatar {
        width: 44px;
        height: 44px;
        font-size: 1.35rem;
    }
    
    .whatsapp-float {
        width: 60px;
        height: 60px;
        font-size: 1.6rem;
    }
    
    .hero-cinematic-index {
        min-height: 100vh;
        padding-top: 280px;
        padding-bottom: 120px;
    }
    
    .clients-text-grid {
        grid-template-columns: 1fr;
        max-width: 500px;
        margin-left: auto;
        margin-right: auto;
        gap: 1.5rem;
    }
    
    .client-name-box {
        min-height: 90px;
        padding: 1.25rem;
    }
    
    .client-name {
        font-size: 1rem;
    }
    
    .team-image {
        height: 240px;
    }
}

@media (max-width: 480px) {
    :root {
        --spacing-lg: 1rem;
    }
    
    .navbar .container {
        gap: 1rem;
        padding: 0.75rem var(--spacing-md);
    }
    
    .logo-img {
        height: 140px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 120px !important;
    }
    
    .hero-title-elite {
        font-size: 2rem;
    }
    
    .section-title-modern {
        font-size: 1.75rem;
    }
    
    .btn-elite {
        padding: 0.875rem 1.5rem;
        font-size: 0.9375rem;
    }
    
    .whatsapp-assistant {
        bottom: 1rem;
        right: 1rem;
    }
    
    .whatsapp-float {
        width: 56px;
        height: 56px;
        font-size: 1.5rem;
    }
    
    .assistant-bubble {
        bottom: 80px;
        right: 10px;
        left: 10px;
        max-width: calc(100vw - 20px);
        padding: 1rem 0.875rem;
    }
    
    .bubble-avatar {
        width: 40px;
        height: 40px;
        font-size: 1.25rem;
    }
    
    .bubble-message {
        font-size: 0.85rem;
    }
    
    .process-step {
        min-height: auto;
        padding: 1.5rem;
    }
    
    .team-image {
        height: 200px;
    }
    
    .partner-card {
        height: 220px;
    }
    
    .partner-logo {
        height: 100px;
    }
    
    .hero-cinematic-index {
        padding-top: 260px;
        padding-bottom: 100px;
    }
    
    .nav-brand .logo-img {
        height: 140px !important;
    }
    
    .navbar.scrolled .logo-img {
        height: 120px !important;
    }
    
    .footer-contact-elite p {
        font-size: 0.8125rem;
    }
    
    .partner-logos-footer {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
    }
    
    .footer-logo-img {
        max-height: 30px;
    }
}

@media (min-width: 1440px) {
    .whatsapp-assistant {
        bottom: 3rem;
        right: 3rem;
    }
}

/* === PRINT STYLES === */
@media print {
    .navbar,
    .whatsapp-assistant,
    .progress-bar {
        display: none;
    }
    
    section {
        page-break-inside: avoid;
    }
    
    .btn-elite,
    .btn-nav-elite {
        border: 1px solid var(--gray-300) !important;
        background: none !important;
        color: var(--gray-900) !important;
    }
}