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

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-white);
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

/* Optimizaciones de rendimiento */
.portfolio-item,
.pricing-item,
.section-header {
    will-change: auto;
    transform: translateZ(0);
}

/* Solo aplicar will-change cuando sea necesario */
.portfolio-item:hover,
.service-card:hover,
.pricing-item:hover {
    will-change: transform;
}

/* Optimizar imágenes */
img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: 100%;
    height: auto;
}

/* Optimización de imágenes responsive */
picture {
    display: block;
    contain: layout style paint;
}

picture img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

/* Accesibilidad - Contraste mejorado */

.contact-left-title {
    color: #ffffff !important;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
    outline: none !important;
}

.form-button {
    color: #ffffff !important;
    background: #ff6b35 !important;
    text-shadow: none;
}

/* Objetivos táctiles - Mínimo 44px */
.indicator {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 12px !important;
    margin: 8px !important;
}

.view-project-btn {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 12px 24px !important;
}

.btn {
    min-width: 44px !important;
    min-height: 44px !important;
    padding: 12px 24px !important;
}

/* Animaciones de entrada suaves */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.8s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

/* Hover suave para elementos interactivos */
.nav-link,
.portfolio-item,
.pricing-item {
    transition: all var(--transition);
}

.nav-link:hover {
    transform: translateY(-1px);
}

/* Optimizar backdrop-filter */
.nav,
.portfolio-item,
.btn,
.view-project-btn {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}

:root {
    /* Colores Minimalistas */
    --color-white: #FAFAFA;
    --color-orange: #FF6B00;
    --color-text: #1a1a1a;
    --color-text-light: #4a4a4a;
    --color-border: #E5E5E5;
    
    /* Espaciado HIG-Compliant */
    --space-xs: 4px;      /* 4pt */
    --space-sm: 8px;      /* 8pt */
    --space-md: 16px;     /* 16pt */
    --space-lg: 24px;     /* 24pt */
    --space-xl: 32px;     /* 32pt */
    --space-2xl: 48px;    /* 48pt */
    --space-3xl: 64px;    /* 64pt */
    
    /* Tipografía HIG */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-sm: 13px;     /* 13pt */
    --font-size-base: 17px;   /* 17pt */
    --font-size-lg: 20px;     /* 20pt */
    --font-size-xl: 22px;     /* 22pt */
    --font-size-2xl: 28px;    /* 28pt */
    --font-size-3xl: 34px;    /* 34pt */
    
    /* Line heights HIG */
    --line-height: 1.47059;   /* 25pt/17pt */
    --line-height-tight: 1.23529; /* 21pt/17pt */
    
    /* Border radius HIG */
    --radius-sm: 6px;     /* 6pt */
    --radius-md: 8px;     /* 8pt */
    --radius-lg: 10px;    /* 10pt */
    --radius-xl: 12px;    /* 12pt */
    
    /* Transiciones */
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.15s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-family);
    font-size: var(--font-size-base);
    line-height: var(--line-height);
    color: var(--color-text);
    background: var(--color-white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* ===== UTILIDADES ===== */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-md);
    width: 100%;
    box-sizing: border-box;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: var(--space-md) var(--space-lg);
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 0.9) 0%,
        rgba(255, 107, 0, 0.8) 50%,
        rgba(255, 107, 0, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-white);
    text-decoration: none;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition);
    box-shadow: 
        0 4px 16px rgba(255, 107, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    will-change: transform;
    transform: translateZ(0);
}

.btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 1) 0%,
        rgba(255, 107, 0, 0.9) 50%,
        rgba(255, 107, 0, 0.95) 100%);
    transform: translateY(-2px) scale(1.02);
    box-shadow: 
        0 12px 32px rgba(255, 107, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.3);
}

.btn-icon {
    transition: transform var(--transition);
    flex-shrink: 0;
    will-change: transform;
}

.btn:hover .btn-icon {
    transform: translateX(3px) scale(1.1);
}

.btn-secondary {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.08) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-orange);
    border: 1px solid rgba(255, 107, 0, 0.3);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 0.1) 0%,
        rgba(255, 107, 0, 0.05) 50%,
        rgba(255, 107, 0, 0.08) 100%);
    color: var(--color-orange);
    border-color: rgba(255, 107, 0, 0.5);
    box-shadow: 
        0 8px 24px rgba(255, 107, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

/* ===== NAVIGATION LIQUID GLASS ===== */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(250, 250, 250, 0.15);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 1000;
    padding: var(--space-md) 0;
    transition: all var(--transition);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
}

.logo-img {
    height: 18px;
    width: auto;
}

.nav-menu {
    display: flex;
    gap: var(--space-lg);
}

.nav-link {
    color: rgba(51, 51, 51, 0.9);
    text-decoration: none;
    font-weight: 500;
    transition: var(--transition);
}

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

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: var(--color-text);
    border-radius: var(--radius-sm);
    transition: var(--transition);
}

/* ===== SCREEN READER ONLY ===== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* ===== HERO SECTION ===== */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--color-white);
    padding: var(--space-2xl) 0;
    width: 100%;
    position: relative;
    margin-top: 0;
    will-change: transform;
    overflow: hidden;
}

/* Background Text Lines */
.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
}

