@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700;800;900&family=Inter:wght@400;500;600;700&display=swap');

/* ============================================
   VARIABLES — PALETA PROFESIONAL
   ============================================ */

:root {
    --bg-primary:        #070d1b;
    --bg-secondary:      #0d1526;
    --bg-card:           rgba(255, 255, 255, 0.03);
    --bg-card-hover:     rgba(129, 140, 248, 0.07);

    --accent-purple:     #818cf8;
    --accent-cyan:       #22d3ee;
    --accent-glow:       #a78bfa;

    --border-subtle:     rgba(129, 140, 248, 0.15);
    --border-hover:      rgba(129, 140, 248, 0.45);
    --border-cyan:       rgba(34, 211, 238, 0.35);

    --text-primary:      #f1f5f9;
    --text-secondary:    #94a3b8;
    --text-muted:        #64748b;

    --shadow-card:       0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-hover:      0 12px 40px rgba(129, 140, 248, 0.2);
    --shadow-glow:       0 0 30px rgba(129, 140, 248, 0.25);

    --radius-sm:         12px;
    --radius-md:         18px;
    --radius-lg:         24px;
    --radius-xl:         32px;

    --transition:        all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow:   all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ============================================
   ESTILOS GLOBALES
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

/* Suaviza animaciones en iOS */
* {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: 'Inter', 'Poppins', sans-serif;
    background: var(--bg-primary);
    background-image:
        radial-gradient(ellipse 80% 60% at 50% -10%, rgba(129, 140, 248, 0.07) 0%, transparent 70%),
        radial-gradient(ellipse 60% 40% at 80% 80%, rgba(34, 211, 238, 0.04) 0%, transparent 60%);
    min-height: 100vh;
    min-height: 100dvh;
    overflow-x: hidden;
    color: var(--text-primary);
    position: relative;
    padding-top: 70px;
    /* iPhone notch / Dynamic Island */
    padding-top: calc(70px + env(safe-area-inset-top));
}

/* ============================================
   NAVBAR FIJO
   ============================================ */

.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    background: rgba(7, 13, 27, 0.92);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border-subtle);
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    padding-bottom: 0;
    box-shadow: 0 1px 0 rgba(129, 140, 248, 0.08), 0 4px 24px rgba(0, 0, 0, 0.3);
    /* Safe area para iPhone con notch */
    padding-top: env(safe-area-inset-top);
    height: calc(70px + env(safe-area-inset-top));
}

.navbar-content {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 30px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: var(--transition);
}

.navbar-brand:hover {
    opacity: 0.85;
}

.navbar-logo {
    width: 40px;
    height: 40px;
    filter: drop-shadow(0 0 8px rgba(129, 140, 248, 0.5));
    transition: var(--transition);
}

.navbar-brand:hover .navbar-logo {
    filter: drop-shadow(0 0 14px rgba(129, 140, 248, 0.8));
    transform: scale(1.05);
}

.navbar-text {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    letter-spacing: 1px;
}

/* ============================================
   BOTÓN AULA VIRTUAL
   ============================================ */

.navbar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* Botón Productos navbar */
.navbar-productos-btn {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 9px 16px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 50px;
    color: #fff;
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 14px rgba(129, 140, 248, 0.3);
}

.navbar-productos-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(129, 140, 248, 0.45);
    opacity: 0.92;
}

.navbar-productos-text { color: #fff; }

.aula-virtual-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 18px;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: 0.3px;
    cursor: pointer;
    transition: var(--transition);
}

.aula-virtual-btn:hover {
    background: rgba(129, 140, 248, 0.14);
    border-color: var(--border-hover);
    color: var(--text-primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(129, 140, 248, 0.15);
}

.aula-virtual-icon {
    font-size: 16px;
    display: inline-block;
    transition: var(--transition);
}

.aula-virtual-btn:hover .aula-virtual-icon {
    transform: scale(1.15);
}

.aula-virtual-text {
    color: inherit;
}

/* ============================================
   ESFERA 3D ANIMADA
   ============================================ */

.sphere-container {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 5%;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.sphere {
    position: relative;
    width: 450px;
    height: 450px;
    margin-top: 100px;
    filter: drop-shadow(0 0 80px rgba(176, 38, 255, 0.4));
}

/* ============================================
   EFECTO MATRIX - CÓDIGO CAYENDO
   ============================================ */

.matrix-background {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 400px;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    will-change: contents;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 90%, rgba(0,0,0,0) 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,1) 0%, rgba(0,0,0,0.8) 90%, rgba(0,0,0,0) 100%);
}

.matrix-column {
    position: absolute;
    top: 0;
    font-family: 'Courier New', monospace;
    font-size: 0.8rem;
    font-weight: bold;
    white-space: nowrap;
    text-shadow: 0 0 8px currentColor;
    will-change: transform;
}

.matrix-char {
    display: block;
    height: 0.8em;
    color: #00D9FF;
    animation: matrixFall linear infinite;
    backface-visibility: hidden;
}

.matrix-char.bright {
    color: #B026FF;
    text-shadow: 0 0 12px #B026FF;
}

@keyframes matrixFall {
    0% {
        transform: translateY(-100%);
        opacity: 1;
    }
    80% {
        opacity: 1;
    }
    100% {
        transform: translateY(100vh);
        opacity: 0;
    }
}

/* ============================================
   CONTENEDOR PRINCIPAL
   ============================================ */

