/* =============================================
   ESTILOS PRINCIPALES - HHVR CONSULTORÍA
   ============================================= */

/* Variables CSS */
:root {
    --primary: #1a202c;
    --secondary: #2d3748;
    --tertiary: #4a5568;
    --accent: #0891b2;
    --accent-light: #06b6d4;
    --accent-bright: #22d3ee;
    --text-primary: #ffffff;
    --text-secondary: #f1f5f9;
    --text-tertiary: #e2e8f0;
    --text-muted: #cbd5e0;
    --text-dark: #2d3748;
    --success: #10b981;
    --warning: #f59e0b;
    --border: rgba(241, 245, 249, 0.2);
    --border-light: rgba(241, 245, 249, 0.3);
    --card-bg: #000000;
    --card-hover: #000000;
    --gradient-primary: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --gradient-accent: linear-gradient(135deg, #0891b2 0%, #22d3ee 100%);
    --gradient-bg: linear-gradient(180deg, #1a202c 0%, #2d3748 50%, #1a202c 100%);
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.3);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.4);
    --glow: 0 0 20px rgba(34, 211, 238, 0.3);
    --max-width: 1200px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Reset y Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: var(--gradient-bg);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Patrón de fondo más luminoso */
body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(circle at 20% 30%, rgba(34, 211, 238, 0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 40% 90%, rgba(8, 145, 178, 0.06) 0%, transparent 40%),
        radial-gradient(circle at 70% 20%, rgba(102, 126, 234, 0.05) 0%, transparent 40%);
    pointer-events: none;
    z-index: 1;
}

/* Añadir puntos luminosos sutiles */
body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: 
        radial-gradient(2px 2px at 20px 30px, var(--accent-bright), transparent),
        radial-gradient(2px 2px at 40px 70px, var(--accent-light), transparent),
        radial-gradient(1px 1px at 90px 40px, var(--accent-bright), transparent),
        radial-gradient(1px 1px at 130px 80px, var(--accent-light), transparent);
    background-size: 200px 200px;
    opacity: 0.1;
    pointer-events: none;
    z-index: 1;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: rgba(26, 32, 44, 0.9);
    backdrop-filter: blur(15px);
    border-bottom: 2px solid var(--border-light);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-sm);
}

header.scrolled {
    background: rgba(26, 32, 44, 0.95);
    box-shadow: var(--shadow-lg);
    border-bottom: 3px solid var(--accent);
    border-bottom-style: solid;
    border-image: linear-gradient(90deg, transparent, var(--accent), var(--accent-bright), var(--accent), transparent) 1;
    transform: translateY(0) scale(1.02);
    animation: headerScrolled 0.3s ease-out;
}


@keyframes headerScrolled {
    0% {
        transform: translateY(0) scale(1);
    }
    50% {
        transform: translateY(0) scale(1.02);
    }
    100% {
        transform: translateY(0) scale(1);
    }
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    font-size: 1.25rem;
    font-weight: 700;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.logo:hover {
    transform: scale(1.1) translateX(5px);
    filter: drop-shadow(0 0 15px rgba(34, 211, 238, 0.4));
}

.logo::before {
    content: '';
    display: inline-block;
    background: url('preview-image.jpg') no-repeat center;
    background-size: contain;
    width: 50px;
    height: 25px;
    margin-right: 0.5rem;
    vertical-align: middle;
    transition: all 0.3s ease;
}

.logo:hover::before {
    transform: rotate(5deg) scale(1.1);
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
    position: relative;
}


.nav-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    display: block;
    overflow: hidden;
}

.nav-links a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.6s ease;
    z-index: -1;
}

.nav-links a:hover::before {
    left: 100%;
}

.nav-links a:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 12px rgba(34, 211, 238, 0.5);
    transform: translateY(-2px) scale(1.05);
    background: rgba(34, 211, 238, 0.08);
    border: 1px solid rgba(34, 211, 238, 0.2);
    box-shadow: 0 8px 25px rgba(34, 211, 238, 0.15);
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-light), var(--accent-bright));
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 15px rgba(34, 211, 238, 0.8);
    border-radius: 2px;
}

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

.nav-links a.active {
    color: var(--accent-bright);
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.3);
    transform: scale(1.02);
}

