/* ============================================================
   CSS VARIABLES & RESET
   ============================================================ */
   :root {
    --color-primary: #0f172a;
    --color-secondary: #1e293b;
    --color-accent: #06b6d4;
    --color-accent2: #3b82f6;
    --color-accent3: #8b5cf6;
    --color-white: #ffffff;
    --color-slate-50: #f8fafc;
    --color-slate-100: #f1f5f9;
    --color-slate-200: #e2e8f0;
    --color-slate-300: #cbd5e1;
    --color-slate-400: #94a3b8;
    --color-slate-500: #64748b;
    --color-slate-600: #475569;
    --color-slate-700: #334155;
    --color-slate-800: #1e293b;
    --color-slate-900: #0f172a;
    --gradient-main: linear-gradient(135deg, #0f172a, #1e293b);
    --gradient-hero: linear-gradient(135deg, rgba(15, 23, 42, 0.7), rgba(30, 41, 59, 0.7));
    --shadow-sm: 0 1px 2px 0 rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -1px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -2px rgba(0,0,0,0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 10px 10px -5px rgba(0,0,0,0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0,0,0,0.25);
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
    --font-serif: 'Playfair Display', Georgia, serif;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-sans);
    background: var(--color-white);
    color: var(--color-slate-900);
    line-height: 1.6;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ============================================================
   VIDEO GLOBAL – RESPONSIVE
   ============================================================ */
video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover; /* cubre el contenedor sin deformarse */
}

a {
    text-decoration: none;
    color: inherit;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255,255,255,0.5);
    box-shadow: 0 4px 30px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
    flex-wrap: wrap;
}

.header-brand {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.logo-wrapper {
    background-color: #ffffff;
    padding: 6px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.logo-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.logo-badge {
    position: absolute;
    top: -4px;
    right: -4px;
    width: 1rem;
    height: 1rem;
    background: var(--gradient-main);
    border-radius: 50%;
    animation: pulse-badge 2s infinite;
    border: 2px solid white;
}

@keyframes pulse-badge {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.2); }
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    background: var(--gradient-main);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--color-slate-600);
    letter-spacing: 0.05em;
}

.main-nav {
    display: none;
}

@media (min-width: 1024px) {
    .main-nav {
        display: block;
    }
}

.nav-list {
    display: flex;
    gap: 2.5rem;
}

.nav-link {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-slate-700);
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s ease;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--gradient-main);
    transition: width 0.4s ease;
}

.nav-link:hover {
    color: var(--color-slate-900);
}

.nav-link:hover::after {
    width: 100%;
}

.btn-login {
    display: none;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-main);
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
}

@media (min-width: 1024px) {
    .btn-login {
        display: inline-flex;
    }
}

.btn-login:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.mobile-menu-toggle {
    display: flex;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

@media (min-width: 1024px) {
    .mobile-menu-toggle {
        display: none;
    }
}

.hamburger {
    width: 1.5rem;
    height: 2px;
    background: var(--color-slate-900);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.mobile-nav {
    display: none;
    background: white;
    padding: 1.5rem;
    border-top: 1px solid var(--color-slate-200);
}

.mobile-nav.open {
    display: block;
}

.mobile-nav-list {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.mobile-nav-link {
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-slate-700);
    transition: color 0.3s ease;
}

.mobile-nav-link:hover {
    color: var(--color-slate-900);
}

.btn-login-mobile {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: var(--gradient-main);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
}

/* ============================================================
   HERO
   ============================================================ */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 5rem;
    overflow: hidden;
}

.hero-video-wrapper {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden; /* asegura que el video no se desborde */
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 59, 40, 0.15);
    backdrop-filter: blur(1px) brightness(1.1);
    -webkit-backdrop-filter: blur(1px) brightness(1.1);
    z-index: 10;
}

.video-control {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    z-index: 30;
    width: 3.5rem;
    height: 3.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255,255,255,0.2);
    color: white;
    font-size: 1.25rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.video-control:hover {
    background: rgba(255,255,255,0.2);
    transform: scale(1.05);
}

.hero-content {
    position: relative;
    z-index: 20;
    text-align: center;
    max-width: 1200px;
    padding: 0 1.5rem;
    width: 100%;
}

.hero-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.hero-step {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    width: 100%;
}

.hero-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.hero-step.hidden {
    opacity: 0;
    transform: translateY(1.25rem);
    pointer-events: none;
}

.hero-badge {
    display: inline-block;
    padding: 0.5rem 2rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 9999px;
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    box-shadow: var(--shadow-lg);
}

.hero-title {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 900;
    color: white;
    text-shadow: 0 4px 30px rgba(0,0,0,0.3);
    line-height: 1.1;
}