.text-line {
    position: absolute;
    white-space: nowrap;
    font-size: 240px;
    font-weight: 800;
    color: rgba(255, 107, 0, 0.25) !important;
    letter-spacing: -3px;
    line-height: 0.7;
    transform: translateX(0);
    transition: transform 0.1s linear;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    text-transform: uppercase;
    opacity: 1;
    filter: blur(2px);
    text-shadow: 
        0 0 20px rgba(255, 107, 0, 0.3),
        0 0 40px rgba(255, 107, 0, 0.2),
        0 0 60px rgba(255, 107, 0, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.text-line-1 {
    top: 20%;
    transform: translateX(-20px);
}

.text-line-2 {
    top: 45%;
    transform: translateX(30px);
}

.text-line-3 {
    top: 70%;
    transform: translateX(-40px);
}

.text-line span {
    display: inline-block;
    margin-right: 40px;
    opacity: 1;
    color: rgba(255, 107, 0, 0.25) !important;
}

.hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
    letter-spacing: -2px;
    text-transform: uppercase;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(51, 51, 51, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.hero-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
    border-radius: 2px;
}

.hero-description {
    font-size: 1.1rem;
    font-weight: 400;
    color: rgba(51, 51, 51, 0.7);
    margin-bottom: var(--space-xl);
    line-height: var(--line-height);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-cta {
    display: flex;
    gap: var(--space-md);
    justify-content: center;
    position: relative;
}

/* ===== SECTIONS ===== */
.section {
    padding: var(--space-2xl) 0;
    background: var(--color-white);
    width: 100%;
    position: relative;
    z-index: 2;
}

.section-orange {
    --color: #FF6B00;
    background: linear-gradient(95deg, var(--color) 25%, transparent 25%) -50px 0,
          linear-gradient(-15deg, var(--color) 25%, transparent 25%) -50px 0,
          linear-gradient(25deg, transparent 75%, var(--color) 75%) -50px 0,
          linear-gradient(-45deg, transparent 75%, var(--color) 75%) -50px 0,
          linear-gradient(-15deg, transparent 75%, var(--color) 75%) -50px 0;
    background-color: var(--color-orange);
    background-size: 40px 40px;
    color: var(--color-white);
    width: 100%;
}

/* Sección About con espacio aumentado en desktop */
#about.section-orange {
    padding: calc(var(--space-4xl) * 2) 0;
    position: relative;
    will-change: transform;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Texto grande para la sección About */
.about-large-text {
    font-size: 100px;
    font-weight: 800;
    color: var(--color-white);
    text-align: center;
    line-height: 0.9;
    letter-spacing: -3px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    text-transform: uppercase;
    margin: 0;
    max-width: 1000px;
    z-index: 2;
}

.section-orange .section-title,
.section-orange .section-subtitle,
.section-orange h3,
.section-orange p,
.section-orange .stat-label {
    color: var(--color-white);
}

.section-orange .stat-number {
    color: var(--color-white);
}

.section-orange .btn {
    background: var(--color-white);
    color: var(--color-orange);
    border: 1px solid var(--color-border);
}

/* Estilos específicos para botones de pricing */
.pricing-item .btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-sm) var(--space-lg);
    text-decoration: none;
    font-weight: 600;
    font-size: var(--font-size-base);
    transition: all var(--transition);
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    text-transform: none;
    letter-spacing: 0px;
    margin-top: var(--space-md);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    min-width: 140px;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
    will-change: transform;
    transform: translateZ(0);
}

.pricing-item .btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.25) 100%);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.section-orange .btn:hover {
    background: #F0F0F0;
}

.pricing-item.featured .btn {
    background: linear-gradient(135deg, 
        rgba(250, 250, 250, 0.9) 0%,
        rgba(250, 250, 250, 0.8) 50%,
        rgba(250, 250, 250, 0.85) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-orange);
    border: 1px solid rgba(255, 107, 0, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(250, 250, 250, 0.4),
        inset 0 -1px 0 rgba(250, 250, 250, 0.1);
    min-width: 140px;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.pricing-item.featured .btn:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 0.1) 0%,
        rgba(255, 107, 0, 0.05) 50%,
        rgba(255, 107, 0, 0.08) 100%);
    color: var(--color-orange);
    transform: translateY(-2px) scale(1.05);
    box-shadow: 
        0 16px 48px rgba(255, 107, 0, 0.25),
        inset 0 1px 0 rgba(250, 250, 250, 0.5),
        inset 0 -1px 0 rgba(250, 250, 250, 0.2);
    border-color: rgba(255, 107, 0, 0.5);
}

.pricing-item .btn-icon {
    transition: transform var(--transition);
    flex-shrink: 0;
    will-change: transform;
}

.pricing-item .btn:hover .btn-icon {
    transform: translateX(3px) translateY(-3px) scale(1.1);
}

.section-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.section-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
}

.section-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT SECTION ===== */
.about-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-2xl);
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.about-text h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    margin-bottom: var(--space-lg);
    color: var(--color-text);
}

.about-text p {
    color: var(--color-text-light);
    line-height: var(--line-height);
    margin-bottom: var(--space-lg);
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-lg);
}

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

.stat-number {
    display: block;
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--color-orange);
    margin-bottom: var(--space-xs);
}

.stat-label {
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
}

/* ===== PORTFOLIO SECTION ===== */
.portfolio-title-container {
    text-align: center;
    margin-bottom: var(--space-3xl);
}

.portfolio-main-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(51, 51, 51, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.portfolio-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
    border-radius: 2px;
}

.portfolio-subtitle {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.subtitle-line {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(51, 51, 51, 0.7);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
}



.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: var(--space-lg);
}

.portfolio-item {
    position: relative;
    background: linear-gradient(135deg, 
        rgba(144, 238, 144, 0.1) 0%,
        rgba(32, 178, 170, 0.15) 50%,
        rgba(0, 128, 128, 0.1) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: all var(--transition-slow);
    box-shadow: 
        0 8px 32px rgba(0, 128, 128, 0.1),
        0 4px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
}

.portfolio-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    z-index: 1;
}

.portfolio-item:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 128, 128, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}



.portfolio-image {
    height: 350px;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.portfolio-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.glass-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 0, 0, 0.2) 0%,
        rgba(0, 0, 0, 0.1) 50%,
        rgba(0, 0, 0, 0.3) 100%);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: var(--space-lg);
    opacity: 0;
    transition: all var(--transition);
    z-index: 2;
    will-change: opacity;
    transform: translateZ(0);
}

.portfolio-item:hover .glass-overlay {
    opacity: 1;
}



.portfolio-image::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 120px;
    height: 120px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(0, 128, 128, 0.2) 100%);
    border-radius: var(--radius-lg);
    transform: translate(-50%, -50%) rotate(15deg);
    backdrop-filter: blur(10px);
    box-shadow: 
        0 8px 32px rgba(0, 128, 128, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    z-index: 0;
}

.portfolio-image::after {
    content: '';
    position: absolute;
    top: 30%;
    right: 20%;
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(0, 128, 128, 0.1) 100%);
    border-radius: var(--radius-md);
    transform: rotate(-10deg);
    backdrop-filter: blur(8px);
    box-shadow: 
        0 4px 16px rgba(0, 128, 128, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    z-index: 0;
}



.view-project-btn {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    color: var(--color-white);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition);
    will-change: transform;
    transform: translateZ(0);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    min-width: 140px;
    justify-content: center;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.view-project-btn:hover {
    transform: translateY(-2px) scale(1.05);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.25) 100%);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.arrow-icon {
    transition: transform var(--transition);
    will-change: transform;
}

.view-project-btn:hover .arrow-icon {
    transform: translateX(4px) translateY(-3px) scale(1.1);
}



/* ===== PRICING SECTION ===== */
.pricing-title-container {
    text-align: center;
    margin-bottom: var(--space-2xl);
}

.pricing-main-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: #FAFAFA;
    margin: 0;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    position: relative;
}

.pricing-main-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, transparent, #FAFAFA, transparent);
    border-radius: 1px;
}