.nav-links a.active::after {
    width: 100%;
    background: var(--accent-bright);
}


.cta-button {
    background: var(--gradient-accent);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    box-shadow: var(--shadow-md);
    border: 1px solid var(--accent-light);
    position: relative;
    overflow: hidden;
}

.cta-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.6s ease;
}

.cta-button:hover::before {
    left: 100%;
}

.cta-button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        var(--shadow-xl), 
        var(--glow),
        0 0 30px rgba(34, 211, 238, 0.4);
    border-color: var(--accent-bright);
    background: linear-gradient(135deg, var(--accent-light) 0%, var(--accent-bright) 100%);
}

/* Hero Section */
.hero {
    padding: 120px 0 80px;
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
}

.hero-content {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

/* Centrado vertical del texto del hero respecto al panel de partículas */
.hero-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-height: 500px; /* coincide con la altura de #particles-js */
    z-index: 2;
    position: relative;
}

.hero-text h1 {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Acomodo controlado del nombre en el hero */
.hero-text h1.hero-name {
    font-size: clamp(1.6rem, 4vw, 2.6rem);
    line-height: 1.1;
}

.hero-name .main-title {
    display: block;
    font-size: clamp(1.2rem, 3vw, 1.9rem);
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--text-primary);
    text-align: center;
    background: linear-gradient(135deg, var(--text-primary), var(--accent-light));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-text .tagline {
    font-size: 1.5rem;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    font-weight: 300;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-secondary);
    margin-bottom: 2rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

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

.stat-card {
    text-align: center;
    padding: 1.5rem;
    background: var(--card-bg);
    border-radius: 12px;
    border: 1px solid var(--border-light);
    backdrop-filter: blur(15px);
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--card-hover);
    border-color: var(--accent);
    box-shadow: var(--shadow-lg), var(--glow);
    transform: translateY(-3px);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--accent-light);
    display: block;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    margin-top: 0.5rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.hero-visual {
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    z-index: 1;
}

#particles-js {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    right: 0;
    background: transparent;
}

/* =============================================
   LOGOTIPO SUPERPUESTO EN PARTICLES.JS
   ============================================= */
.hero-logo-overlay {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    pointer-events: auto;
}

.hero-logo-image {
    width: 280px;
    height: auto;
    opacity: 0.12;
    filter: blur(0.8px) brightness(1.2) saturate(1.1);
    transition: all 0.6s ease;
    animation: logoFloat 8s ease-in-out infinite;
    mix-blend-mode: screen;
}

.hero-logo-image:hover {
    opacity: 0.22;
    filter: blur(0.3px) brightness(1.4) saturate(1.3);
    transform: scale(1.02);
}

@keyframes logoFloat {
    0%, 100% {
        transform: translateY(0px);
        opacity: 0.12;
        filter: blur(0.8px) brightness(1.2);
    }
    25% {
        transform: translateY(-8px);
        opacity: 0.18;
        filter: blur(0.6px) brightness(1.3);
    }
    50% {
        transform: translateY(-12px);
        opacity: 0.22;
        filter: blur(0.4px) brightness(1.4);
    }
    75% {
        transform: translateY(-6px);
        opacity: 0.16;
        filter: blur(0.7px) brightness(1.25);
    }
}

/* =============================================
   ANIMACIONES PARA SECCIONES EXPERIENCIA Y TECNOLOGÍA
   ============================================= */

/* Animación sutil para banners panorámicos */
@keyframes bannerGlow {
    0%, 100% {
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
        transform: translateY(0px);
    }
    50% {
        box-shadow: 0 12px 40px rgba(6, 182, 212, 0.15);
        transform: translateY(-2px);
    }
}

@keyframes imageShimmer {
    0% {
        filter: brightness(0.75) contrast(1.2) saturate(0.6) hue-rotate(5deg) sepia(0.1);
    }
    50% {
        filter: brightness(0.85) contrast(1.3) saturate(0.8) hue-rotate(3deg) sepia(0.05);
    }
    100% {
        filter: brightness(0.75) contrast(1.2) saturate(0.6) hue-rotate(5deg) sepia(0.1);
    }
}