.hero-subtitle {
    font-size: clamp(2.5rem, 10vw, 5rem);
    font-weight: 900;
    background: linear-gradient(to right, #67e8f9, #93c5fd, #5eead4);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 4px 30px rgba(0,0,0,0.2);
    line-height: 1.1;
}

.hero-description {
    font-size: clamp(1rem, 2vw, 1.5rem);
    color: white;
    max-width: 800px;
    margin: 0 auto;
    font-weight: 500;
    text-shadow: 0 2px 20px rgba(0,0,0,0.3);
}

.hero-description strong {
    font-weight: 700;
    color: #bae6fd;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
}

.btn-large {
    padding: 1rem 2.5rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: white;
    color: var(--color-slate-900);
    box-shadow: var(--shadow-2xl);
}

.btn-primary:hover {
    transform: scale(1.05);
    background: var(--color-slate-100);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
    backdrop-filter: blur(4px);
}

.btn-outline:hover {
    background: rgba(255,255,255,0.1);
    transform: scale(1.05);
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
}

@media (min-width: 640px) {
    .hero-stats {
        grid-template-columns: repeat(4, 1fr);
    }
}

.stat-item {
    text-align: center;
    padding: 1.5rem 1rem;
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(8px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255,255,255,0.2);
    transition: all 0.5s ease;
    box-shadow: var(--shadow-lg);
}

.stat-item.active {
    transform: scale(1.05);
    background: rgba(255,255,255,0.2);
}

.stat-value {
    font-size: clamp(1.5rem, 4vw, 2.5rem);
    font-weight: 900;
    color: white;
    display: block;
    text-shadow: 0 2px 10px rgba(0,0,0,0.2);
}

.stat-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: white;
    letter-spacing: 0.05em;
}

.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 20;
    width: 2rem;
    height: 3rem;
    border: 2px solid rgba(255,255,255,0.4);
    border-radius: 9999px;
    display: flex;
    justify-content: center;
    padding: 0.5rem;
}

.scroll-dot {
    width: 0.25rem;
    height: 0.75rem;
    background: rgba(255,255,255,0.7);
    border-radius: 9999px;
    animation: bounce 1.5s infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-0.5rem); }
}

/* ============================================================
   SECTIONS GENERAL
   ============================================================ */
.section {
    padding: 5rem 0;
}

@media (min-width: 1024px) {
    .section {
        padding: 8rem 0;
    }
}

.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-tag {
    display: block;
    font-weight: 700;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--color-slate-600);
    margin-bottom: 0.75rem;
}

.section-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: var(--color-slate-900);
    margin-bottom: 1rem;
    line-height: 1.2;
}

.section-subtitle {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: var(--color-slate-600);
    max-width: 700px;
    margin: 0 auto;
}

/* ============================================================
   SERVICES
   ============================================================ */
.services {
    background: linear-gradient(to bottom, var(--color-slate-50), white);
}

.services-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .services-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .services-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.service-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.service-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-2xl);
}

/* ========== VIDEO RESPONSIVE EN SERVICIOS ========== */
.service-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;      /* relación de aspecto 16:9 */
    overflow: hidden;
    background: #1e293b;       /* color de fondo mientras carga */
}

.service-video, .service-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.service-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.6), transparent);
}