.pricing-subtitle {
    margin-top: var(--space-md);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.pricing-subtitle .subtitle-line {
    font-size: var(--font-size-base);
    font-weight: 400;
    color: rgba(250, 250, 250, 0.85);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    max-width: 1200px;
    margin: 0 auto;
    align-items: stretch;
}

.pricing-item {
    background: linear-gradient(135deg, 
        rgba(240, 240, 240, 0.95) 0%,
        rgba(235, 235, 235, 0.9) 50%,
        rgba(238, 238, 238, 0.93) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(250, 250, 250, 0.3);
    border-radius: var(--radius-lg);
    padding: var(--space-xl);
    text-align: center;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(250, 250, 250, 0.4);
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    will-change: transform;
    transform: translateZ(0);
    transform: scale(0.95);
}



.pricing-item:hover {
    transform: translateY(-4px);
    background: linear-gradient(135deg, 
        rgba(250, 250, 250, 0.98) 0%,
        rgba(250, 250, 250, 0.95) 50%,
        rgba(250, 250, 250, 0.97) 100%);
    box-shadow: 
        0 16px 40px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(250, 250, 250, 0.5);
    border-color: rgba(255, 107, 0, 0.4);
}

.pricing-item:hover h3 {
    color: #d45a00;
    transform: translateY(-2px);
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-item:hover .price {
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-item.featured:hover {
    transform: translateY(-6px);
    box-shadow: 
        0 0 0 1px rgba(255, 107, 0, 0.2),
        0 0 30px rgba(255, 107, 0, 0.4),
        0 0 60px rgba(255, 107, 0, 0.25),
        0 0 100px rgba(255, 107, 0, 0.1),
        0 25px 70px rgba(255, 107, 0, 0.3),
        inset 0 1px 0 rgba(250, 250, 250, 0.7);
}

.pricing-item.featured:hover h3 {
    color: #d45a00;
    transform: translateY(-3px);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-item.featured:hover .price {
    color: #d45a00;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-item.featured {
    background: #FFFFFF;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 2px solid rgba(255, 107, 0, 0.4);
    box-shadow: 
        0 0 0 1px rgba(255, 107, 0, 0.1),
        0 0 20px rgba(255, 107, 0, 0.3),
        0 0 40px rgba(255, 107, 0, 0.15),
        0 12px 40px rgba(255, 107, 0, 0.2),
        inset 0 1px 0 rgba(250, 250, 250, 0.6);
    position: relative;
    z-index: 2;
    height: 100%;
    padding: var(--space-xl);
    transform: scale(1.05);
}

.pricing-item.featured::before {
    content: 'RECOMENDADO';
    position: absolute;
    top: -10px;
    left: 0;
    right: 0;
    margin: 0 auto;
    width: fit-content;
    background: var(--color-orange);
    color: #FAFAFA;
    padding: 8px 16px;
    border-radius: 10px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 
        0 4px 16px rgba(255, 107, 0, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    z-index: 3;
}

/* Tooltip para Plan Growth */
.featured-tooltip {
    position: fixed;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    color: var(--color-text);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    will-change: transform, opacity;
}

.featured-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

/* Tooltip para Plan Starter */
.starter-tooltip {
    position: fixed;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    color: var(--color-text);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-sm);
    font-weight: 600;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px) scale(0.9);
    transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.2s ease;
    z-index: 9999;
    white-space: nowrap;
    border: 1px solid rgba(255, 255, 255, 0.3);
    will-change: transform, opacity;
}

.starter-tooltip.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.pricing-item h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--color-text);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.3px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-item.featured h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.3px;
}

.price {
    font-size: var(--font-size-3xl);
    font-weight: 600;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -1px;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.pricing-item.featured .price {
    font-size: 2.5rem;
    font-weight: 900;
    color: #000000;
    margin-bottom: var(--space-sm);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -1.5px;
}

.pricing-item p {
    color: var(--color-text-light);
    margin-bottom: var(--space-lg);
    line-height: var(--line-height);
    font-size: var(--font-size-base);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.2px;
}

.pricing-item ul {
    list-style: none;
    margin-bottom: var(--space-lg);
    text-align: left;
}

.pricing-item li {
    color: var(--color-text-light);
    margin-bottom: var(--space-sm);
    position: relative;
    padding-left: var(--space-md);
    line-height: var(--line-height);
    font-size: var(--font-size-sm);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.1px;
    text-align: left;
}

.pricing-item li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 600;
    font-size: var(--font-size-sm);
}

/* Enlace discreto para clientes */
.client-link {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
    cursor: pointer;
}

.client-link:hover {
    color: var(--color-orange);
}



/* ===== SERVICES SECTION ===== */

/* ===== SERVICES SECTION BASE ===== */
.services-section {
    background: var(--color-white) !important;
    padding: var(--space-3xl) 0;
    position: relative;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

/* ===== SERVICES SECTION TITLE ===== */
.services-section .section-header {
    text-align: center;
    margin-bottom: var(--space-3xl);
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
    padding: 0 var(--space-xl);
}

.services-section .section-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(51, 51, 51, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

@media (max-width: 768px) {
    .services-section .section-title {
        font-size: 3.5rem;
    }
    
    .block-title {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-xl);
    }
}

@media (max-width: 480px) {
    .services-section .section-title {
        font-size: 2.5rem;
    }
    
    .block-title {
        font-size: var(--font-size-lg);
        margin-bottom: var(--space-lg);
    }
}

.services-section .section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
    border-radius: 2px;
}

/* ===== SERVICES BLOCK ===== */
.services-block {
    margin-bottom: var(--space-4xl);
    background: var(--color-white);
}

.services-block:last-child {
    margin-bottom: 0;
}

/* ===== BLOCK TITLE ===== */
.block-title {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    font-family: var(--font-family);
    color: var(--color-text);
    margin-bottom: var(--space-2xl);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.title-bold {
    color: #1D1D1F;
    font-weight: 700;
}

.title-regular {
    color: #1D1D1F;
    opacity: 0.8;
    font-weight: 400;
}

/* ===== SERVICES CAROUSEL ===== */
/* ===== CAROUSEL CONTAINER - HIG COMPLIANT ===== */
.services-carousel-container {
    position: relative;
    width: 100%;
    margin: 0;
    padding: 0;
}

/* ===== CAROUSEL NAVIGATION - LIQUID GLASS HIG ===== */
.carousel-navigation {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    z-index: 10;
    padding: 0 var(--space-lg);
    max-width: 1400px;
    margin: 0 auto;
}

.carousel-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--color-white);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    pointer-events: auto;
    opacity: 0.8;
    transform: scale(0.9);
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.3);
    opacity: 1;
    transform: scale(1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.carousel-btn:active {
    transform: scale(0.95);
}

.carousel-btn:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    transform: scale(0.9);
}

.carousel-btn:disabled:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: scale(0.9);
    box-shadow: none;
}

/* ===== CAROUSEL WRAPPER ===== */
.carousel-wrapper {
    position: relative;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 var(--space-lg);
    overflow: hidden;
    border-radius: var(--border-radius-lg);
}

/* ===== CAROUSEL TRACK ===== */
.carousel-track {
    display: flex;
    gap: var(--space-lg);
    padding: var(--space-md) 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 255, 255, 0.3) transparent;
    -webkit-overflow-scrolling: touch;
    scroll-padding-left: var(--space-lg);
    scroll-padding-right: var(--space-lg);
    contain: layout style paint;
    will-change: scroll-position;
}

.carousel-track::-webkit-scrollbar {
    height: 8px;
}

.carousel-track::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    margin: 0 var(--space-lg);
}