/* Animación para iconos de tech cards */
@keyframes iconFloat {
    0%, 100% {
        transform: translateY(0px) rotate(0deg);
    }
    25% {
        transform: translateY(-3px) rotate(1deg);
    }
    50% {
        transform: translateY(-5px) rotate(0deg);
    }
    75% {
        transform: translateY(-2px) rotate(-1deg);
    }
}

@keyframes iconGlow {
    0%, 100% {
        filter: drop-shadow(0 0 5px rgba(34, 211, 238, 0.3));
        transform: scale(1);
    }
    50% {
        filter: drop-shadow(0 0 12px rgba(34, 211, 238, 0.6));
        transform: scale(1.05);
    }
}

/* Clases para aplicar las animaciones */
.experience-banner {
    animation: bannerGlow 4s ease-in-out infinite;
    transition: transform 0.3s ease;
}

.experience-banner:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(6, 182, 212, 0.2);
}

.experience-banner img {
    animation: imageShimmer 6s ease-in-out infinite;
}

.ocr-banner {
    animation: bannerGlow 5s ease-in-out infinite;
    animation-delay: -1s;
    transition: transform 0.3s ease;
}

.ocr-banner:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 48px rgba(6, 182, 212, 0.2);
}

.ocr-banner img {
    animation: imageShimmer 7s ease-in-out infinite;
    animation-delay: -2s;
}

.tech-icon {
    animation: iconFloat 3s ease-in-out infinite;
    display: inline-block;
    transition: all 0.3s ease;
}

.tech-card:hover .tech-icon {
    animation: iconGlow 1.5s ease-in-out infinite;
}

/* Efecto hover mejorado para tech-cards */
.tech-card {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 20px 40px rgba(6, 182, 212, 0.15);
}

/* Delays escalonados para los iconos */
.tech-card:nth-child(1) .tech-icon { animation-delay: 0s; }
.tech-card:nth-child(2) .tech-icon { animation-delay: -0.5s; }
.tech-card:nth-child(3) .tech-icon { animation-delay: -1s; }
.tech-card:nth-child(4) .tech-icon { animation-delay: -1.5s; }
.tech-card:nth-child(5) .tech-icon { animation-delay: -2s; }
.tech-card:nth-child(6) .tech-icon { animation-delay: -2.5s; }
.tech-card:nth-child(7) .tech-icon { animation-delay: -3s; }
.tech-card:nth-child(8) .tech-icon { animation-delay: -3.5s; }

/* =============================================
   ESTILOS PARA VIDEO INTRODUCCIÓN EMPRESARIAL
   ============================================= */
.intro-video-section {
    position: relative;
    overflow: hidden;
}

.intro-video-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 20%, rgba(6, 182, 212, 0.08) 0%, transparent 40%),
        radial-gradient(circle at 80% 80%, rgba(34, 211, 238, 0.06) 0%, transparent 40%);
    pointer-events: none;
}

.intro-video-container {
    position: relative;
    z-index: 2;
}

.video-wrapper {
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.video-wrapper:hover {
    transform: translateY(-8px);
    box-shadow: 0 25px 80px rgba(6, 182, 212, 0.15);
    border-color: rgba(6, 182, 212, 0.4);
}

.video-wrapper video {
    transition: filter 0.3s ease;
}

.video-wrapper:hover video {
    filter: brightness(0.9) contrast(1.2) saturate(0.8) hue-rotate(8deg) sepia(0.05);
    opacity: 1;
}

.particles-overlay {
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    z-index: 10;
    pointer-events: none;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: rgba(6, 182, 212, 0.12);
    border: 1px solid var(--accent-light);
    border-radius: 50px;
    color: var(--text-secondary);
    font-weight: 600;
    animation: float 3s ease-in-out infinite;
    backdrop-filter: blur(8px);
    box-shadow: 0 0 15px rgba(6, 182, 212, 0.2);
    text-shadow: 0 0 8px rgba(6, 182, 212, 0.3);
}

.ai-badge::before {
    content: '🧠';
    font-size: 1.2rem;
    filter: drop-shadow(0 0 3px rgba(6, 182, 212, 0.4));
}

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

/* Secciones */
section {
    padding: 80px 0;
    position: relative;
    z-index: 2;
}

/* Separadores entre secciones */
section:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60%;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        var(--border-light) 20%, 
        var(--accent) 50%, 
        var(--border-light) 80%, 
        transparent 100%);
    border-radius: 1px;
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--accent-light) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
}

