@import url('https://fonts.googleapis.com/css2?family=Inter:wght@100;200;300;400;500;600;700;800;900&display=swap');

/* Import responsive styles */
@import url('responsive.css');

/* ===============================================
   MUVA TEC - CSS PRINCIPAL
   =============================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Quitar overlay/blur que aclara demasiado el contenido en glass */
.section.bg-gradient-glass::before {
    background: transparent;
    backdrop-filter: none;
}

/* Reset de efectos de texto que pueden volverlo casi transparente */
.section.bg-gradient-glass *,
.section.bg-gradient-glass .card .card-body * {
    -webkit-text-fill-color: initial !important;
    -webkit-background-clip: initial !important;
    background-clip: initial !important;
    text-shadow: none !important;
}

:root {
    /* === CONFIGURACIÓN PERSONALIZABLE === */
    --contact-phone: "+52 55 1234 5678";
    --contact-email: "contacto@muvatech.mx";
    --contact-address: "Av. Revolución 1425, Piso 8, CDMX";
    --contact-website: "www.muvatech.mx";
    
    /* === PALETA DE COLORES MUVA TEC === */
    /* Colores Principales */
    --primary: #3182CE;
    --primary-light: #4299E1;
    --primary-dark: #1A365D;
    --secondary: #1A365D;
    --accent: #38B2AC;
    --accent-light: #4FD1C7;
    --accent-dark: #2C7A7B;
    
    /* Colores Neutros */
    --neutral: #718096;
    --neutral-light: #A0AEC0;
    --neutral-dark: #4A5568;
    --light: #E2E8F0;
    --lighter: #F7FAFC;
    --white: #FFFFFF;
    --black: #1A202C;
    
    /* Colores de Estado */
    --success: #48BB78;
    --warning: #ED8936;
    --error: #E53E3E;
    --info: var(--primary);
    
    /* === TEMA CLARO (DEFAULT) === */
    --bg-primary: linear-gradient(45deg, #667eea, #764ba2, #3182CE, #38B2AC, #667eea);
    --bg-secondary: rgba(255, 255, 255, 0.05);
    --bg-card: rgba(255, 255, 255, 0.08);
    --bg-glass: rgba(255, 255, 255, 0.1);
    --text-primary: #FFFFFF;
    --text-secondary: rgba(255, 255, 255, 0.8);
    --text-muted: rgba(255, 255, 255, 0.6);
    --border-color: rgba(255, 255, 255, 0.18);
    --shadow-color: rgba(31, 38, 135, 0.37);
    
    /* Glass Morphism */
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: 1px solid rgba(255, 255, 255, 0.18);
    --glass-backdrop: blur(20px);
    --glass-bg-light: rgba(255, 255, 255, 0.15);
    --glass-bg-dark: rgba(255, 255, 255, 0.05);
    /* Aliases/compatibilidad */
    --border-glass: 1px solid rgba(255, 255, 255, 0.18);
    
    /* Sombras */
    --shadow-sm: 0 8px 32px rgba(31, 38, 135, 0.37);
    --shadow-md: 0 12px 40px rgba(31, 38, 135, 0.45);
    --shadow-lg: 0 20px 60px rgba(31, 38, 135, 0.55);
    --shadow-xl: 0 30px 80px rgba(31, 38, 135, 0.65);
    --shadow-glow: 0 0 40px rgba(49, 130, 206, 0.3);
    --shadow-glow-accent: 0 0 40px rgba(56, 178, 172, 0.3);
    /* Alias */
    --shadow-medium: 0 12px 40px rgba(31, 38, 135, 0.45);
    
    /* Tipografía */
    --font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-xs: 0.75rem;
    --font-sm: 0.875rem;
    --font-base: 1rem;
    --font-lg: 1.125rem;
    --font-xl: 1.25rem;
    --font-2xl: 1.5rem;
    --font-3xl: 1.875rem;
    --font-4xl: 2.25rem;
    --font-5xl: 3rem;
    --font-6xl: 3.75rem;
    
    /* Espaciado */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;
    
    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;
    --radius-full: 9999px;
    
    /* Transiciones */
    --transition-fast: 0.15s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
    --transition-bounce: 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    /* Tonos claros adicionales */
    --success-light: #68D391;
    --warning-light: #F6AD55;
    --error-light: #FC8181;
}

/* TEMA OSCURO REMOVIDO - Solo tema claro */

/* ===============================================
   BACKGROUND ANIMADO
   =============================================== */

.bg-animation {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: linear-gradient(45deg, #667eea, #764ba2, #3182CE, #38B2AC, #667eea);
    background-size: 300% 300%;
    animation: gradientShift 20s ease infinite;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 0%; }
    50% { background-position: 100% 100%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

.bg-animation::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        radial-gradient(circle at 20% 20%, rgba(49, 130, 206, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(56, 178, 172, 0.2) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(118, 75, 162, 0.15) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(237, 137, 54, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 60% 40%, rgba(72, 187, 120, 0.1) 0%, transparent 50%);
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.8; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.1); }
}

/* FLOATING ELEMENTS */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

.floating-shape {
    position: absolute;
    opacity: 0.1;
    animation: float 8s ease-in-out infinite;
}

.floating-shape:nth-child(1) {
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.floating-shape:nth-child(2) {
    top: 20%;
    right: 15%;
    animation-delay: 2s;
}

.floating-shape:nth-child(3) {
    bottom: 30%;
    left: 20%;
    animation-delay: 4s;
}

.floating-shape:nth-child(4) {
    top: 60%;
    right: 25%;
    animation-delay: 6s;
}

.floating-shape:nth-child(5) {
    bottom: 10%;
    right: 10%;
    animation-delay: 1s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0px) translateX(0px) rotate(0deg) scale(1);
    }
    25% {
        transform: translateY(-15px) translateX(10px) rotate(90deg) scale(1.1);
    }
    50% {
        transform: translateY(-30px) translateX(-5px) rotate(180deg) scale(0.9);
    }
    75% {
        transform: translateY(-15px) translateX(-10px) rotate(270deg) scale(1.1);
    }
}

/* ===============================================
   ESTILOS BASE
   =============================================== */

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    line-height: 1.6;
    color: #FFFFFF;
    background: var(--bg-primary);
    overflow-x: hidden;
    font-feature-settings: 'liga' 1, 'kern' 1;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    min-height: 100vh;
}