.carousel-track::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.carousel-track::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* ===== SERVICE CARD - HIG COMPLIANT ===== */
.service-card {
    flex: 0 0 400px;
    height: 500px;
    position: relative;
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    overflow: hidden;
    transition: transform 0.2s ease-out;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out forwards;
    will-change: transform;
    transform: translateZ(0);
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: 400px 500px;
}

/* Animaciones escalonadas para las tarjetas de servicios */
.service-card:nth-child(1) {
    animation-delay: 0.4s;
}

.service-card:nth-child(2) {
    animation-delay: 0.6s;
}

.service-card:nth-child(3) {
    animation-delay: 0.8s;
}

.service-card:nth-child(4) {
    animation-delay: 1.0s;
}

.service-card:nth-child(5) {
    animation-delay: 1.2s;
}

.service-card:nth-child(6) {
    animation-delay: 1.4s;
    will-change: transform;
    transform: translateZ(0);
    cursor: pointer;
    min-width: 400px;
    contain: layout style paint;
    content-visibility: auto;
    contain-intrinsic-size: 400px 500px;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
    z-index: 1;
}

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


.service-card:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 4px;
}

.service-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* ===== CARD BACKGROUND ===== */
.card-background {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 0;
}


.card-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: blur(2px) brightness(0.7);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.service-card:hover .card-bg-image {
    filter: blur(1px) brightness(0.8);
    transform: scale(1.05);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        135deg,
        rgba(0, 0, 0, 0.1) 0%,
        rgba(0, 0, 0, 0.2) 50%,
        rgba(0, 0, 0, 0.4) 100%
    );
    z-index: 2;
}

/* ===== CARD CONTENT ===== */
.card-content {
    position: relative;
    z-index: 3;
    padding: var(--space-xl);
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
}

.card-title {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--color-white);
    font-family: var(--font-family);
    letter-spacing: -0.02em;
    line-height: 1.2;
    text-align: center;
    text-transform: uppercase;
}


.card-cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: var(--border-radius-md);
    padding: var(--space-sm) var(--space-md);
    color: var(--color-white);
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    align-self: center;
}

.card-cta:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateX(4px);
}

.card-cta:active {
    transform: translateX(2px);
}

.card-cta:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

.arrow-icon {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.card-cta:hover .arrow-icon {
    transform: translateX(2px);
}

/* ===== CAROUSEL INDICATORS - HIG COMPLIANT ===== */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: var(--space-sm);
    margin-top: var(--space-xl);
    padding: 0 var(--space-lg);
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
}

.indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.3);
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.5);
    transform: scale(1.2);
}

.indicator[aria-selected="true"] {
    background: var(--color-white);
    transform: scale(1.3);
    box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.3);
}

.indicator:focus-visible {
    outline: 2px solid var(--color-white);
    outline-offset: 2px;
}

/* ===== RESPONSIVE CAROUSEL ===== */
@media (max-width: 768px) {
    .carousel-wrapper {
        padding: 0 var(--space-md);
    }
    
    .carousel-navigation {
        padding: 0 var(--space-md);
    }
    
    .carousel-track {
        scroll-padding: var(--space-md);
    }
    
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    
    .carousel-btn svg {
        width: 16px;
        height: 16px;
    }
    
    .service-card {
        flex: 0 0 320px;
    }
    
    .card-content {
        padding: var(--space-lg);
    }
    
    .card-title {
        font-size: 1.8rem;
        font-weight: 900;
        text-transform: uppercase;
    }
    
    .carousel-indicators {
        margin-top: var(--space-lg);
    }
}

@media (max-width: 480px) {
    .carousel-wrapper {
        padding: 0 var(--space-sm);
    }
    
    .carousel-navigation {
        padding: 0 var(--space-sm);
    }
    
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    
    .carousel-btn svg {
        width: 14px;
        height: 14px;
    }
    
    .service-card {
        flex: 0 0 280px;
    }
    
    .card-content {
        padding: var(--space-md);
    }
    
    .card-title {
        font-size: 1.5rem;
        font-weight: 900;
        text-transform: uppercase;
    }
    
    .indicator {
        width: 6px;
        height: 6px;
    }
}

/* ===== PREFERS REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        scroll-behavior: auto;
    }
    
    .service-card,
    .carousel-btn,
    .indicator,
    .card-cta {
        transition: none;
    }
    
    .service-card:hover {
        transform: none;
    }
    
    .carousel-btn:hover {
        transform: none;
    }
}


/* Soporte para prefers-reduced-motion */
@media (prefers-reduced-motion: reduce) {
    .carousel-track {
        scroll-behavior: auto;
    }
    
    .service-card {
        transition: none;
    }
    
    .carousel-control {
        transition: none;
    }
    
    .carousel-control svg {
        transition: none;
    }
    
    .liquid-glow,
    .gentle-pulse {
        animation: none !important;
    }
}

/* Activar animaciones solo cuando están visibles */
.liquid-glow.in-viewport,
.gentle-pulse.in-viewport {
    animation-play-state: running;
}

/* Pausar animaciones fuera del viewport */
.liquid-glow:not(.in-viewport),
.gentle-pulse:not(.in-viewport) {
    animation-play-state: paused;
}

.carousel-control {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition);
    pointer-events: auto;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: scale(0.8);
    /* Accesibilidad */
    outline: none;
}

/* Foco visible para accesibilidad */
.carousel-control:focus-visible {
    outline: 2px solid var(--color-orange);
    outline-offset: 2px;
}

.carousel-control:hover {
    transform: scale(1.1);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.3) 0%,
        rgba(255, 255, 255, 0.2) 50%,
        rgba(255, 255, 255, 0.25) 100%);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.5),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
}

.carousel-control svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: var(--color-white);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform var(--transition);
}

.carousel-control:hover svg {
    transform: scale(1.1);
}

/* ===== RESPONSIVE CAROUSEL CONTROLS ===== */
@media (max-width: 480px) {
    .carousel-control {
        width: 36px;
        height: 36px;
    }
    
    .carousel-control svg {
        width: 14px;
        height: 14px;
    }
    }
    



/* ===== TEAM SECTION ===== */
.team-title-container {
    text-align: center;
    margin-bottom: var(--space-2xl);
    opacity: 0;
    transform: translateY(30px);
    animation: slideInUp 0.8s ease-out 0.2s forwards;
}

.team-main-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--color-white);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--color-white) 0%, rgba(255, 255, 255, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.1);
    position: relative;
}

.team-main-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-white), transparent);
    border-radius: 2px;
}

.team-subtitle {
    margin-top: var(--space-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-xs);
}

.team-subtitle .subtitle-line {
    font-size: 1rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.85);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.5px;
}
.team-content {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: var(--space-2xl);
    align-items: center;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
    padding: var(--space-3xl) 0;
    opacity: 0;
    transform: translateY(40px);
    animation: slideInUp 0.8s ease-out 0.4s forwards;
}