.container {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 60px 40px;
    max-width: 1200px;
    margin: 0 auto;
    z-index: 1;
}

/* ============================================
   HEADER Y LOGO
   ============================================ */

.header {
    margin-bottom: 60px;
    text-align: center;
}

.logo-section {
    display: inline-block;
    text-align: left;
}

.logo-container {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    filter: drop-shadow(0 0 15px rgba(176, 38, 255, 0.6));
}

.logo-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.logo-text {
    font-size: 2.5rem;
    font-weight: 900;
    background: linear-gradient(135deg, #00D9FF, #B026FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: 4px;
    margin-bottom: 5px;
    text-shadow: 0 0 20px rgba(176, 38, 255, 0.2);
}

.tagline {
    font-size: 1rem;
    color: #00D9FF;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-weight: 600;
}

/* ============================================
   SECCIÓN HERO
   ============================================ */

.hero {
    text-align: center;
    margin-bottom: 80px;
    animation: fadeInUp 0.7s ease-out;
}

/* ── Hero top block ── */
.hero-top {
    max-width: 780px;
    margin: 0 auto 48px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 16px;
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 13px;
    font-weight: 500;
    color: var(--accent-purple);
    letter-spacing: 0.3px;
    margin-bottom: 28px;
}

.hero-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 5vw, 3.8rem);
    font-weight: 900;
    margin-bottom: 22px;
    color: var(--text-primary);
    letter-spacing: 2px;
    text-transform: uppercase;
    line-height: 1.1;
}

.hero-accent {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: var(--text-secondary);
    font-weight: 400;
    line-height: 1.7;
    margin-bottom: 36px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Hero CTAs ── */
.hero-cta {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 32px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    border: none;
    border-radius: 50px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.3);
    letter-spacing: 0.3px;
}

.btn-hero-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(129, 140, 248, 0.45);
    opacity: 0.95;
}

.btn-hero-secondary {
    display: inline-flex;
    align-items: center;
    padding: 14px 32px;
    background: transparent;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
}

.btn-hero-secondary:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.07);
    transform: translateY(-2px);
}

/* ── Hero Stats ── */
.hero-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 56px;
    padding: 24px 40px;
    background: rgba(255, 255, 255, 0.025);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(12px);
    max-width: 560px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 56px;
}

.hero-stat {
    flex: 1;
    text-align: center;
    padding: 0 20px;
}

.hero-stat-num {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: 2rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1.1;
    margin-bottom: 4px;
}

.hero-stat-label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.hero-stat-divider {
    width: 1px;
    height: 40px;
    background: var(--border-subtle);
    flex-shrink: 0;
}

/* ============================================
   CARRUSEL DE SERVICIOS
   ============================================ */

.carousel-container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto 80px;
    overflow: hidden;
}

.carousel-wrapper {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
}

.carousel-track {
    display: flex;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
}

.carousel-slide {
    min-width: 100%;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.service-card {
    background: rgba(176, 38, 255, 0.1);
    border: 2px solid rgba(176, 38, 255, 0.3);
    border-radius: 20px;
    padding: 40px 30px;
    text-align: center;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    max-width: 350px;
    width: 100%;
}

.service-card:hover {
    border-color: rgba(0, 217, 255, 0.7);
    background: rgba(0, 217, 255, 0.08);
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.4);
    transform: translateY(-10px);
}

.service-icon {
    font-size: 3.5rem;
    margin-bottom: 20px;
    display: block;
    animation: bounceIcon 0.6s ease-in-out;
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.4), 0 0 10px rgba(176, 38, 255, 0.2);
    transition: all 0.3s ease;
    filter: brightness(1);
}

.service-card:hover .service-icon {
    animation: bounceIcon 0.6s ease-in-out, neon 0.8s infinite alternate;
    text-shadow: 0 0 15px #fff, 0 0 30px #ff00de, 0 0 50px #B026FF, 0 0 70px #00D9FF;
    transform: scale(1.2);
    filter: brightness(1.3);
}

.service-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 700;
}

.service-card p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.7);
    line-height: 1.6;
}

/* Botones de navegación */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(176, 38, 255, 0.3);
    border: 2px solid rgba(176, 38, 255, 0.5);
    color: #00D9FF;
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(176, 38, 255, 0.6);
    border-color: #00D9FF;
    box-shadow: 0 0 20px rgba(0, 217, 255, 0.8);
    transform: translateY(-50%) scale(1.1);
}

.carousel-btn-prev {
    left: 20px;
}

.carousel-btn-next {
    right: 20px;
}

/* Indicadores */
.carousel-indicators {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.carousel-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid rgba(176, 38, 255, 0.4);
    background: transparent;
    cursor: pointer;
    transition: all 0.3s ease;
}

.carousel-indicator.active {
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    border-color: #00D9FF;
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.6);
    transform: scale(1.3);
}

.carousel-indicator:hover {
    border-color: #00D9FF;
    transform: scale(1.2);
}

/* ============================================
   SECCIÓN DE ENLACES RÁPIDOS
   ============================================ */

.quick-links {
    margin-bottom: 80px;
}

.section-title {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(1.4rem, 5vw, 2.4rem);
    font-weight: 800;
    margin-bottom: 48px;
    text-align: center;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 2px;
    display: block;
    width: 100%;
}

.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    border-radius: 2px;
    margin: 12px auto 0;
}

.links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.link-button {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 20px;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
    backdrop-filter: blur(12px);
    cursor: pointer;
    gap: 12px;
    position: relative;
    overflow: hidden;
}