/* === TIPOGRAFÍA === */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: var(--space-4);
    color: #FFFFFF;
}

h1 { font-size: var(--font-5xl); }
h2 { font-size: var(--font-4xl); }
h3 { font-size: var(--font-3xl); }
h4 { font-size: var(--font-2xl); }
h5 { font-size: var(--font-xl); }
h6 { font-size: var(--font-lg); }

p {
    margin-bottom: var(--space-4);
    color: rgba(255, 255, 255, 0.9);
}

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

a:hover {
    color: #FFFFFF;
}

/* === LAYOUT === */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-4);
}

.container-fluid {
    width: 100%;
    padding: 0 var(--space-4);
}

.section {
    padding: var(--space-20) 0;
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--glass-bg-dark);
    backdrop-filter: blur(10px);
    pointer-events: none;
    z-index: -1;
}

.section:nth-child(even)::before {
    background: var(--glass-bg);
}

.section-sm {
    padding: var(--space-12) 0;
}

/* === GRID SYSTEM === */
.grid {
    display: grid;
    gap: var(--space-6);
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* === FLEXBOX UTILITIES === */
.flex {
    display: flex;
}

.flex-col {
    flex-direction: column;
}

.items-center {
    align-items: center;
}

.justify-center {
    justify-content: center;
}

.justify-between {
    justify-content: space-between;
}

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

/* ===============================================
   COMPONENTES
   =============================================== */

/* === BUTTON SYSTEM (del example.html) === */
.btn-modern {
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn-modern::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all var(--transition-base);
    transform: translate(-50%, -50%);
}

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

.btn-modern:active {
    transform: scale(0.98);
}

.btn-primary-modern {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-secondary-modern {
    background: var(--bg-glass);
    backdrop-filter: blur(10px);
    color: var(--white);
    border: var(--border-glass);
}

.btn-success-modern {
    background: linear-gradient(45deg, var(--success), var(--success-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(72, 187, 120, 0.3);
}

.btn-warning-modern {
    background: linear-gradient(45deg, var(--warning), var(--warning-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(237, 137, 54, 0.3);
}

.btn-error-modern {
    background: linear-gradient(45deg, var(--error), var(--error-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(229, 62, 62, 0.3);
}

.btn-outline-modern {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-outline-modern:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-ghost-modern {
    background: transparent;
    color: var(--white);
    border: none;
}

.btn-ghost-modern:hover {
    background: var(--bg-glass);
}

/* BUTTON SIZES */
.btn-xs { padding: var(--space-1) var(--space-3); font-size: var(--font-xs); }
.btn-sm { padding: var(--space-2) var(--space-4); font-size: var(--font-sm); }
.btn-lg { padding: var(--space-5) var(--space-8); font-size: var(--font-lg); }
.btn-xl { padding: var(--space-6) var(--space-10); font-size: var(--font-xl); }

/* HERO BUTTONS (específicos del hero) */
.btn-hero-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--white);
    padding: var(--space-5) var(--space-10);
    border-radius: var(--radius-2xl);
    font-size: var(--font-lg);
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    box-shadow: var(--shadow-glow);
    transition: all var(--transition-bounce);
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.btn-hero-primary::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;
}

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

.btn-hero-primary:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 16px 50px rgba(49, 130, 206, 0.6);
}

.btn-hero-secondary {
    background: var(--bg-glass);
    backdrop-filter: blur(20px);
    color: var(--white);
    padding: var(--space-5) var(--space-10);
    border-radius: var(--radius-2xl);
    font-size: var(--font-lg);
    font-weight: 600;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: var(--space-3);
    border: var(--border-glass);
    transition: all var(--transition-bounce);
}

.btn-hero-secondary:hover {
    background: var(--bg-glass-light);
    transform: translateY(-4px) scale(1.02);
    box-shadow: var(--shadow-medium);
}

/* Compatibilidad con botones antiguos */
.btn {
    padding: var(--space-4) var(--space-6);
    border: none;
    border-radius: var(--radius-lg);
    font-size: var(--font-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transition: all var(--transition-base);
    transform: translate(-50%, -50%);
}

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

.btn-primary {
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: var(--white);
    box-shadow: var(--shadow-glow);
}

.btn-secondary {
    background: linear-gradient(45deg, var(--secondary), var(--primary-dark));
    color: var(--white);
    border: none;
    box-shadow: var(--shadow-glow);
}

.btn-outline {
    background: transparent;
    color: var(--primary-light);
    border: 2px solid var(--primary);
}

.btn-accent {
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    color: var(--white);
    box-shadow: 0 4px 20px rgba(56, 178, 172, 0.3);
}

.btn-white {
    background: rgba(255, 255, 255, 0.95);
    color: var(--primary);
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 20px rgba(255, 255, 255, 0.3);
}

.btn-outline-white {
    background: transparent;
    color: var(--white);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

.btn-outline-white:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: var(--white);
}

/* === TARJETAS === */
.card {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
    border: var(--glass-border);
    transition: all var(--transition-base);
    overflow: hidden;
    position: relative;
}

.card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    border-radius: inherit;
    pointer-events: none;
}

.card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-xl);
    background: var(--glass-bg-light);
}

.card-glass {
    background: var(--glass-bg);
    backdrop-filter: var(--glass-backdrop);
    border: var(--glass-border);
}

.card-header {
    padding: var(--space-6);
    border-bottom: 1px solid var(--border-color);
}

.card-body {
    padding: var(--space-6);
}

.card-footer {
    padding: var(--space-6);
    border-top: 1px solid var(--border-color);
    background: var(--bg-secondary);
}

/* === HEADER/NAVEGACIÓN (del example.html) === */
.header, .navbar {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    padding: var(--space-4) 0;
    transition: all var(--transition-base);
}

.header.scrolled, .navbar-scrolled {
    background: rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: var(--border-glass);
    padding: var(--space-3) 0;
}

/* Mejorar contraste del header al hacer scroll */
.header.scrolled .logo-container,
.navbar-scrolled .navbar-brand {
    color: #FFFFFF;
    text-shadow: none;
}

.header.scrolled .nav-links a,
.navbar-scrolled .nav-link {
    color: rgba(255, 255, 255, 0.9);
}

.header.scrolled .nav-links a:hover,
.navbar-scrolled .nav-link:hover {
    color: #FFFFFF;
}

.nav, .navbar-container {
    max-width: 1400px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 var(--space-8);
}

.logo-container, .navbar-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    transition: transform var(--transition-bounce);
    cursor: pointer;
    text-decoration: none;
    font-size: var(--font-2xl);
    font-weight: 800;
    color: var(--white);
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
    letter-spacing: -0.02em;
}

.logo-container:hover, .navbar-brand:hover {
    transform: scale(1.05) rotate(1deg);
}

.nav-links, .navbar-nav {
    display: flex;
    gap: var(--space-8);
    list-style: none;
    margin: 0;
}

.nav-links a, .nav-link {
    text-decoration: none;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 500;
    font-size: var(--font-base);
    transition: all var(--transition-base);
    position: relative;
    padding: var(--space-2) 0;
}

.nav-links a::before, .nav-link::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent), var(--primary));
    transition: width var(--transition-base);
    border-radius: var(--radius-full);
}