/* ===== TEAM IMAGE CONTAINER - HIG COMPLIANT ===== */
.team-image-container {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: var(--space-lg);
    opacity: 0;
    transform: translateX(-30px) scale(0.9);
    animation: slideInLeft 0.8s ease-out 0.6s forwards;
}

.team-image-frame {
    position: relative;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.25) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        rgba(255, 255, 255, 0.05) 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.2) 100%);
    backdrop-filter: blur(20px) saturate(1.2);
    -webkit-backdrop-filter: blur(20px) saturate(1.2);
    border: 2px solid rgba(255, 255, 255, 0.3);
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.15),
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    transition: all var(--transition-slow);
    overflow: hidden;
}

.team-image-frame::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    border-radius: 50%;
    background: linear-gradient(45deg, 
        rgba(255, 255, 255, 0.4) 0%,
        rgba(255, 255, 255, 0.1) 25%,
        transparent 50%,
        rgba(255, 255, 255, 0.1) 75%,
        rgba(255, 255, 255, 0.3) 100%);
    z-index: -1;
    animation: liquidGlow 3s ease-in-out infinite;
    animation-play-state: paused;
}

.team-image-glass {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    overflow: hidden;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%,
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.team-photo-link {
    display: block;
    width: 100%;
    height: 100%;
    text-decoration: none;
    transition: all var(--transition-slow);
    cursor: pointer;
}

.team-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    transition: all var(--transition-slow);
    filter: brightness(1.05) contrast(1.1);
}

.team-image-frame:hover {
    transform: translateY(-4px);
    box-shadow: 
        0 12px 40px rgba(0, 128, 128, 0.2),
        0 6px 20px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    border-color: rgba(255, 255, 255, 0.4);
}

.team-image-frame:hover .team-photo-link {
    transform: scale(1.05);
}

.team-image-frame:hover .team-photo {
    filter: blur(1px) brightness(0.8);
}

/* Animación sutil del marco */
@keyframes liquidGlow {
    0%, 100% {
        opacity: 0.6;
        transform: rotate(0deg);
    }
    50% {
        opacity: 0.8;
        transform: rotate(180deg);
    }
}

/* Animaciones de entrada más suaves */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

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

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

@keyframes bounceIn {
    from {
        opacity: 0;
        transform: translateY(15px) scale(0.95);
    }
    60% {
        transform: translateY(-2px) scale(1.02);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}


.team-text {
    padding: var(--space-lg) 0;
    opacity: 0;
    transform: translateX(30px) scale(0.95);
    animation: slideInRight 0.8s ease-out 0.8s forwards;
}

.team-text h3 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    margin-bottom: var(--space-sm);
    color: var(--color-white);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -0.8px;
    line-height: 1.2;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all var(--transition);
    cursor: default;
}

.team-text h3:hover {
    transform: translateX(4px);
    text-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
    color: rgba(255, 255, 255, 0.95);
}

.team-role {
    color: rgba(255, 255, 255, 0.8);
    font-size: var(--font-size-lg);
    font-weight: 500;
    margin-bottom: var(--space-lg);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-slow);
    cursor: default;
}

.team-role:hover {
    color: rgba(255, 255, 255, 0.9);
    transform: translateX(2px);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
}

.team-text p:not(.team-role) {
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.6;
    margin-bottom: var(--space-xl);
    font-size: var(--font-size-base);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

.team-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding: var(--space-lg) 0;
    opacity: 0;
    transform: translateY(20px);
    animation: slideInUp 0.6s ease-out 1.2s forwards;
}

.team-stats .stat-item {
    text-align: center;
    padding: var(--space-xl);
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.12) 0%,
        rgba(255, 255, 255, 0.08) 25%,
        rgba(255, 255, 255, 0.04) 50%,
        rgba(255, 255, 255, 0.08) 75%,
        rgba(255, 255, 255, 0.1) 100%);
    backdrop-filter: blur(20px) saturate(1.1);
    -webkit-backdrop-filter: blur(20px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: var(--radius-xl);
    transition: all var(--transition-slow);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        inset 0 -1px 0 rgba(255, 255, 255, 0.1);
    opacity: 0;
    transform: translateY(20px) scale(0.9);
}

.team-stats .stat-item:nth-child(1) {
    animation: bounceIn 0.6s ease-out 1.4s forwards;
}

.team-stats .stat-item:nth-child(2) {
    animation: bounceIn 0.6s ease-out 1.6s forwards;
}

.team-stats .stat-item:nth-child(3) {
    animation: bounceIn 0.6s ease-out 1.8s forwards;
}

.team-stats .stat-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%,
        rgba(255, 255, 255, 0.6) 50%,
        transparent 100%);
}

.team-stats .stat-item:hover {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.18) 0%,
        rgba(255, 255, 255, 0.12) 25%,
        rgba(255, 255, 255, 0.08) 50%,
        rgba(255, 255, 255, 0.12) 75%,
        rgba(255, 255, 255, 0.15) 100%);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 
        0 16px 48px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.4),
        inset 0 -1px 0 rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.35);
}

.team-stats .stat-number {
    display: block;
    font-size: var(--font-size-3xl);
    font-weight: 900;
    color: var(--color-white);
    margin-bottom: var(--space-sm);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: -1.2px;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: all var(--transition);
}

.team-stats .stat-item:hover .stat-number {
    transform: scale(1.05);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.team-stats .stat-label {
    color: rgba(255, 255, 255, 0.85);
    font-size: var(--font-size-sm);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.3;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
    transition: all var(--transition);
}

.team-stats .stat-item:hover .stat-label {
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* Animación especial para el símbolo infinito del café */
.team-stats .stat-item:nth-child(1) .stat-number {
    animation: gentlePulse 4s ease-in-out infinite;
    animation-play-state: paused;
}

@keyframes gentlePulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.9;
    }
    50% {
        transform: scale(1.05);
        opacity: 1;
    }
}

/* ===== FAQ SECTION ===== */
.faq-section {
    background: var(--color-white);
    padding: var(--space-3xl) 0;
}

/* FAQ Hidden for UX but accessible for SEO */
.faq-section.seo-hidden {
    position: absolute;
    left: -9999px;
    top: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -1;
}

.faq-content {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.faq-item {
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 107, 0, 0.1);
    border-radius: var(--radius-lg);
    padding: var(--space-lg);
    transition: all var(--transition);
}

.faq-item:hover {
    border-color: rgba(255, 107, 0, 0.3);
    box-shadow: 0 4px 20px rgba(255, 107, 0, 0.1);
}

.faq-question {
    font-size: var(--font-size-lg);
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-sm);
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
}

.faq-answer {
    color: var(--color-text-light);
    line-height: 1.6;
    margin: 0;
    font-size: var(--font-size-base);
}

/* ===== CONTACT SECTION - SPLIT LAYOUT ===== */
.contact-section {
    display: flex;
    min-height: 100vh;
    opacity: 0;
    transform: translateY(30px);
    animation: fadeInUp 0.8s ease-out 0.2s forwards;
}