/* Cards de servicios */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.service-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 8px 32px rgba(0, 0, 0, 0.37),
        inset 0 1px 0 rgba(255, 255, 255, 0.05),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: var(--gradient-accent);
    transform: scaleX(0);
    transition: transform 0.3s ease;
    box-shadow: var(--glow);
    border-radius: 0 0 2px 2px;
}

.service-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(0, 0, 0, 0.5),
        0 0 30px rgba(34, 211, 238, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(34, 211, 238, 0.4);
    border-color: var(--accent-bright);
    background: var(--card-hover);
    backdrop-filter: blur(25px) saturate(200%);
    -webkit-backdrop-filter: blur(25px) saturate(200%);
}

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

.service-icon {
    width: 60px;
    height: 60px;
    background: var(--gradient-accent);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}

.service-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.service-description {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.service-features {
    list-style: none;
}

.service-features li {
    color: var(--text-tertiary);
    padding: 0.5rem 0;
    padding-left: 1.5rem;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.service-features li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--accent-bright);
    text-shadow: 0 0 4px rgba(34, 211, 238, 0.5);
}

.service-features li:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.25rem;
    left: 1.5rem;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

/* Experiencia Timeline */
.timeline {
    position: relative;
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 0;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 4px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        var(--accent) 10%, 
        var(--accent-bright) 50%, 
        var(--accent) 90%, 
        transparent 100%);
    transform: translateX(-50%);
    box-shadow: var(--glow);
    border-radius: 2px;
    border: 1px solid rgba(34, 211, 238, 0.3);
}

.timeline-item {
    position: relative;
    margin: 2rem 0;
    display: flex;
    align-items: center;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-content {
    flex: 1;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    margin: 0 2rem;
    backdrop-filter: blur(18px) saturate(160%);
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    transition: all 0.5s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 6px 24px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

.timeline-content:hover {
    transform: scale(1.03) translateY(-4px);
    border-color: var(--accent-bright);
    background: var(--card-hover);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 
        0 15px 40px rgba(0, 0, 0, 0.6),
        0 0 25px rgba(34, 211, 238, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(34, 211, 238, 0.3);
}

.timeline-dot {
    width: 20px;
    height: 20px;
    background: linear-gradient(135deg, var(--accent), var(--accent-bright));
    border-radius: 50%;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    box-shadow: var(--glow);
    border: 2px solid var(--accent-bright);
}

.timeline-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--accent-bright);
    margin-bottom: 0.5rem;
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.2);
}

.timeline-description {
    color: var(--text-secondary);
    line-height: 1.6;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Tecnología e IA */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.tech-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: all 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: 
        0 5px 20px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.03),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

.tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(34, 211, 238, 0.1), transparent);
    transition: left 0.6s ease;
}

.tech-card:hover {
    transform: translateY(-8px) scale(1.03) rotateY(5deg);
    border-color: var(--accent-bright);
    background: var(--card-hover);
    backdrop-filter: blur(20px) saturate(200%);
    -webkit-backdrop-filter: blur(20px) saturate(200%);
    box-shadow: 
        0 18px 50px rgba(0, 0, 0, 0.6),
        0 0 30px rgba(34, 211, 238, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 0 0 1px rgba(34, 211, 238, 0.5);
}

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

.tech-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    display: block;
    background: var(--gradient-accent);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.tech-name {
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.tech-name::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-light), 
        transparent);
}

.tech-description {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    padding-top: 0.5rem;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Galería de screenshots */
.tech-showcase {
    margin-top: 4rem;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 3rem;
    margin-top: 3rem;
}

.showcase-item {
    position: relative;
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    cursor: pointer;
    backdrop-filter: blur(18px) saturate(150%);
    -webkit-backdrop-filter: blur(18px) saturate(150%);
    box-shadow: 
        0 8px 28px rgba(0, 0, 0, 0.4),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

.showcase-item:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--accent-bright);
    backdrop-filter: blur(22px) saturate(180%);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    box-shadow: 
        0 25px 60px rgba(0, 0, 0, 0.6),
        0 0 40px rgba(34, 211, 238, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(34, 211, 238, 0.4);
}

.showcase-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.showcase-image::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(
        ellipse at center,
        transparent 30%,
        rgba(26, 32, 44, 0.15) 70%,
        rgba(26, 32, 44, 0.25) 100%
    );
    pointer-events: none;
    z-index: 1;
}