.link-button:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.link-icon {
    font-size: 2.8rem;
    display: block;
    transition: var(--transition);
}

.link-button:hover .link-icon {
    transform: scale(1.12) translateY(-3px);
}

.link-text {
    font-size: 0.9rem;
    font-weight: 600;
    text-align: center;
    line-height: 1.4;
    color: var(--text-secondary);
    transition: var(--transition);
}

.link-button:hover .link-text {
    color: var(--text-primary);
}

@keyframes bounceIcon {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes scaleIcon {
    0% { transform: scale(1); }
    50% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

@keyframes neon {
    0%, 100% { text-shadow: 0 0 10px #fff, 0 0 20px #ff00de, 0 0 30px #B026FF, 0 0 40px #00D9FF; }
    50% { text-shadow: 0 0 5px #fff, 0 0 10px #ff00de, 0 0 15px #B026FF, 0 0 20px #00D9FF; }
}

.neon-icon {
    animation: neon 1.5s infinite alternate;
}

/* ============================================
   SECCIÓN DE MENSAJE DE LIDERAZGO
   ============================================ */

.leadership-message {
    background: rgba(176, 38, 255, 0.08);
    border: 2px solid rgba(176, 38, 255, 0.25);
    border-radius: 25px;
    padding: 60px 50px;
    backdrop-filter: blur(20px);
    margin-top: 60px;
    animation: fadeInUp 1s ease-out 0.2s backwards;
}

.message-header {
    text-align: center;
    margin-bottom: 40px;
    border-bottom: 3px solid rgba(176, 38, 255, 0.4);
    padding-bottom: 20px;
}

.message-header h3 {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.message-content {
    display: grid;
    gap: 25px;
}

.message-content p {
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, 0.9);
    text-align: justify;
}

/* ============================================
   ANIMACIONES
   ============================================ */

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   SECCIÓN DE SERVICIOS
   ============================================ */

.services-section {
    margin: 80px 0;
    animation: fadeInUp 1s ease-out 0.3s backwards;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.service-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 32px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.service-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    opacity: 0;
    transition: var(--transition);
}

.service-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
}

.service-card:hover::before {
    opacity: 1;
}

.service-card h4 {
    font-size: 1.15rem;
    margin-bottom: 12px;
    color: var(--text-primary);
    font-weight: 700;
    transition: var(--transition);
}

.service-card:hover h4 {
    color: var(--accent-purple);
}

.service-card p {
    font-size: 0.92rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

.service-card strong {
    color: var(--accent-cyan);
}

/* ============================================
   SECCIÓN DE STACK TECNOLÓGICO
   ============================================ */

.tech-stack-section {
    margin: 80px 0;
    animation: fadeInUp 1s ease-out 0.4s backwards;
}

.tech-stack-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 25px;
}

.tech-category {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 28px;
    backdrop-filter: blur(12px);
    transition: var(--transition);
}

.tech-category:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.tech-category h4 {
    font-size: 1rem;
    margin-bottom: 18px;
    color: var(--accent-cyan);
    font-weight: 600;
    border-bottom: 1px solid var(--border-subtle);
    padding-bottom: 10px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.tech-category ul {
    list-style: none;
}

.tech-category li {
    padding: 8px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
    border-bottom: 1px solid rgba(129, 140, 248, 0.06);
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 8px;
}

.tech-category li:last-child {
    border-bottom: none;
}

.tech-category li:hover {
    color: var(--text-primary);
    padding-left: 6px;
}

.tech-category li::before {
    content: "›";
    color: var(--accent-purple);
    font-weight: bold;
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* ============================================
   SECCIÓN DE CONTACTO
   ============================================ */

.contact-section {
    margin: 80px 0;
    animation: fadeInUp 1s ease-out 0.5s backwards;
}

.section-subtitle {
    text-align: center;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 50px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    background: rgba(176, 38, 255, 0.08);
    border: 2px solid rgba(176, 38, 255, 0.25);
    border-radius: 25px;
    padding: 50px;
    backdrop-filter: blur(20px);
}

.contact-info h4 {
    font-size: 1.4rem;
    color: #B026FF;
    margin-bottom: 25px;
    font-weight: 700;
}

.contact-info ul {
    list-style: none;
}

.contact-info li {
    margin-bottom: 20px;
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
}

.contact-info a {
    color: #00D9FF;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 600;
}

.contact-info a:hover {
    color: #B026FF;
    text-decoration: underline;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    background: rgba(255, 255, 255, 0.08);
    border: 2px solid rgba(176, 38, 255, 0.3);
    border-radius: 12px;
    padding: 12px 18px;
    color: #ffffff;
    font-size: 0.95rem;
    font-family: inherit;
    transition: all 0.3s ease;
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: rgba(255, 255, 255, 0.5);
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    background: rgba(176, 38, 255, 0.15);
    border-color: rgba(176, 38, 255, 0.7);
    box-shadow: 0 0 20px rgba(176, 38, 255, 0.3);
}

.contact-form select {
    cursor: pointer;
}

.contact-form select option {
    background: #1a0033;
    color: #ffffff;
}

.submit-btn {
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    border: none;
    color: #ffffff;
    padding: 15px 30px;
    font-size: 1rem;
    font-weight: 600;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 10px 30px rgba(139, 92, 246, 0.3);
}

.submit-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 40px rgba(139, 92, 246, 0.5);
    background: linear-gradient(135deg, #00D9FF, #B026FF);
}

.submit-btn:active {
    transform: translateY(-1px);
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    border-top: 1px solid var(--border-subtle);
    margin-top: 100px;
    padding: 48px 40px 32px;
    background: rgba(7, 13, 27, 0.6);
    backdrop-filter: blur(10px);
}

.footer-grid {
    max-width: 1200px;
    margin: 0 auto 36px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr;
    gap: 40px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 18px;
    letter-spacing: 1px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.footer-desc {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.7;
    max-width: 260px;
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
}

.footer-col ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-col li {
    font-size: 13px;
    color: var(--text-secondary);
    cursor: default;
    transition: var(--transition);
}

.footer-col a {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: var(--transition);
}

.footer-col a:hover,
.footer-col li:hover {
    color: var(--accent-purple);
}

.footer-bottom {
    max-width: 1200px;
    margin: 0 auto;
    padding-top: 24px;
    border-top: 1px solid var(--border-subtle);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
}

.footer-bottom p {
    font-size: 12px;
    color: var(--text-muted);
}

.footer-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    background: rgba(129, 140, 248, 0.08);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    font-size: 11px;
    color: var(--text-muted);
}

/* ============================================
   SECCIÓN: PRODUCTOS
   ============================================ */

.productos-section {
    margin: 80px 0;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.productos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 24px;
    margin-top: 16px;
}

.producto-card {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-lg);
    padding: 32px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.producto-card::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

.producto-card:hover {
    border-color: var(--border-hover);
    background: var(--bg-card-hover);
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.producto-badge {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(34, 211, 238, 0.12);
    border: 1px solid rgba(34, 211, 238, 0.3);
    color: var(--accent-cyan);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 50px;
}

.producto-icon {
    font-size: 3rem;
    line-height: 1;
}

.producto-nombre {
    font-family: 'Poppins', sans-serif;
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.producto-descripcion {
    font-size: 0.92rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.producto-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.producto-tag {
    background: rgba(129, 140, 248, 0.1);
    border: 1px solid var(--border-subtle);
    color: var(--accent-purple);
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 50px;
    letter-spacing: 0.3px;
}

.producto-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 13px 24px;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    text-decoration: none;
    border-radius: 50px;
    font-size: 14px;
    font-weight: 600;
    transition: var(--transition);
    box-shadow: 0 4px 16px rgba(129, 140, 248, 0.3);
    margin-top: auto;
}

.producto-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(129, 140, 248, 0.45);
    opacity: 0.92;
}

/* Responsive */
@media (max-width: 480px) {
    .productos-grid { grid-template-columns: 1fr; }
    .producto-card  { padding: 24px 20px; }
}

/* ============================================
   SECCIÓN: FORMULARIO — REDISEÑO PROFESIONAL
   ============================================ */

.requirements-section {
    margin: 100px 0;
    animation: fadeInUp 0.8s ease-out 0.3s backwards;
}

.requirements-header {
    text-align: center;
    margin-bottom: 48px;
}

/* ── Pasos de progreso ── */
.progress-wrapper {
    margin-bottom: 40px;
}

.progress-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 20px;
}

.progress-step-item {
    display: flex;
    align-items: center;
    gap: 10px;
}

.progress-step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--border-subtle);
    background: var(--bg-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-muted);
    transition: var(--transition);
    flex-shrink: 0;
}

.progress-step-circle.active {
    border-color: var(--accent-purple);
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 0 16px rgba(129, 140, 248, 0.4);
}

.progress-step-circle.done {
    border-color: var(--accent-cyan);
    background: rgba(34, 211, 238, 0.15);
    color: var(--accent-cyan);
}

.progress-step-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    white-space: nowrap;
}

.progress-step-item.active .progress-step-label {
    color: var(--text-primary);
}

.progress-step-connector {
    width: 60px;
    height: 2px;
    background: var(--border-subtle);
    margin: 0 8px;
    flex-shrink: 0;
    transition: var(--transition);
}

.progress-bar-slim {
    height: 3px;
    background: var(--border-subtle);
    border-radius: 2px;
    overflow: hidden;
    margin-top: 16px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
    width: 0%;
    transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 2px;
}

.progress-text {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

/* ── Fases del formulario ── */
.form-container { width: 100%; }

.form-phase { display: none; }

.form-phase.active {
    display: block;
    animation: phaseEnter 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.form-phase.exit-left { display: none; }

@keyframes phaseEnter {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Tarjeta de fase ── */
.phase-content {
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    padding: 48px 44px;
    backdrop-filter: blur(16px);
    position: relative;
    overflow: hidden;
}

.phase-content::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-cyan));
}

.phase-icon {
    font-size: 2.8rem;
    text-align: center;
    margin-bottom: 14px;
    display: block;
    animation: bounceIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.phase-title {
    font-family: 'Poppins', sans-serif;
    font-size: 1.7rem;
    font-weight: 800;
    text-align: center;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.phase-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 36px;
    line-height: 1.6;
}

/* ── Grupos de campo ── */
.requirements-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.3px;
    text-transform: uppercase;
}

.form-group input,
.form-group select,
.form-group textarea {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    padding: 14px 16px;
    color: var(--text-primary);
    font-size: 0.95rem;
    font-family: inherit;
    transition: var(--transition);
    width: 100%;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: var(--text-muted);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    background: rgba(129, 140, 248, 0.07);
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
}

.form-group select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2394a3b8' stroke-width='2' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.form-group select option {
    background: #0d1526;
    color: var(--text-primary);
}

/* ── Dos columnas ── */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

/* ── Secciones Fase 2 ── */
.form-section {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 22px 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.section-label {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--accent-cyan);
    letter-spacing: 1px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 8px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-subtle);
    margin-bottom: 4px;
}