.contact-left {
    flex: 1;
    background: var(--color-orange);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl);
}

/* Asegurar que se muestre solo en desktop */
@media (min-width: 1025px) {
    .contact-left {
        display: flex;
    }
}

/* Ocultar en tablet */
@media (max-width: 1024px) and (min-width: 769px) {
    .contact-left {
        display: none;
    }
    
    .contact-right {
        flex: 1;
    }
}

.contact-left-content {
    text-align: center;
}

.contact-left-title {
    font-size: 4rem;
    font-weight: 900;
    color: #ffffff !important;
    font-family: var(--font-family);
    letter-spacing: -0.02em;
    line-height: 1.1;
    text-transform: uppercase;
    margin: 0;
    text-align: center;
    text-shadow: none !important;
    background: none !important;
    border: none !important;
    outline: none !important;
}


.contact-right {
    flex: 1;
    background: #fafafa;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4xl);
}

.contact-right-content {
    max-width: 500px;
    width: 100%;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.contact-form-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0;
    line-height: 0.9;
    letter-spacing: -3px;
    text-transform: uppercase;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(51, 51, 51, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
    margin-bottom: var(--space-lg);
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.4s forwards;
}

.contact-form-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--color-orange), transparent);
    border-radius: 2px;
}

.contact-form-subtitle {
    font-size: var(--font-size-lg);
    color: var(--color-text-light);
    font-family: var(--font-family);
    font-weight: 400;
    line-height: 1.5;
    margin-bottom: var(--space-3xl);
}

.contact-form {
    margin-bottom: var(--space-3xl);
    opacity: 0;
    transform: translateY(20px);
    animation: fadeInUp 0.8s ease-out 0.6s forwards;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.form-group {
    margin-bottom: var(--space-lg);
}

.form-input,
.form-textarea {
    width: 100%;
    padding: var(--space-lg);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-family: var(--font-family);
    background: var(--color-white);
    transition: all 0.3s ease;
    resize: vertical;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}

.form-input:focus,
.form-textarea:focus {
    outline: none;
    border-color: var(--color-orange);
    box-shadow: 0 0 0 3px rgba(255, 107, 0, 0.1);
}

.form-input::placeholder,
.form-textarea::placeholder {
    color: rgba(0, 0, 0, 0.4);
    font-weight: 400;
}

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

.form-button {
    width: 100%;
    padding: var(--space-lg);
    background: var(--color-orange);
    color: var(--color-white);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-size-base);
    font-weight: 600;
    font-family: var(--font-family);
    cursor: pointer;
    transition: all 0.3s ease;
}

.form-button:hover {
    background: #e55a00;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 107, 0, 0.3);
}

.form-success {
    text-align: center;
    padding: var(--space-lg);
    background: rgba(76, 175, 80, 0.1);
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: var(--radius-lg);
    margin-top: var(--space-lg);
}

.form-success p {
    color: #2e7d32;
    font-weight: 500;
    margin: 0;
}


/* ===== FOOTER ===== */
.footer {
    background: linear-gradient(135deg, 
        rgba(250, 250, 250, 0.95) 0%,
        rgba(255, 255, 255, 0.98) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    padding: var(--space-2xl) 0 var(--space-lg);
    color: var(--color-text);
}

.footer-content {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: var(--space-lg);
    padding-bottom: var(--space-lg);
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    gap: var(--space-xl);
}

.footer-links {
    display: flex;
    gap: var(--space-lg);
    align-items: center;
}

.footer-link {
    color: var(--color-text);
    text-decoration: none;
    font-size: var(--font-size-sm);
    font-weight: 500;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
    transition: all var(--transition);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
}

.footer-link:hover {
    color: var(--color-orange);
    transform: translateY(-1px);
}

.footer-image {
    width: 60px;
    height: 60px;
    flex-shrink: 0;
    transition: all var(--transition);
}

.footer-image:hover {
    transform: scale(1.1);
}

.terri-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: all var(--transition);
}

.footer-image:hover .terri-image {
    filter: brightness(1.1) contrast(1.1);
}

.footer-social {
    display: flex;
    gap: var(--space-md);
    align-items: center;
    flex-shrink: 0;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-text-light);
    text-decoration: none;
    transition: all var(--transition);
}

.social-icon:hover {
    color: var(--color-orange);
    transform: translateY(-1px);
}

.social-icon svg {
    transition: all var(--transition);
    stroke-width: 1.5;
}

.social-icon:hover svg {
    transform: scale(1.05);
}

.footer-bottom {
    text-align: center;
    color: var(--color-text-light);
    font-size: var(--font-size-xs);
    font-weight: 400;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    letter-spacing: 0.3px;
}

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

.footer-bottom .social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: var(--color-orange);
    text-decoration: none;
    transition: all var(--transition);
}

.footer-bottom .social-icon:hover {
    color: var(--color-orange);
    transform: translateY(-2px) scale(1.1);
}

.footer-bottom .social-icon svg {
    transition: all var(--transition);
    stroke-width: 1.5;
}