.showcase-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    transition: var(--transition);
    filter: 
        brightness(0.7) 
        contrast(1.1) 
        saturate(0.6) 
        hue-rotate(20deg) 
        sepia(0.15)
        opacity(0.85);
}

.showcase-item:hover .showcase-image img {
    transform: scale(1.05);
    filter: 
        brightness(0.8) 
        contrast(1.15) 
        saturate(0.75) 
        hue-rotate(15deg) 
        sepia(0.1)
        opacity(0.95);
}

.showcase-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(26, 32, 44, 0.3) 0%,
        rgba(6, 182, 212, 0.2) 30%, 
        rgba(34, 211, 238, 0.15) 60%,
        rgba(26, 32, 44, 0.4) 100%);
    opacity: 1;
    transition: var(--transition);
    mix-blend-mode: multiply;
}

.showcase-item:hover .showcase-overlay {
    background: linear-gradient(135deg, 
        rgba(26, 32, 44, 0.2) 0%,
        rgba(6, 182, 212, 0.25) 30%, 
        rgba(34, 211, 238, 0.2) 60%,
        rgba(26, 32, 44, 0.3) 100%);
    mix-blend-mode: overlay;
}

.showcase-content {
    padding: 1.5rem;
    position: relative;
}

.showcase-title {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.showcase-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--accent-bright));
    border-radius: 1px;
}

.showcase-description {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.showcase-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.tech-tag {
    padding: 0.25rem 0.75rem;
    background: rgba(6, 182, 212, 0.1);
    color: var(--accent-bright);
    font-size: 0.75rem;
    border-radius: 20px;
    border: 1px solid rgba(6, 182, 212, 0.2);
    font-weight: 500;
}

.showcase-zoom-icon {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(6, 182, 212, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--transition);
    backdrop-filter: blur(10px);
    z-index: 2;
}

.showcase-item:hover .showcase-zoom-icon {
    opacity: 1;
    transform: scale(1);
}

/* Modal para screenshots */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.9);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    backdrop-filter: blur(5px);
}

.modal-overlay.active {
    display: flex;
    animation: fadeIn 300ms ease;
}

.modal-content {
    max-width: 90vw;
    max-height: 90vh;
    position: relative;
    animation: scaleIn 300ms ease;
}

.modal-content img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: var(--shadow-xl);
    filter: 
        brightness(0.85) 
        contrast(1.05) 
        saturate(0.8) 
        hue-rotate(15deg) 
        sepia(0.1);
}

.modal-close {
    position: absolute;
    top: -15px;
    right: -15px;
    width: 40px;
    height: 40px;
    background: var(--accent);
    border-radius: 50%;
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: var(--transition);
}

.modal-close:hover {
    background: var(--accent-bright);
    transform: scale(1.1);
}

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

/* Testimonios */
.testimonials-container {
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    margin-bottom: 2rem;
    backdrop-filter: blur(16px) saturate(160%);
    -webkit-backdrop-filter: blur(16px) saturate(160%);
    position: relative;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.32, 1);
    box-shadow: 
        0 6px 20px rgba(0, 0, 0, 0.38),
        inset 0 1px 0 rgba(255, 255, 255, 0.04),
        0 0 0 1px rgba(255, 255, 255, 0.02);
}

.testimonial-card:hover {
    transform: translateY(-6px) scale(1.01);
    border-color: var(--accent);
    background: var(--card-hover);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    box-shadow: 
        0 16px 45px rgba(0, 0, 0, 0.55),
        0 0 25px rgba(34, 211, 238, 0.25),
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 0 0 1px rgba(34, 211, 238, 0.35);
}

.testimonial-card::before {
    content: '"';
    position: absolute;
    top: -10px;
    left: 20px;
    font-size: 4rem;
    color: var(--accent-bright);
    opacity: 0.4;
    text-shadow: 0 0 10px rgba(34, 211, 238, 0.3);
}

.testimonial-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 2rem;
    right: 2rem;
    height: 2px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-light) 30%, 
        var(--accent-bright) 50%, 
        var(--accent-light) 70%, 
        transparent);
    border-radius: 1px;
}