.nav-links a::after, .nav-link::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: var(--bg-glass);
    border-radius: 50%;
    transition: all var(--transition-base);
    transform: translate(-50%, -50%);
    z-index: -1;
}

.nav-links a:hover, .nav-link:hover {
    color: var(--white);
    transform: translateY(-2px);
}

.nav-links a:hover::before, .nav-link:hover::before,
.nav-links a.active::before, .nav-link.active::before {
    width: 100%;
}

.nav-links a:hover::after, .nav-link:hover::after {
    width: 120%;
    height: 120%;
}

.nav-links a.active, .nav-link.active {
    color: var(--white);
}

/* TOGGLE TEMA REMOVIDO */

/* === HERO SECTION === */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    background: var(--bg-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><defs><pattern id="grid" width="10" height="10" patternUnits="userSpaceOnUse"><path d="M 10 0 L 0 0 0 10" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100" height="100" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
}

.hero::after {
    content: '';
    position: absolute;
    top: 20%;
    left: 10%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(49, 130, 206, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
    animation: float 6s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-20px) rotate(180deg); }
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: var(--font-6xl);
    margin-bottom: var(--space-6);
    background: linear-gradient(45deg, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(79, 209, 199, 1) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px rgba(255, 255, 255, 0.3);
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
    }
    to {
        filter: drop-shadow(0 0 30px rgba(79, 209, 199, 0.5));
    }
}