.footer-bottom .social-icon:hover svg {
    transform: scale(1.05);
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 100%;
        left: 0;
        right: 0;
        background: rgba(250, 250, 250, 0.95);
        backdrop-filter: blur(25px);
        -webkit-backdrop-filter: blur(25px);
        flex-direction: column;
        padding: var(--space-lg);
        border-top: 1px solid rgba(255, 255, 255, 0.3);
        box-shadow: 
            0 -8px 32px rgba(0, 0, 0, 0.1),
            inset 0 1px 0 rgba(255, 255, 255, 0.4);
        transform: translateY(100%);
        opacity: 0;
        transition: all 0.3s ease;
        z-index: 1000;
        visibility: hidden;
    }

    .nav-menu.active {
        transform: translateY(0);
        opacity: 1;
        visibility: visible;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu .nav-link {
        padding: var(--space-md);
        text-align: center;
        border-radius: var(--radius-md);
        transition: all 0.3s ease;
    }

    .nav-menu .nav-link:hover {
        background: rgba(255, 107, 0, 0.1);
        color: var(--color-orange);
    }

    .hero-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .text-line {
        font-size: 160px;
        letter-spacing: -2px;
    }

    .about-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .about-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .contact-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }
    
    
    .contact-icon {
        width: 40px;
        height: 40px;
    }
    
    .contact-value {
        font-size: var(--font-size-base);
    }

    .team-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
        padding: var(--space-2xl) 0;
    }

    .team-image-container {
        padding: var(--space-md);
    }

    .team-image-frame {
        width: 280px;
        height: 280px;
    }

    .team-text {
        padding: var(--space-lg) 0;
        text-align: center;
    }

    .team-text h3 {
        font-size: var(--font-size-2xl);
        margin-bottom: var(--space-sm);
    }

    .team-role {
        font-size: var(--font-size-base);
        margin-bottom: var(--space-md);
    }

    .team-text p:not(.team-role) {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-lg);
    }

    .team-stats {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        margin-top: var(--space-xl);
    }

    .team-stats .stat-item {
        padding: var(--space-lg);
    }

    .team-main-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }
    
    .team-subtitle .subtitle-line {
        font-size: 0.9rem;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: var(--space-xl);
    }

    .footer-links {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
    }

    .pricing-item.featured {
        transform: scale(1.05);
    }
    
    .pricing-item.featured .price {
        font-size: 3rem;
    }
    
    .pricing-item.featured h3 {
        font-size: 1.3rem;
    }
    
    .pricing-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: var(--space-sm);
        max-width: 100%;
        padding: 0 var(--space-sm);
    }
    
    .pricing-item {
        min-height: 500px;
        padding: var(--space-xl);
    }
    
    .pricing-item.featured {
        min-height: 550px;
        transform: scale(1.02);
    }
    
    .pricing-main-title {
        font-size: 3.5rem;
        letter-spacing: -2px;
    }
    
    .pricing-subtitle .subtitle-line {
        font-size: 0.9rem;
    }

    /* Responsive para texto grande en about */
    .about-large-text {
        font-size: 70px;
        line-height: 0.9;
        max-width: 700px;
    }
    
    #about.section-orange {
        min-height: 50vh;
        padding: var(--space-4xl) 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 var(--space-sm);
    }

    .hero-title {
        font-size: 2rem;
        letter-spacing: -1px;
    }

    .section-title {
        font-size: var(--font-size-xl);
    }

    .text-line {
        font-size: 100px;
        letter-spacing: -1px;
    }

    /* Responsive para texto grande en about - móviles */
    .about-large-text {
        font-size: 40px;
        line-height: 1;
        letter-spacing: -1px;
        max-width: 350px;
    }
    
    #about.section-orange {
        min-height: 40vh;
        padding: var(--space-3xl) 0;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-main-title {
        font-size: 2.8rem;
        letter-spacing: -1px;
    }
    
    .pricing-subtitle .subtitle-line {
        font-size: 0.8rem;
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: 0 var(--space-sm);
    }
    
    .pricing-item {
        min-height: 500px;
        padding: var(--space-lg);
    }
    
    .pricing-item.featured {
        min-height: 520px;
        transform: scale(1.02);
    }

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

    .team-text h3 {
        font-size: var(--font-size-xl);
    }

    .team-text p {
        font-size: var(--font-size-base);
    }

    .team-image-frame {
        width: 240px;
        height: 240px;
    }

    .team-text h3 {
        font-size: var(--font-size-xl);
        margin-bottom: var(--space-xs);
    }

    .team-role {
        font-size: var(--font-size-sm);
        margin-bottom: var(--space-sm);
    }

    .team-text p:not(.team-role) {
        font-size: 0.8rem;
        margin-bottom: var(--space-md);
    }

    .team-image-frame {
        width: 240px;
        height: 240px;
    }

    .team-stats .stat-item {
        padding: var(--space-md);
    }

    .team-stats .stat-number {
        font-size: var(--font-size-2xl);
    }

    .team-stats .stat-label {
        font-size: 0.75rem;
        letter-spacing: 0.6px;
    }

    .team-main-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .team-subtitle .subtitle-line {
        font-size: 0.8rem;
    }
}

/* ===== PORTFOLIO MODALS - REESCRITO PARA MÁXIMA FLUIDEZ ===== */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.6s ease, visibility 0.6s ease;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    backdrop-filter: blur(0px);
    -webkit-backdrop-filter: blur(0px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.modal.active .modal-backdrop {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1000px;
    max-height: 90vh;
    background: linear-gradient(135deg, 
        rgba(250, 250, 250, 0.98) 0%,
        rgba(255, 255, 255, 0.95) 50%,
        rgba(250, 250, 250, 0.96) 100%);
    backdrop-filter: blur(30px) saturate(1.1);
    -webkit-backdrop-filter: blur(30px) saturate(1.1);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: var(--radius-xl);
    box-shadow: 
        0 30px 100px rgba(0, 0, 0, 0.2),
        0 15px 50px rgba(255, 107, 0, 0.1),
        0 5px 20px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.7),
        inset 0 -1px 0 rgba(255, 107, 0, 0.15);
    overflow: hidden;
    
    /* Estado inicial */
    transform: scale(0.7) translateY(100px);
    opacity: 0;
    filter: blur(10px);
    
    /* Transición ultra suave */
    transition: all 1.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    will-change: transform, opacity, filter;
}

.modal.active .modal-content {
    transform: scale(1) translateY(0);
    opacity: 1;
    filter: blur(0px);
}



.modal-header h3 {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--color-text);
    margin: 0;
}

.modal-close {
    width: 40px;
    height: 40px;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.2) 0%,
        rgba(255, 255, 255, 0.1) 50%,
        rgba(255, 255, 255, 0.15) 100%);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: var(--color-text);
    cursor: pointer;
    transition: all var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 
        0 4px 16px rgba(0, 0, 0, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    will-change: transform;
    transform: translateZ(0);
}

.modal-close:hover {
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 0.1) 0%,
        rgba(255, 107, 0, 0.05) 50%,
        rgba(255, 107, 0, 0.08) 100%);
    color: var(--color-orange);
    transform: scale(1.1) rotate(90deg);
    box-shadow: 
        0 8px 24px rgba(255, 107, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
    border-color: rgba(255, 107, 0, 0.3);
}

.modal-body {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-xl);
    padding: 0 var(--space-xl) var(--space-xl);
    max-height: calc(90vh - 80px);
    overflow: hidden;
}

/* ===== ANIMACIONES ULTRA FLUIDAS DEL CONTENIDO ===== */

/* Resetear todos los elementos a estado invisible inicial */
.modal-header,
.modal-project-info,
.modal-gallery,
.gallery-item,
.gallery-text {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
    filter: blur(3px);
    transition: all 1.2s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* Animación escalonada con delays progresivos */
.modal.active .modal-header {
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.3s forwards;
}

.modal.active .modal-project-info {
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.6s forwards;
}

.modal.active .modal-gallery {
    animation: fadeInUp 1.2s cubic-bezier(0.165, 0.84, 0.44, 1) 0.9s forwards;
}

/* Galería con animaciones escalonadas */
.modal.active .gallery-item:nth-child(1) {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.2s forwards;
}

.modal.active .gallery-text:nth-child(2) {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.4s forwards;
}

.modal.active .gallery-item:nth-child(3) {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.6s forwards;
}

.modal.active .gallery-text:nth-child(4) {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.8s forwards;
}

.modal.active .gallery-item:nth-child(5) {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 2s forwards;
}

.modal.active .gallery-text:nth-child(6) {
    animation: fadeInUp 1s cubic-bezier(0.165, 0.84, 0.44, 1) 2.2s forwards;
}

/* Keyframe para animación ultra suave */
@keyframes fadeInUp {
    0% {
        opacity: 0;
        transform: translateY(40px) scale(0.95);
        filter: blur(3px);
    }
    100% {
        opacity: 1;
        transform: translateY(0) scale(1);
        filter: blur(0px);
    }
}

@keyframes featuredGlow {
    0% {
        box-shadow: 0 12px 40px rgba(255, 107, 0, 0.25), 
                    0 0 0 1px rgba(255, 107, 0, 0.1),
                    0 0 30px rgba(255, 107, 0, 0.15);
    }
    100% {
        box-shadow: 0 16px 50px rgba(255, 107, 0, 0.35), 
                    0 0 0 1px rgba(255, 107, 0, 0.2),
                    0 0 40px rgba(255, 107, 0, 0.25);
    }
}

/* Estilos base del modal-header */
.modal-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: var(--space-lg) var(--space-xl) var(--space-sm);
}