/* ── Radio buttons como tarjetas ── */
.radio-group {
    display: flex;
    gap: 10px;
    margin-top: 4px;
    flex-wrap: wrap;
}

.radio-label {
    flex: 1;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 16px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 0.88rem;
    font-weight: 500;
    transition: var(--transition);
    user-select: none;
    text-align: center;
}

.radio-label:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.06);
}

.radio-label input[type="radio"] {
    display: none;
}

.radio-label:has(input:checked) {
    border-color: var(--accent-purple);
    background: rgba(129, 140, 248, 0.14);
    color: var(--text-primary);
    font-weight: 600;
    box-shadow: 0 0 0 3px rgba(129, 140, 248, 0.12);
}

/* ── Help text ── */
.help-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin-top: 4px;
    font-style: italic;
}

/* ── Mensajes de error ── */
.error-message {
    font-size: 0.8rem;
    color: #f87171;
    height: 18px;
    display: block;
    opacity: 0;
    transition: opacity 0.2s ease;
}

.error-message.show { opacity: 1; }

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
    border-color: #f87171;
    background: rgba(248, 113, 113, 0.06);
}

.form-group.has-error .radio-label {
    border-color: #f87171;
}

/* ── Botones de acción ── */
.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 36px;
    flex-wrap: wrap;
}