.hero-subtitle {
    font-size: var(--font-xl);
    margin-bottom: var(--space-8);
    opacity: 0.9;
}

/* ===============================================
   ANIMACIONES
   =============================================== */

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

@keyframes fadeInLeft {
    from {
        opacity: 0;
        transform: translateX(-30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.6s ease-out;
}

.animate-fadeInLeft {
    animation: fadeInLeft 0.6s ease-out;
}

.animate-pulse {
    animation: pulse 2s infinite;
}

/* ===============================================
   RESPONSIVE DESIGN
   =============================================== */

@media (max-width: 768px) {
    .container {
        padding: 0 var(--space-3);
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .navbar-nav {
        display: none;
    }
    
    .hero-title {
        font-size: var(--font-4xl);
    }
    
    .section {
        padding: var(--space-12) 0;
    }
    
    h1 { font-size: var(--font-3xl); }
    h2 { font-size: var(--font-2xl); }
    h3 { font-size: var(--font-xl); }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: var(--font-3xl);
    }
    
    .btn-lg {
        padding: var(--space-3) var(--space-6);
        font-size: var(--font-base);
    }
}

/* === TECH PILLS === */
.tech-pill {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: linear-gradient(45deg, var(--primary), var(--accent));
    color: #FFFFFF;
    border-radius: var(--radius-full);
    font-size: var(--font-sm);
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(49, 130, 206, 0.3);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

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

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

.tech-pill:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: 0 8px 25px rgba(49, 130, 206, 0.5);
}

.tech-pill-secondary {
    background: linear-gradient(45deg, var(--secondary), var(--primary-dark));
    box-shadow: 0 4px 15px rgba(26, 54, 93, 0.3);
}

.tech-pill-secondary:hover {
    box-shadow: 0 8px 25px rgba(26, 54, 93, 0.5);
}

.tech-pill-accent {
    background: linear-gradient(45deg, var(--accent), var(--accent-light));
    box-shadow: 0 4px 15px rgba(56, 178, 172, 0.3);
}

.tech-pill-accent:hover {
    box-shadow: 0 8px 25px rgba(56, 178, 172, 0.5);
}

/* === FOOTER MEJORADO === */
.footer {
    background: rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: var(--space-16) 0 var(--space-8) 0;
    position: relative;
}

.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(49, 130, 206, 0.1) 0%, 
        rgba(56, 178, 172, 0.05) 50%,
        rgba(49, 130, 206, 0.1) 100%);
    pointer-events: none;
}