/* Estilos base del modal-image */
.modal-image {
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ===== NUEVA ESTRUCTURA DEL MODAL ===== */

/* Panel izquierdo - Información del proyecto */
.modal-project-info {
    padding-right: var(--space-lg);
    border-right: 1px solid rgba(255, 107, 0, 0.1);
}

.project-meta {
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

.project-title {
    margin-bottom: var(--space-md);
}

.project-title h2 {
    font-size: 3rem;
    font-weight: 900;
    color: var(--color-text);
    margin: 0 0 var(--space-sm) 0;
    line-height: 0.9;
    letter-spacing: -2px;
    text-transform: uppercase;
    font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, sans-serif;
    background: linear-gradient(135deg, var(--color-text) 0%, rgba(51, 51, 51, 0.8) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(0, 0, 0, 0.1);
    position: relative;
}

.project-title h2::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--color-orange), transparent);
    border-radius: 1px;
}

.project-year {
    display: inline-block;
    color: var(--color-text-light);
    font-size: var(--font-size-sm);
    font-weight: 400;
    margin-left: var(--space-sm);
}

.project-client h4,
.project-type h4 {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--color-text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0 0 var(--space-xs) 0;
}

.project-client p,
.project-type p {
    font-size: var(--font-size-lg);
    font-weight: 500;
    color: var(--color-text);
    margin: 0;
}

/* Panel derecho - Galería con scroll */
.modal-gallery {
    height: calc(90vh - 160px);
    overflow-y: auto;
    padding-right: var(--space-sm);
    scrollbar-width: thin;
    scrollbar-color: rgba(255, 107, 0, 0.3) transparent;
}

.modal-gallery::-webkit-scrollbar {
    width: 6px;
}

.modal-gallery::-webkit-scrollbar-track {
    background: transparent;
}

.modal-gallery::-webkit-scrollbar-thumb {
    background: rgba(255, 107, 0, 0.3);
    border-radius: 3px;
}

.modal-gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 107, 0, 0.5);
}

.gallery-item {
    margin-bottom: var(--space-lg);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    background: var(--color-white);
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 5/4;
    object-fit: cover;
}

.gallery-text {
    margin-bottom: var(--space-xl);
    padding: var(--space-lg);
    background: linear-gradient(135deg, 
        rgba(250, 250, 250, 0.8) 0%,
        rgba(255, 255, 255, 0.9) 100%);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 107, 0, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.gallery-text h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-sm) 0;
}

.gallery-text p {
    font-size: var(--font-size-base);
    color: var(--color-text-light);
    line-height: var(--line-height);
    margin: 0;
}

/* Estilos base del modal-info (mantener para compatibilidad) */
.modal-info h4 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--color-text);
    margin: 0 0 var(--space-md) 0;
}

.modal-info p {
    color: var(--color-text-light);
    line-height: var(--line-height);
    margin-bottom: var(--space-lg);
}

.tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
    margin-bottom: var(--space-lg);
}

.tech-tag {
    background: linear-gradient(135deg, 
        rgba(255, 107, 0, 0.1) 0%,
        rgba(255, 107, 0, 0.05) 100%);
    color: var(--color-orange);
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-md);
    font-size: var(--font-size-sm);
    font-weight: 500;
    border: 1px solid rgba(255, 107, 0, 0.2);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}

.modal-info ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.modal-info li {
    color: var(--color-text-light);
    padding: var(--space-xs) 0;
    position: relative;
    padding-left: var(--space-lg);
}

.modal-info li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--color-orange);
    font-weight: 600;
}

/* Responsive para el título del portafolio */
@media (max-width: 768px) {
    .portfolio-main-title {
        font-size: 3rem;
        letter-spacing: -2px;
    }
    
    .subtitle-line {
        font-size: 0.9rem;
    }
    
    .portfolio-title-container {
        margin-bottom: var(--space-2xl);
    }
}

@media (max-width: 480px) {
    .portfolio-main-title {
        font-size: 2.5rem;
        letter-spacing: -1px;
    }
    
    .subtitle-line {
        font-size: 0.8rem;
    }
    
    .contact-title {
        font-size: 2.5rem;
    }
    
    .contact-content {
        padding: var(--space-2xl) 0;
    }
    
    .contact-info {
        gap: var(--space-md);
    }
    
    .contact-left {
        display: none;
    }
    
    .contact-right {
        flex: 1;
        padding: var(--space-2xl) var(--space-md);
    }
    
    .contact-form-title {
        font-size: 2.5rem;
    }
    
    .form-input,
    .form-textarea {
        padding: var(--space-md);
    }
    
    .form-button {
        padding: var(--space-md);
    }
    
    .contact-details {
        gap: var(--space-xs);
    }
    
    .contact-label {
        font-size: var(--font-size-xs);
    }
    
    .contact-value {
        font-size: var(--font-size-sm);
    }
    
    .contact-title {
        font-size: 3rem;
    }
    
    .contact-section {
        flex-direction: column;
        min-height: auto;
    }
    
    .contact-left {
        display: none;
    }
    
    .contact-right {
        flex: 1;
        padding: var(--space-3xl) var(--space-lg);
    }
    
    .contact-right-content {
        max-width: 100%;
    }
    
    .contact-form-title {
        font-size: 3.5rem;
    }
    
    .footer-content {
        flex-direction: column;
        gap: var(--space-lg);
        text-align: center;
    }
    
    .footer-links {
        gap: var(--space-md);
        justify-content: center;
        flex-wrap: wrap;
    }
    
    .footer-image {
        width: 50px;
        height: 50px;
    }
    
    .footer-bottom .social-icon {
        width: 28px;
        height: 28px;
    }
}

/* Responsive para modales */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    .modal-body {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
        padding: var(--space-lg);
    }
    
    .modal-project-info {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid rgba(255, 107, 0, 0.1);
        padding-bottom: var(--space-lg);
    }
    
    .modal-gallery {
        max-height: 50vh;
    }
    
    .modal-header {
        padding: var(--space-lg);
    }
    
    .modal-header h3 {
        font-size: var(--font-size-lg);
    }
    
    .project-title h2 {
        font-size: 2rem;
        letter-spacing: -1px;
    }
}