.service-card-title {
    position: absolute;
    bottom: 1.5rem;
    left: 1.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.service-body {
    padding: 1.5rem;
}

.service-desc {
    color: var(--color-slate-600);
    margin-bottom: 1rem;
    line-height: 1.7;
}

.service-tech {
    font-size: 0.875rem;
    color: var(--color-slate-500);
    margin-bottom: 1rem;
}

.service-badge {
    display: inline-block;
    padding: 0.25rem 1rem;
    border-radius: 9999px;
    font-weight: 600;
    font-size: 0.75rem;
    color: white;
    margin-bottom: 1rem;
}

.gradient-blue { background: linear-gradient(135deg, #2563eb, #06b6d4); }
.gradient-purple { background: linear-gradient(135deg, #7c3aed, #3b82f6); }
.gradient-emerald { background: linear-gradient(135deg, #059669, #06b6d4); }
.gradient-orange { background: linear-gradient(135deg, #ea580c, #ec4899); }
.gradient-violet { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }
.gradient-pink { background: linear-gradient(135deg, #ec4899, #f97316); }

.service-link {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--color-slate-700);
    transition: all 0.3s ease;
}

.service-link:hover {
    color: var(--color-slate-900);
}

.service-link i {
    transition: transform 0.3s ease;
}

.service-link:hover i {
    transform: translateX(4px);
}

/* ============================================================
   EXPERTISE
   ============================================================ */
.expertise {
    background: white;
}

.expertise-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .expertise-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.expertise-card {
    background: var(--color-slate-50);
    border-radius: var(--radius-xl);
    padding: 2rem 1.5rem;
    border: 1px solid var(--color-slate-200);
    transition: all 0.3s ease;
    text-align: center;
}

.expertise-card:hover {
    border-color: var(--color-slate-300);
    box-shadow: var(--shadow-lg);
}

.expertise-icon {
    margin: 0 auto 1.5rem;
    width: 6rem;
    height: 6rem;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: var(--radius-lg);
}

.expertise-icon img {
    width: 4rem;
    height: 4rem;
    object-fit: contain;
}

.expertise-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 1.5rem;
}

.expertise-list {
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.expertise-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    font-weight: 500;
    color: var(--color-slate-700);
}

.expertise-dot {
    display: inline-block;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    margin-top: 0.5rem;
    flex-shrink: 0;
}

.amber { background: linear-gradient(135deg, #f59e0b, #d97706); }
.blue { background: linear-gradient(135deg, #3b82f6, #06b6d4); }
.purple { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

/* ============================================================
   PROJECTS
   ============================================================ */
.projects {
    background: var(--color-slate-50);
}

.projects-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
}

@media (min-width: 768px) {
    .projects-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .projects-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.project-card {
    background: white;
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    transition: all 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.project-card:hover {
    transform: translateY(-0.5rem);
    box-shadow: var(--shadow-2xl);
}

/* ========== VIDEO RESPONSIVE EN PROYECTOS ========== */
.project-media {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #1e293b;
}

.project-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.project-media-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
}

.project-category {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.25rem 1rem;
    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(4px);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 700;
    color: var(--color-slate-800);
}

.project-body {
    padding: 1.5rem;
}

.project-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.75rem;
}

.project-desc {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.project-tag {
    padding: 0.15rem 0.75rem;
    background: var(--color-slate-100);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-slate-700);
}

.project-result {
    font-weight: 600;
    color: #059669;
}

/* ============================================================
   TEAM
   ============================================================ */
.team {
    background: white;
}

.team-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.team-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: var(--radius-xl);
    background: var(--color-slate-50);
    transition: all 0.3s ease;
}

.team-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
}

.team-avatar {
    width: 7.5rem;
    height: 7.5rem;
    border-radius: 50%;
    overflow: hidden;
    margin: 0 auto 1rem;
    background: var(--color-slate-200);
    border: 4px solid white;
    box-shadow: var(--shadow-md);
}

.team-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.team-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.25rem;
}

.team-role {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-slate-600);
    margin-bottom: 0.75rem;
}

.team-bio {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    line-height: 1.6;
}

/* ============================================================
   AI TECHNOLOGY
   ============================================================ */
.ai-section {
    position: relative;
    background: var(--color-slate-900);
    overflow: hidden;
    padding: 5rem 0;
}

.ai-background {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.ai-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.8;
}

.ai-overlay {
    position: absolute;
    inset: 0;
    background: rgba(5, 59, 40, 0.2);
    backdrop-filter: blur(1px) brightness(1.2);
    -webkit-backdrop-filter: blur(1px) brightness(1.2);
}

.ai-container {
    position: relative;
    z-index: 10;
}

.ai-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
}

@media (min-width: 1024px) {
    .ai-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.ai-content {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.ai-step {
    opacity: 0;
    transform: translateY(1.25rem);
    transition: all 0.8s cubic-bezier(0.22, 1, 0.36, 1);
}

.ai-step.visible {
    opacity: 1;
    transform: translateY(0);
}

.ai-step.hidden {
    opacity: 0;
    transform: translateY(1.25rem);
    pointer-events: none;
}

.ai-badge {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #22d3ee;
}

.ai-title {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 900;
    color: white;
    line-height: 1.2;
    margin: 0;
}

.ai-desc {
    font-size: 1.125rem;
    color: white;
    line-height: 1.7;
    opacity: 0.9;
}

.ai-feature {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.ai-icon {
    width: 3rem;
    height: 3rem;
    border-radius: var(--radius-lg);
    background: rgba(6, 182, 212, 0.2);
    border: 1px solid rgba(6, 182, 212, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: #22d3ee;
    flex-shrink: 0;
}

.ai-feature-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: white;
    margin: 0 0 0.25rem;
}

.ai-feature-desc {
    font-size: 0.875rem;
    color: rgba(255,255,255,0.8);
    margin: 0;
}

.btn-ai {
    background: linear-gradient(to right, #06b6d4, #3b82f6);
    color: white;
    padding: 1rem 2.5rem;
    border-radius: var(--radius-lg);
    font-weight: 700;
    font-size: 1rem;
    box-shadow: 0 10px 30px rgba(6, 182, 212, 0.3);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    border: none;
    cursor: pointer;
}

.btn-ai:hover {
    transform: scale(1.05);
    box-shadow: 0 15px 40px rgba(6, 182, 212, 0.4);
}

.ai-visual {
    position: relative;
}

.ai-dashboard-wrapper {
    position: relative;
}

.ai-dashboard {
    background: rgba(30, 41, 59, 0.5);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-xl);
    padding: 0.75rem;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: var(--shadow-2xl);
}

.ai-dashboard-img {
    width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    display: block;
}

.ai-glow {
    position: absolute;
    inset: -1.5rem;
    background: radial-gradient(circle at center, rgba(6, 182, 212, 0.15), transparent 70%);
    border-radius: var(--radius-xl);
    z-index: -1;
    filter: blur(40px);
}

/* ============================================================
   CONTACT
   ============================================================ */
.contact {
    background: white;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .contact-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.contact-card {
    text-align: center;
    padding: 2rem 1.5rem;
    background: var(--color-slate-50);
    border-radius: var(--radius-xl);
    transition: all 0.3s ease;
}

.contact-card:hover {
    box-shadow: var(--shadow-lg);
}

.contact-icon {
    width: 5rem;
    height: 5rem;
    border-radius: var(--radius-lg);
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
    font-size: 2rem;
    color: var(--color-slate-600);
}

.contact-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-slate-900);
    margin-bottom: 0.5rem;
}

.contact-desc {
    font-size: 0.875rem;
    color: var(--color-slate-600);
    margin-bottom: 1rem;
}

.contact-link {
    font-weight: 600;
    color: var(--color-slate-700);
    transition: color 0.3s ease;
}

.contact-link:hover {
    color: var(--color-slate-900);
}

.contact-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.btn-secondary {
    background: var(--color-slate-100);
    color: var(--color-slate-700);
    padding: 0.75rem 2rem;
    border-radius: var(--radius-lg);
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-secondary:hover {
    background: var(--color-slate-200);
    box-shadow: var(--shadow-md);
}

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
    background: var(--color-slate-900);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 3rem;
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr;
    }
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.footer-logo-wrapper {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.footer-logo-img {
    width: 2.5rem;
    height: 2.5rem;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1.5rem;
    font-weight: 900;
    display: block;
}

.footer-brand-tagline {
    font-size: 0.75rem;
    font-weight: 600;
    color: #22d3ee;
    display: block;
}

.footer-about {
    color: var(--color-slate-300);
    line-height: 1.7;
    font-size: 0.9375rem;
    max-width: 400px;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    font-size: 0.875rem;
    color: var(--color-slate-300);
}

.footer-contact span {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.footer-contact i {
    width: 1.25rem;
    color: #22d3ee;
}

.footer-heading {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-links ul {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-links a {
    color: var(--color-slate-300);
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #22d3ee;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-slate-700);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

.footer-social {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.social-label {
    font-weight: 600;
    font-size: 0.875rem;
    color: var(--color-slate-300);
}

.footer-social a {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: var(--radius-lg);
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-slate-300);
    transition: all 0.3s ease;
    font-size: 1rem;
}

.footer-social a:hover {
    background: rgba(255,255,255,0.1);
    color: white;
    transform: scale(1.1);
}

.footer-legal {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--color-slate-400);
    text-align: center;
}

@media (min-width: 768px) {
    .footer-legal {
        text-align: right;
    }
}

.footer-extra {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding-top: 1.5rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--color-slate-700);
    font-size: 0.75rem;
    color: var(--color-slate-400);
}

@media (min-width: 768px) {
    .footer-extra {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-policies {
    display: flex;
    gap: 1.5rem;
}

.footer-policies a {
    color: var(--color-slate-400);
    transition: color 0.3s ease;
}

.footer-policies a:hover {
    color: #22d3ee;
}

/* ============================================================
   RESPONSIVE TWEAKS & UTILITIES
   ============================================================ */
@media (max-width: 640px) {
    .hero-title, .hero-subtitle {
        font-size: 2.5rem;
    }
    .btn-large {
        padding: 0.75rem 1.5rem;
        font-size: 1rem;
    }
    .service-card-title {
        font-size: 1rem;
    }

    /* ===== VIDEOS MÁS ALTOS EN MÓVIL ===== */
    .service-media,
    .project-media {
        aspect-ratio: 4 / 3; /* más alto para mejor visualización vertical */
    }
}

/* ============================================================
   ANIMATIONS (particles, etc.)
   ============================================================ */
.particles-container {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 5;
}

.particle {
    position: absolute;
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    opacity: 0.2;
    animation: float-particle 15s ease-in-out infinite;
}

@keyframes float-particle {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}