.footer-content {
    position: relative;
    z-index: 2;
}

.footer h4 {
    color: #FFFFFF;
    margin-bottom: var(--space-4);
    font-size: var(--font-lg);
    font-weight: 600;
}

.footer p, .footer li {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--space-2);
}

.footer a {
    color: rgba(255, 255, 255, 0.8);
    transition: all var(--transition-base);
}

.footer a:hover {
    color: #FFFFFF;
    transform: translateX(5px);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.footer-brand span {
    font-size: var(--font-xl);
    font-weight: 800;
    color: #FFFFFF;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-social {
    display: flex;
    gap: var(--space-4);
}

.footer-social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    transition: all var(--transition-base);
}

.footer-social a:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px) scale(1.1);
}

/* ===============================================
   EFECTOS ESPECIALES
   =============================================== */

/* Elementos flotantes decorativos */
.floating-elements {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
    overflow: hidden;
}

.floating-elements::before,
.floating-elements::after {
    content: '';
    position: absolute;
    background: radial-gradient(circle, rgba(49, 130, 206, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(40px);
}

.floating-elements::before {
    top: 20%;
    left: 80%;
    width: 300px;
    height: 300px;
    animation: float 8s ease-in-out infinite;
}

.floating-elements::after {
    bottom: 20%;
    right: 80%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(56, 178, 172, 0.1) 0%, transparent 70%);
    animation: float 6s ease-in-out infinite reverse;
}

/* Efecto de partículas */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: particleFloat 10s linear infinite;
}

@keyframes particleFloat {
    0% {
        transform: translateY(100vh) translateX(0);
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) translateX(100px);
        opacity: 0;
    }
}

/* Efectos de hover mejorados */
.card-enhanced {
    position: relative;
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-2xl);
    overflow: hidden;
}

.card-enhanced::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        transparent 50%, 
        rgba(56, 178, 172, 0.1) 100%);
    opacity: 0;
    transition: opacity var(--transition-base);
}

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

.card-enhanced:hover {
    transform: translateY(-10px) scale(1.02);
    box-shadow: 
        0 20px 60px rgba(31, 38, 135, 0.3),
        0 0 40px rgba(49, 130, 206, 0.2);
}

/* Efectos de texto brillante */
.text-glow {
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.5);
}

.text-glow-primary {
    text-shadow: 0 0 20px rgba(49, 130, 206, 0.8);
}

.text-glow-accent {
    text-shadow: 0 0 20px rgba(56, 178, 172, 0.8);
}

/* Bordes animados */
.border-animated {
    position: relative;
    background: var(--glass-bg);
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
}

.border-animated::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    padding: 2px;
    background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    animation: borderRotate 3s linear infinite;
}