.btn-next,
.btn-submit {
    padding: 14px 32px;
    font-size: 15px;
    font-weight: 600;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    box-shadow: 0 4px 20px rgba(129, 140, 248, 0.3);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    letter-spacing: 0.3px;
}

.btn-next:hover,
.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(129, 140, 248, 0.45);
}

.btn-back {
    padding: 14px 28px;
    font-size: 15px;
    font-weight: 500;
    border: 1px solid var(--border-subtle);
    border-radius: 50px;
    cursor: pointer;
    background: transparent;
    color: var(--text-secondary);
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-back:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
    background: rgba(129, 140, 248, 0.06);
}

.btn-contact,
.btn-new-request {
    padding: 13px 28px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: var(--transition);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
}

.btn-contact {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-cyan));
    color: #fff;
    border: none;
    box-shadow: 0 4px 16px rgba(129, 140, 248, 0.3);
}

.btn-contact:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(129, 140, 248, 0.45);
}

.btn-new-request {
    background: transparent;
    color: var(--text-secondary);
    border: 1px solid var(--border-subtle);
}

.btn-new-request:hover {
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.icon-arrow { font-size: 1rem; }

.loader-icon {
    display: inline-block;
    animation: pulse 1.5s ease-in-out infinite;
}

/* ── Pantalla de éxito ── */
.success-content {
    text-align: center;
    padding: 64px 44px !important;
    background: rgba(34, 211, 238, 0.03) !important;
    border-color: rgba(34, 211, 238, 0.2) !important;
}

.success-icon {
    font-size: 4rem;
    margin-bottom: 20px;
    display: block;
    animation: scaleIn 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.success-message {
    background: rgba(34, 211, 238, 0.06);
    border: 1px solid rgba(34, 211, 238, 0.2);
    padding: 22px 24px;
    border-radius: var(--radius-md);
    margin: 24px 0;
    text-align: left;
}

.success-message p {
    color: var(--text-secondary);
    margin-bottom: 12px;
    font-size: 0.92rem;
    line-height: 1.7;
}

.success-message p:last-child { margin-bottom: 0; }

.success-message ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.success-message li {
    padding: 6px 0;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.success-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 28px;
}

.success-message strong {
    color: #00D9FF;
}

.success-actions {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

/* Animaciones */
@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes scaleIn {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.7;
    }
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* ============================================
   RESPONSIVO
   ============================================ */

@media (max-width: 1024px) {
    .sphere-container {
        padding-right: 2%;
    }

    .sphere {
        width: 350px;
        height: 350px;
    }

    .container {
        padding: 40px 30px;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .services-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    /* Responsivo: Levantamiento de Requerimientos */
    .phase-content {
        padding: 40px 30px;
    }

    .phase-title {
        font-size: 1.5rem;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .form-actions {
        gap: 15px;
    }

    .btn-next,
    .btn-back,
    .btn-submit,
    .btn-contact,
    .btn-new-request {
        padding: 12px 25px;
        font-size: 0.95rem;
    }
}

@media (max-width: 768px) {
    /* Hero mobile */
    .hero-stats {
        flex-direction: column;
        gap: 16px;
        padding: 20px;
    }
    .hero-stat-divider {
        width: 40px;
        height: 1px;
    }
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    .btn-hero-primary,
    .btn-hero-secondary {
        width: 100%;
        justify-content: center;
    }

    /* Footer mobile */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .footer-bottom {
        flex-direction: column;
        text-align: center;
    }

    .sphere-container {
        position: absolute;
        width: 100%;
        height: 100vh;
        justify-content: center;
        opacity: 0.5;
    }

    .sphere {
        width: 300px;
        height: 300px;
        margin-top: 0;
    }

    .container {
        padding: 40px 20px;
    }

    .logo {
        font-size: 1.8rem;
    }

    .hero-title {
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .links-grid {
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 15px;
    }

    .link-button {
        padding: 30px 15px;
    }

    .link-icon {
        font-size: 2.5rem;
    }

    .link-text {
        font-size: 0.9rem;
    }

    .leadership-message {
        padding: 40px 25px;
    }

    .message-header h3 {
        font-size: 1.4rem;
    }

    .message-content p {
        font-size: 0.95rem;
        text-align: left;
    }

    .services-grid,
    .tech-stack-grid {
        grid-template-columns: 1fr;
    }

    .contact-wrapper {
        padding: 30px;
    }

    .contact-info h4 {
        margin-top: 20px;
    }

    .contact-info h4:first-child {
        margin-top: 0;
    }
}

@media (max-width: 480px) {
    .sphere-container {
        display: none;
    }

    .container {
        padding: 20px;
    }

    .logo {
        font-size: 1.5rem;
    }

    .hero-title {
        font-size: 1.4rem;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .section-title {
        font-size: 1.4rem;
        margin-bottom: 25px;
    }

    .links-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .link-button {
        padding: 25px 15px;
        gap: 10px;
    }

    .link-icon {
        font-size: 2rem;
    }

    .link-text {
        font-size: 0.9rem;
    }

    .quick-links {
        margin-bottom: 40px;
    }

    .leadership-message {
        padding: 25px 15px;
    }

    .message-header h3 {
        font-size: 1.1rem;
    }

    .message-header {
        margin-bottom: 20px;
    }

    .message-content p {
        font-size: 0.9rem;
    }

    .service-card {
        padding: 25px;
    }

    .service-card h4 {
        font-size: 1.1rem;
    }

    .service-card p {
        font-size: 0.9rem;
    }

    .tech-category {
        padding: 20px;
    }

    .tech-category h4 {
        font-size: 1rem;
        margin-bottom: 15px;
    }

    .tech-category li {
        padding: 8px 0;
        font-size: 0.85rem;
    }

    .contact-wrapper {
        padding: 20px;
        border-radius: 15px;
    }

    .contact-info h4 {
        font-size: 1.1rem;
    }

    .contact-info li {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .contact-form {
        gap: 15px;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 10px 15px;
        font-size: 0.9rem;
    }

    .submit-btn {
        padding: 12px 20px;
        font-size: 0.9rem;
    }

    /* Responsivo Mobile: Formulario */
    .requirements-section { margin: 50px 0; }
    .requirements-header  { margin-bottom: 32px; }

    .progress-steps { gap: 0; }
    .progress-step-label { display: none; }
    .progress-step-connector { width: 32px; }

    .phase-content {
        padding: 28px 20px;
        border-radius: var(--radius-lg);
    }

    .phase-icon    { font-size: 2.2rem; margin-bottom: 12px; }
    .phase-title   { font-size: 1.3rem; }
    .phase-description { font-size: 0.88rem; margin-bottom: 24px; }

    .form-group input,
    .form-group select,
    .form-group textarea { font-size: 16px; }

    .form-row { grid-template-columns: 1fr; gap: 16px; }

    .radio-group { gap: 8px; }
    .radio-label  { flex: none; width: 100%; justify-content: flex-start; }

    .form-actions {
        flex-direction: column-reverse;
        gap: 10px;
        margin-top: 28px;
    }

    .btn-next,
    .btn-back,
    .btn-submit,
    .btn-contact,
    .btn-new-request {
        width: 100%;
        justify-content: center;
        padding: 14px 20px;
        font-size: 0.85rem;
        width: 100%;
    }

    .success-content {
        padding: 50px 20px !important;
    }

    .success-icon {
        font-size: 3rem;
        margin-bottom: 20px;
    }

    .success-message {
        padding: 15px;
        margin: 20px 0;
    }

    .success-message p {
        font-size: 0.9rem;
        margin-bottom: 10px;
    }

    .success-message li {
        padding: 6px 0;
        font-size: 0.9rem;
    }

    .success-actions {
        gap: 10px;
        flex-direction: column;
    }

    .success-actions a,
    .success-actions button {
        width: 100%;
    }
}

/* ============================================
   WIDGET DE CHAT FLOTANTE - TOMA DE REQUERIMIENTOS
   ============================================ */

/* Contenedor principal del widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    font-family: 'Poppins', sans-serif;
    z-index: 999;
}

/* Botón flotante */
.chat-toggle-btn {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    border: 2px solid rgba(176, 38, 255, 0.5);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    box-shadow: 0 0 30px rgba(176, 38, 255, 0.6), 0 8px 25px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    position: relative;
    animation: pulse-animation 2s infinite;
}

.chat-toggle-btn:hover {
    transform: scale(1.1);
    box-shadow: 0 0 40px rgba(0, 217, 255, 0.8), 0 12px 35px rgba(0, 0, 0, 0.4);
}

.chat-icon {
    display: block;
    line-height: 1;
}

/* Pulso de animación */
.chat-pulse {
    position: absolute;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(176, 38, 255, 0.4);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    100% {
        transform: scale(1.3);
        opacity: 0;
    }
}

@keyframes pulse-animation {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* Ventana del chat */
.chat-window {
    position: absolute;
    bottom: 90px;
    right: 0;
    width: 400px;
    height: 600px;
    background: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(176, 38, 255, 0.3);
    border-radius: 15px;
    box-shadow: 0 0 40px rgba(176, 38, 255, 0.3), 0 20px 50px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0) scale(1);
    transition: all 0.3s ease;
}

.chat-window.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
}

/* Encabezado del chat */
.chat-header {
    background: linear-gradient(135deg, rgba(176, 38, 255, 0.2), rgba(0, 217, 255, 0.1));
    border-bottom: 1px solid rgba(176, 38, 255, 0.2);
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
}

.chat-header-content h3 {
    font-size: 1.2rem;
    font-weight: 700;
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 5px;
}

.chat-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

/* Botón cerrar */
.chat-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.6);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.chat-close-btn:hover {
    background: rgba(176, 38, 255, 0.2);
    color: #00D9FF;
}

/* Área de mensajes */
.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.chat-message {
    display: flex;
    gap: 10px;
    animation: messageSlide 0.3s ease;
}

@keyframes messageSlide {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.chat-message.user {
    justify-content: flex-end;
}

.chat-message.bot {
    justify-content: flex-start;
}

.chat-bubble {
    max-width: 80%;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 0.95rem;
    line-height: 1.4;
    word-wrap: break-word;
}

.chat-bubble.bot {
    background: rgba(176, 38, 255, 0.2);
    border: 1px solid rgba(176, 38, 255, 0.3);
    color: #ffffff;
    border-bottom-left-radius: 3px;
}

.chat-bubble.user {
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    color: #ffffff;
    border-bottom-right-radius: 3px;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
}

/* Área de entrada */
.chat-input-area {
    display: flex;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(176, 38, 255, 0.2);
    background: rgba(10, 10, 10, 0.5);
}

.chat-input {
    flex: 1;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(176, 38, 255, 0.2);
    border-radius: 8px;
    padding: 10px 14px;
    color: #ffffff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(0, 217, 255, 0.5);
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 0 15px rgba(0, 217, 255, 0.2);
}

.chat-input::placeholder {
    color: rgba(255, 255, 255, 0.3);
}

/* Botón enviar */
.chat-send-btn {
    background: linear-gradient(135deg, #B026FF, #00D9FF);
    border: none;
    color: #ffffff;
    border-radius: 8px;
    padding: 10px 14px;
    cursor: pointer;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.4);
}

.chat-send-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(0, 217, 255, 0.6);
}

.chat-send-btn:active {
    transform: scale(0.95);
}

/* Contenedor de opciones (para botones de selección) */
.chat-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding: 15px;
    border-top: 1px solid rgba(176, 38, 255, 0.2);
    background: rgba(10, 10, 10, 0.5);
}

.chat-options.hidden {
    display: none;
}

.chat-option-btn {
    flex: 1;
    min-width: 120px;
    padding: 10px 12px;
    background: rgba(176, 38, 255, 0.1);
    border: 1px solid rgba(176, 38, 255, 0.3);
    color: #00D9FF;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.3s ease;
    font-family: 'Poppins', sans-serif;
}

.chat-option-btn:hover {
    background: rgba(176, 38, 255, 0.3);
    border-color: rgba(0, 217, 255, 0.5);
    box-shadow: 0 0 15px rgba(176, 38, 255, 0.3);
}

.chat-option-btn:active {
    transform: scale(0.95);
}

/* ── Indicador de escritura (typing) ── */
.chat-typing-indicator .chat-bubble {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 14px 18px;
    min-width: 56px;
}

.chat-typing-indicator .chat-bubble span {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-purple);
    opacity: 0.6;
    animation: typingDot 1.2s ease-in-out infinite;
}

.chat-typing-indicator .chat-bubble span:nth-child(2) { animation-delay: 0.2s; }
.chat-typing-indicator .chat-bubble span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
    30%            { transform: translateY(-6px); opacity: 1; }
}

/* Scrollbar personalizado */
.chat-messages::-webkit-scrollbar {
    width: 6px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(176, 38, 255, 0.3);
    border-radius: 3px;
}

.chat-messages::-webkit-scrollbar-thumb:hover {
    background: rgba(176, 38, 255, 0.5);
}

/* Responsive */
@media (max-width: 768px) {
    .chat-window {
        width: 100vw;
        height: 100vh;
        max-width: 100%;
        max-height: 100%;
        bottom: 0;
        right: 0;
        border-radius: 0;
        border: none;
    }

    .chat-toggle-btn {
        width: 50px;
        height: 50px;
        font-size: 24px;
    }

    .chat-pulse {
        width: 50px;
        height: 50px;
    }

    .chat-bubble {
        max-width: 90%;
    }
}

/* ============================================================
   FIXES ESPECÍFICOS iOS / iPhone
   Probado en: iPhone SE (375px), 13/14 (390px), 14 Plus (430px)
   ============================================================ */

/* ── Previene zoom automático de iOS Safari en inputs ── */
/* iOS hace zoom si font-size < 16px — fix obligatorio     */
@media (max-width: 768px) {
    input,
    select,
    textarea,
    .form-group input,
    .form-group select,
    .form-group textarea,
    .contact-form input,
    .contact-form select,
    .contact-form textarea,
    .chat-input {
        font-size: 16px !important;
    }

    /* Evitar zoom también en selects con -webkit-appearance */
    select {
        -webkit-appearance: none;
        -moz-appearance: none;
        appearance: none;
    }
}

/* ── Chat window: altura real en iOS Safari ── */
/* 100vh en iOS incluye la barra de Safari, 100dvh es la vista real */
@media (max-width: 768px) {
    .chat-window {
        height: 100vh;
        height: 100dvh;
        /* Home indicator en iPhone sin botón físico */
        padding-bottom: env(safe-area-inset-bottom);
    }

    /* Scroll suave en el área de mensajes */
    .chat-messages {
        -webkit-overflow-scrolling: touch;
        overscroll-behavior: contain;
    }

    /* Input area fija sobre el home indicator */
    .chat-input-area {
        padding-bottom: max(10px, env(safe-area-inset-bottom));
    }
}

/* ── Touch targets mínimo 44px (Apple HIG) ── */
@media (max-width: 768px) {
    .aula-virtual-btn,
    .carousel-btn,
    .chat-close-btn,
    .chat-send-btn,
    .chat-toggle-btn,
    .btn-next,
    .btn-back,
    .btn-submit,
    .btn-hero-primary,
    .btn-hero-secondary,
    .carousel-indicator {
        min-height: 44px;
        min-width: 44px;
    }

    .carousel-indicator {
        width: 14px;
        height: 14px;
    }
}

/* ── Navbar compacta en iPhone SE (375px) ── */
@media (max-width: 390px) {
    .navbar-content {
        padding: 0 16px;
    }

    .navbar-text {
        font-size: 17px;
        letter-spacing: 0.5px;
    }

    .navbar-logo {
        width: 32px;
        height: 32px;
    }

    .aula-virtual-text,
    .navbar-productos-text {
        display: none; /* Solo mostrar íconos en pantallas muy pequeñas */
    }

    .navbar-productos-btn {
        padding: 8px 10px;
    }

    .aula-virtual-btn {
        padding: 8px 12px;
        gap: 0;
    }
}

/* ── Hero: ajustes iPhone SE ── */
@media (max-width: 390px) {
    .hero-top {
        padding: 0 4px;
    }

    .hero-badge {
        font-size: 11px;
        padding: 5px 12px;
    }

    .hero-title {
        font-size: 1.75rem;
        letter-spacing: 1px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
    }

    .hero-stats {
        padding: 16px;
        gap: 12px;
    }

    .hero-stat-num {
        font-size: 1.6rem;
    }

    .hero-stat-label {
        font-size: 10px;
    }

    .btn-hero-primary,
    .btn-hero-secondary {
        padding: 13px 24px;
        font-size: 14px;
    }
}

/* ── Contenedor: padding lateral mínimo en iPhone ── */
@media (max-width: 390px) {
    .container {
        padding: 24px 16px;
    }

    .section-title {
        letter-spacing: 1px;
    }

    .quick-links,
    .services-section,
    .tech-stack-section {
        margin-bottom: 48px;
    }
}

/* ── Links grid: 2 columnas compactas en iPhone ── */
@media (max-width: 390px) {
    .links-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .link-button {
        padding: 20px 10px;
        gap: 8px;
    }

    .link-icon {
        font-size: 2rem;
    }

    .link-text {
        font-size: 0.78rem;
    }
}

/* ── Formulario: mejor UX táctil en iPhone ── */
@media (max-width: 768px) {
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 14px 16px;
        border-radius: 12px;
        /* Evitar zoom iOS — redundante pero explícito */
        font-size: 16px;
    }

    /* Radio labels: área de toque amplia */
    .radio-label {
        padding: 12px 16px;
        background: rgba(129, 140, 248, 0.05);
        border: 1px solid var(--border-subtle);
        border-radius: 10px;
        cursor: pointer;
        -webkit-user-select: none;
        user-select: none;
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .radio-label:active {
        background: rgba(129, 140, 248, 0.1);
    }

    /* Progress bar más visible */
    .progress-bar {
        height: 6px;
    }

    /* Botones de acción: full width y más altos */
    .btn-next,
    .btn-submit {
        height: 52px;
        font-size: 16px;
    }

    .btn-back {
        height: 48px;
        font-size: 15px;
    }
}

/* ── Carousel: gestos táctiles ── */
@media (max-width: 768px) {
    .carousel-wrapper {
        touch-action: pan-y;
    }

    .carousel-btn {
        /* Hacer invisible pero táctil en iPhone */
        opacity: 0.6;
    }
}

/* ── Deshabilitar matrix en mobile (rendimiento iPhone) ── */
@media (max-width: 768px) {
    .matrix-background {
        display: none;
    }
}

/* ── Footer iPhone ── */
@media (max-width: 390px) {
    .footer {
        padding: 36px 16px 20px;
        /* Home indicator */
        padding-bottom: max(20px, env(safe-area-inset-bottom));
    }

    .footer-desc {
        max-width: 100%;
    }

    .footer-grid {
        gap: 20px;
    }
}

/* ── Chat widget: posición fija visible en iPhone ── */
@media (max-width: 768px) {
    /* Ventana full-screen cuando está abierta */
    .chat-window {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        bottom: 0 !important;
        right: 0 !important;
        width: 100vw !important;
        height: 100vh !important;
        height: 100dvh !important;
        z-index: 1100 !important;
        border-radius: 0 !important;
        border: none !important;
    }

    /* Botón flotante: siempre visible en esquina inferior derecha */
    .chat-widget {
        position: fixed !important;
        bottom: max(16px, env(safe-area-inset-bottom)) !important;
        right: 16px !important;
        z-index: 1050 !important;
    }

    .chat-toggle-btn {
        position: relative !important;
        z-index: 1050 !important;
        bottom: auto !important;
        right: auto !important;
        margin: 0 !important;
        width: 56px !important;
        height: 56px !important;
        box-shadow: 0 4px 20px rgba(0,0,0,0.4) !important;
    }
}