.testimonial-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--text-primary);
    margin-bottom: 1.5rem;
    font-style: italic;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

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

.author-avatar {
    width: 50px;
    height: 50px;
    background: var(--gradient-accent);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    color: white;
}

.author-info {
    flex: 1;
    position: relative;
    padding-left: 1rem;
}

.author-info::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 40px;
    background: linear-gradient(180deg, var(--accent), var(--accent-bright), var(--accent));
    border-radius: 2px;
    box-shadow: 0 0 6px rgba(34, 211, 238, 0.4);
}

.author-name {
    font-weight: 600;
    color: var(--text-primary);
}

.author-role {
    font-size: 0.9rem;
    color: var(--text-tertiary);
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

/* Contacto */
.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1000px;
    margin: 0 auto;
}

.contact-info {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: var(--transition);
}

.contact-info:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    background: var(--card-hover);
}

.contact-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--text-secondary);
    padding-bottom: 1rem;
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.contact-item:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 4rem;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, var(--border-light), transparent);
}

.contact-item-icon {
    width: 40px;
    height: 40px;
    background: var(--gradient-accent);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.contact-form {
    background: var(--card-bg);
    border: 1px solid var(--border-light);
    border-radius: 16px;
    padding: 2rem;
    backdrop-filter: blur(15px);
    transition: var(--transition);
}

.contact-form:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    background: var(--card-hover);
}

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

.form-group:not(:last-child)::after {
    content: '';
    position: absolute;
    bottom: -0.75rem;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--border-light) 30%, 
        var(--border-light) 70%, 
        transparent);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.75rem;
    background: rgba(26, 32, 44, 0.6);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 1rem;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-bright);
    box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.2), var(--glow);
    background: rgba(26, 32, 44, 0.8);
}

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

.form-submit {
    background: var(--gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    width: 100%;
}

.form-submit:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-xl), var(--glow);
}

/* Footer */
footer {
    background: rgba(26, 32, 44, 0.95);
    border-top: 3px solid;
    border-image: linear-gradient(90deg, transparent, var(--accent), var(--accent-bright), var(--accent), transparent) 1;
    padding: 3rem 0 2rem;
    text-align: center;
    backdrop-filter: blur(15px);
    position: relative;
}

footer::before {
    content: '';
    position: absolute;
    top: -3px;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--accent), var(--accent-bright), var(--accent), transparent);
    box-shadow: var(--glow);
}

.footer-content {
    max-width: 800px;
    margin: 0 auto;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    list-style: none;
    position: relative;
}

.footer-links::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 25%;
    right: 25%;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent, 
        var(--accent-light) 20%, 
        var(--accent-bright) 50%, 
        var(--accent-light) 80%, 
        transparent);
}

.footer-links li:not(:last-child) {
    position: relative;
}

.footer-links li:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -1rem;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: linear-gradient(180deg, transparent, var(--border-light), transparent);
}

.footer-links a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9rem;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--accent-bright);
    text-shadow: 0 0 8px rgba(34, 211, 238, 0.3);
}

.footer-text {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 2px solid var(--border-light);
    position: relative;
    text-shadow: 0 1px 1px rgba(0, 0, 0, 0.05);
}

.footer-text::before {
    content: '';
    position: absolute;
    top: -2px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--accent-light), transparent);
    border-radius: 1px;
}

/* Mobile menu */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 1.5rem;
    cursor: pointer;
}

/* iOS-specific optimizations */
@supports (-webkit-touch-callout: none) {
    /* iOS Safari specific styles */
    body {
        -webkit-overflow-scrolling: touch;
    }
    
    .service-card, .tech-card, .showcase-item, .timeline-content, .testimonial-card {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Fix iOS Safari backdrop-filter performance */
    .service-card, .tech-card, .showcase-item, .timeline-content, .testimonial-card {
        will-change: transform;
    }
}

/* Animaciones de entrada */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    animation: fadeIn 0.8s forwards;
}

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

.slide-in-left {
    opacity: 0;
    transform: translateX(-50px);
    animation: slideInLeft 0.8s forwards;
}

@keyframes slideInLeft {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.slide-in-right {
    opacity: 0;
    transform: translateX(50px);
    animation: slideInRight 0.8s forwards;
}

@keyframes slideInRight {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}