@keyframes borderRotate {
    0% {
        background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    }
    33% {
        background: linear-gradient(45deg, var(--accent), var(--primary), var(--accent));
    }
    66% {
        background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    }
    100% {
        background: linear-gradient(45deg, var(--primary), var(--accent), var(--primary));
    }
}

/* Gradientes de fondo especiales */
.bg-gradient-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
}

.bg-gradient-accent {
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-dark) 100%);
}

.bg-gradient-glass {
    background: linear-gradient(135deg, 
        rgba(255, 255, 255, 0.1) 0%, 
        rgba(255, 255, 255, 0.05) 100%);
    backdrop-filter: blur(20px);
}

/* Compatibilidad con clases tipo Tailwind usadas en HTML */
.bg-gradient-to-r {
    background-image: linear-gradient(to right, var(--primary), var(--secondary));
}

/* ===============================================
   SECCIONES CON FONDO CLARO (CONTRASTE)
   =============================================== */
.section.bg-gradient-glass {
    color: var(--black);
}

.section.bg-gradient-glass h1, .section.bg-gradient-glass h2, .section.bg-gradient-glass h3,
.section.bg-gradient-glass h4, .section.bg-gradient-glass h5, .section.bg-gradient-glass h6 {
    color: var(--black);
}

.section.bg-gradient-glass p { color: rgba(0, 0, 0, 0.85); }

.section.bg-gradient-glass .card,
.section.bg-gradient-glass .card-glass {
    background: rgba(255, 255, 255, 0.95);
    color: var(--black) !important;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    backdrop-filter: none;
}

/* Fuerza contraste de texto dentro de la sección glass */
.section.bg-gradient-glass h1,
.section.bg-gradient-glass h2,
.section.bg-gradient-glass h3,
.section.bg-gradient-glass h4,
.section.bg-gradient-glass h5,
.section.bg-gradient-glass h6 { color: #111 !important; }

.section.bg-gradient-glass p,
.section.bg-gradient-glass li,
.section.bg-gradient-glass a { color: rgba(17, 24, 39, 0.95) !important; }

.section.bg-gradient-glass .card .card-body * { color: rgba(17, 24, 39, 0.95) !important; opacity: 1 !important; }
/* Ensure counters stay white for emphasis */
.section.bg-gradient-glass .card .card-body .counter-number { color: #ffffff !important; text-shadow: 0 1px 2px rgba(0,0,0,0.25); }
.section.bg-light,
.section.bg-lighter {
    color: var(--black);
}

.section.bg-light h1, .section.bg-light h2, .section.bg-light h3,
.section.bg-light h4, .section.bg-light h5, .section.bg-light h6,
.section.bg-lighter h1, .section.bg-lighter h2, .section.bg-lighter h3,
.section.bg-lighter h4, .section.bg-lighter h5, .section.bg-lighter h6 {
    color: var(--black);
}

.section.bg-light p,
.section.bg-lighter p {
    color: rgba(0, 0, 0, 0.8);
}

/* Quitar overlay y blur en secciones claras */
.section.bg-light::before,
.section.bg-lighter::before {
    background: transparent;
    backdrop-filter: none;
}

/* Tarjetas sobre fondos claros */
.section.bg-light .card,
.section.bg-lighter .card,
.section.bg-light .card-glass,
.section.bg-lighter .card-glass {
    background: rgba(255, 255, 255, 0.95);
    color: var(--black);
    border: 1px solid rgba(0, 0, 0, 0.08);
    backdrop-filter: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

/* Enlaces sobre fondos claros */
.section.bg-light a,
.section.bg-lighter a {
    color: var(--secondary);
}

.section.bg-light a:hover,
.section.bg-lighter a:hover {
    color: var(--primary-dark);
}

/* ===============================================
   UTILIDADES
   =============================================== */

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

.hidden {
    display: none;
}

.visible {
    display: block;
}

/* Utilidades de spacing */
.gap-4 { gap: var(--space-4); }
.gap-6 { gap: var(--space-6); }
.gap-8 { gap: var(--space-8); }

.mt-8 { margin-top: var(--space-8); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-16 { margin-bottom: var(--space-16); }

.p-6 { padding: var(--space-6); }
.p-8 { padding: var(--space-8); }

/* Utilidades de color */
.text-primary { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-accent { color: var(--accent); }
.text-white { color: white; }

.bg-primary { background: var(--primary); }
.bg-secondary { background: var(--secondary); }
.bg-accent { background: var(--accent); }
.bg-light { background: var(--light); }
.bg-lighter { background: var(--lighter); }
.bg-dark { background: var(--black); }
/* Gradient utility used for avatars */
.bg-gradient-primary-secondary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
}

/* Utilidades responsive */
.max-w-3xl { max-width: 48rem; }
.max-w-4xl { max-width: 56rem; }
.mx-auto { margin-left: auto; margin-right: auto; }
/* Display order */
.order-2 { order: 2; }

/* Utilidades tipográficas adicionales usadas en HTML */
.text-xl { font-size: var(--font-xl); }
.text-2xl { font-size: var(--font-2xl); }
.text-3xl { font-size: var(--font-3xl); }
.text-4xl { font-size: var(--font-4xl); }
.text-6xl { font-size: var(--font-6xl); }
.font-bold { font-weight: 700; }
.leading-relaxed { line-height: 1.625; }

/* Spacing adicionales usados en HTML */
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }

/* Width/Height utilities */
.w-8 { width: 2rem; }
.h-8 { height: 2rem; }
.w-16 { width: 4rem; }
.h-16 { height: 4rem; }
/* Larger sizes for avatars */
.w-24 { width: 6rem; }
.h-24 { height: 6rem; }

/* Rounding */
.rounded-full { border-radius: var(--radius-full); }

/* Avatar styling */
.avatar {
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border: 2px solid rgba(255,255,255,0.6);
}

/* Space-y utilities */
.space-y-2 > * + * { margin-top: var(--space-2); }
.space-y-3 > * + * { margin-top: var(--space-3); }

/* ===============================================
   FORMS: Estilos coherentes con diseño glass
   =============================================== */
.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form input[type="tel"],
.contact-form input[type="number"],
.contact-form select,
.contact-form textarea {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    background: rgba(255,255,255,0.92);
    border: 1px solid rgba(0,0,0,0.08);
    border-radius: var(--radius-md);
    padding: 0.75rem 1rem;
    color: var(--black);
    box-shadow: 0 10px 25px rgba(0,0,0,0.05);
    transition: box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
    background-clip: padding-box;
}

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

.contact-form input::placeholder,
.contact-form textarea::placeholder { color: rgba(0,0,0,0.45); }

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(49,130,206,0.25), 0 15px 30px rgba(0,0,0,0.08);
    background: rgba(255,255,255,0.98);
}

/* Select arrow (simple) */
.contact-form select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'%3E%3Cpath d='M5 7l5 5 5-5' stroke='rgba(0,0,0,0.5)' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
    background-size: 1rem;
    padding-right: 2.5rem;
}

/* Checkbox */
.contact-form input[type="checkbox"] {
    width: 1.1rem; height: 1.1rem;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(0,0,0,0.2);
    accent-color: var(--primary);
}

/* Etiquetas */
.contact-form label { color: rgba(17,24,39,0.9); }

/* Botón envío ocupa full width si se especifica w-full */
.contact-form .btn.w-full { display: inline-flex; justify-content: center; width: 100%; }

/* ===============================================
   CONTACT: Steps badges (¿Qué puedes esperar?)
   =============================================== */
.contact-steps .step-badge {
    width: 2rem;
    height: 2rem;
    min-width: 2rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: #fff;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    box-shadow: 0 6px 18px rgba(0,0,0,0.12);
    border: 1px solid rgba(255,255,255,0.6);
}

.contact-steps .flex.items-start > div:last-child h4 { 
    font-size: 1rem; 
    line-height: 1.25rem;
    margin-bottom: 0.25rem;
}

.contact-steps .flex.items-start > div:last-child p {
    margin: 0;
}

/* ===============================================
   NAVBAR: Mobile-first behavior and hamburger menu
   =============================================== */
.navbar { position: sticky; top: 0; z-index: 10000; }
.navbar-container { display: flex; align-items: center; justify-content: space-between; position: relative; }
.navbar-nav { display: flex; align-items: center; gap: 1rem; }
.mobile-menu-toggle { display: none; background: none; border: none; font-size: 1.5rem; color: var(--black); cursor: pointer; }

@media (max-width: 768px) {
  .mobile-menu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; border-radius: var(--radius-md); }
  /* Home header nav alignment */
  .header .nav { display: flex; align-items: center; justify-content: space-between; position: relative; }
  .header .nav .mobile-menu-toggle { color: #fff; z-index: 1004; position: absolute; right: 0.75rem; top: 50%; transform: translateY(-50%); }

  /* Right-side drawer for both nav lists */
  /* Drawer: alta especificidad para evitar reglas previas */
  .navbar .navbar-nav,
  .header .nav .nav-links,
  .navbar-nav,
  .nav-links {
    position: fixed;
    top: 0;
    right: 0;
    left: auto !important;
    height: 100vh;
    width: 100vw; /* full width on phones/tablets up to 768px */
    background: linear-gradient(45deg, var(--secondary), var(--primary-dark)) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    padding: 4.5rem 1.25rem 1.5rem; /* espacio para el botón y área superior */
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transform: translateX(100%) !important;
    opacity: 0;
    visibility: hidden;
    z-index: 9999;
    transition: transform 0.3s ease, opacity 0.25s ease, visibility 0.25s ease;
  }
  .navbar .navbar-nav.mobile-menu-open,
  .header .nav .nav-links.mobile-menu-open,
  .navbar-nav.mobile-menu-open,
  .nav-links.mobile-menu-open {
    transform: translateX(0) !important;
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  .navbar .navbar-nav li, .header .nav .nav-links li, .navbar-nav li, .nav-links li { list-style: none; }
  .navbar .navbar-nav a, .header .nav .nav-links a, .navbar-nav a, .nav-links a { color: #fff; font-weight: 600; padding: 0.75rem 0.5rem; border-radius: var(--radius-sm); }
  .navbar .navbar-nav a:hover, .header .nav .nav-links a:hover, .navbar-nav a:hover, .nav-links a:hover { background: rgba(255,255,255,0.12); }

  /* Overlay */
  .mobile-overlay {
    position: fixed; inset: 0; background: rgba(0,0,0,0.35);
    opacity: 0; visibility: hidden; z-index: 9998; transition: opacity 0.25s ease, visibility 0.25s ease;
    pointer-events: none;
  }
  .mobile-overlay.active { opacity: 1; visibility: visible; pointer-events: auto; }

  /* Scroll lock */
  html.mobile-drawer-open, body.mobile-drawer-open { overflow: hidden; }
}

/* Tablet support for drawer (iPad widths) */
@media (max-width: 1024px) {
  .mobile-menu-toggle { display: inline-flex; }
  .navbar .navbar-nav,
  .header .nav .nav-links,
  .navbar-nav,
  .nav-links {
    position: fixed; top: 0; right: 0; height: 100vh;
    width: min(90vw, 420px);
    background: linear-gradient(45deg, var(--secondary), var(--primary-dark)) !important;
    box-shadow: -10px 0 30px rgba(0,0,0,0.25);
    padding: 4.5rem 1.25rem 1.5rem;
    display: flex; flex-direction: column; gap: .5rem;
    transform: translateX(100%) !important; opacity: 0; visibility: hidden;
    z-index: 9999; transition: transform .3s ease, opacity .25s ease, visibility .25s ease;
  }
  .navbar .navbar-nav.mobile-menu-open,
  .header .nav .nav-links.mobile-menu-open,
  .navbar-nav.mobile-menu-open,
  .nav-links.mobile-menu-open { transform: translateX(0) !important; opacity: 1; visibility: visible; }
  .mobile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 9998; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s ease; }
  .mobile-overlay.active { opacity: 1; visibility: visible; }
}

/* Phone small widths: full width drawer */
@media (max-width: 480px) {
  .navbar .navbar-nav,
  .header .nav .nav-links,
  .navbar-nav,
  .nav-links { width: 100vw; }
}