:root {
    /* Paleta SaaS de Alto Nivel */
    --bg-dark: #020617;
    --bg-card: rgba(15, 23, 42, 0.6);
    --accent-primary: #ADFF2F; /* Green Volt - Marketplace */
    --accent-secondary: #38BDF8; /* Sky Blue - Academia/Servicios */
    --text-main: #F8FAFC;
    --text-muted: #94A3B8;
    --glass-border: rgba(255, 255, 255, 0.05);
    --neon-shadow: 0 10px 30px rgba(173, 255, 47, 0.1);
    
    /* Agregado para Profundidad */
    --inner-light: inset 0 1px 1px rgba(255, 255, 255, 0.05);
    --radius-main: 24px;
}

/* Reset y Base */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    background-color: var(--bg-dark);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
    letter-spacing: -0.01em; /* Mejora la densidad visual */
    -webkit-font-smoothing: antialiased;
}

.container { 
    width: 90%; 
    max-width: 1200px; 
    margin: 0 auto; 
}

/* NAVBAR ADAPTABLE */
.nav-flex { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
}

.logo {
    font-weight: 900;
    font-size: 1.4rem;
    letter-spacing: -1.5px; /* Más cerrado para estilo Pro */
    text-decoration: none;
    color: var(--text-main);
}

/* HERO SECTION - REFINADO */
.hero {
    padding: 100px 0 60px;
    text-align: center;
    background: radial-gradient(circle at top, rgba(56, 189, 248, 0.08) 0%, transparent 60%);
}

.hero h1 {
    font-size: clamp(2.5rem, 8vw, 4.5rem);
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.04em;
    margin-bottom: 24px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: clamp(1rem, 4vw, 1.2rem);
    max-width: 650px;
    margin: 0 auto 40px;
}

.text-gradient {
    background: linear-gradient(to right, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    filter: drop-shadow(0 0 15px rgba(173, 255, 47, 0.3));
}

/* CARDS CON GLASSMORPHISM MEJORADO */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.card-saas {
    background: var(--bg-card);
    backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--inner-light); /* Agregado para realismo */
    border-radius: var(--radius-main);
    padding: 32px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    flex-direction: column;
}

.card-saas:hover {
    transform: translateY(-8px);
    border-color: rgba(173, 255, 47, 0.3);
    box-shadow: var(--inner-light), var(--neon-shadow);
}

/* SISTEMA DE BOTONES */
.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-saas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    border-radius: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    border: none;
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

.btn-primary {
    background: var(--accent-primary);
    color: var(--bg-dark);
}

.btn-primary:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 20px rgba(173, 255, 47, 0.2);
}

/* Efecto Brillo SaaS en Botón Primary */
.btn-primary::after {
    content: '';
    position: absolute;
    top: 0; left: -100%;
    width: 100%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: 0.5s;
}

.btn-primary:hover::after {
    left: 100%;
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.03);
    color: white;
    border: 1px solid var(--glass-border);
    backdrop-filter: blur(5px);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--text-muted);
}

/* FORMULARIOS */
input, textarea {
    font-family: 'Inter', sans-serif;
}

/* ADAPTABILIDAD MOBILE-FIRST */
@media (max-width: 768px) {
    .hero { padding: 60px 20px; }
    .hero h1 { font-size: 2.8rem !important; letter-spacing: -1.5px; }
    .btn-saas { width: 100%; }
    .btn-group { flex-direction: column; width: 100%; max-width: 400px; margin: 0 auto; }
}

/* Ajustes de Imagen */
.product-img-wrapper {
    position: relative;
    aspect-ratio: 16 / 10; /* Agregado para consistencia de cuadrícula */
    background: #000;
    overflow: hidden;
    border-radius: 12px;
}

.product-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 10px;
}

/* Ajustes de Título (Descripción) */
.product-title {
    font-size: 1rem;
    font-weight: 600;
    color: #fff;
    margin-bottom: 12px;
    height: 2.4em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

/* Ajustes de Precio */
.product-price-container {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 20px;
}

.price-currency {
    color: var(--accent-primary);
    font-weight: 800;
    font-size: 1rem;
}

.price-value {
    color: var(--accent-primary);
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.price-label {
    color: var(--text-muted);
    font-size: 0.7rem;
    text-transform: uppercase;
}

/* Botón de WhatsApp Gigante (UX Mobile) */
.btn-whatsapp-direct {
    background: var(--accent-primary);
    color: var(--bg-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 16px;
    border-radius: 14px;
    text-decoration: none;
    font-weight: 800;
    font-size: 0.9rem;
    transition: 0.2s;
}

.btn-whatsapp-direct:active {
    transform: scale(0.96);
}

/* Contenedor para productos sin foto */
.img-placeholder {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed var(--glass-border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 1.1rem;
    filter: grayscale(1);
}

tr:hover .img-placeholder {
    border-color: var(--accent-secondary);
    background: rgba(56, 189, 248, 0.05);
    filter: grayscale(0);
}

/* Placeholder dinámico para cursos sin imagen */
.course-img-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.course-img-placeholder::before {
    content: '';
    position: absolute;
    width: 150%;
    height: 150%;
    background: radial-gradient(circle, rgba(173, 255, 47, 0.05) 0%, transparent 70%);
    animation: rotate-light 10s linear infinite;
}

.placeholder-content { text-align: center; z-index: 1; }

.placeholder-icon {
    font-size: 2.5rem;
    display: block;
    margin-bottom: 10px;
    filter: drop-shadow(0 0 10px rgba(173, 255, 47, 0.3));
}

.placeholder-logo {
    font-weight: 900;
    font-size: 1rem;
    letter-spacing: -1px;
    color: #fff;
    opacity: 0.8;
}

.placeholder-logo span { color: var(--accent-primary); }

.placeholder-content small {
    display: block;
    font-size: 0.6rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 2px;
    margin-top: 5px;
}

@keyframes rotate-light {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.course-card-premium:hover .course-img-placeholder {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
}

/* Contenedor de Prototipado */
.tech-product-placeholder {
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, #0f172a 0%, #020617 100%);
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.floating-circuit {
    position: absolute;
    inset: 0;
    opacity: 0.1;
    background-image: url('https://www.transparenttextures.com/patterns/carbon-fibre.png');
    filter: invert(1);
}

.hex-container {
    width: 80px;
    height: 90px;
    background: rgba(173, 255, 47, 0.1);
    clip-path: polygon(50% 0%, 100% 25%, 100% 75%, 50% 100%, 0% 75%, 0% 25%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
    border: 1px solid rgba(173, 255, 47, 0.3);
    animation: float 3s ease-in-out infinite;
}

.hex-inner {
    font-size: 2.5rem;
    filter: drop-shadow(0 0 10px var(--accent-primary));
}

.scanning-label {
    font-size: 9px;
    font-weight: 900;
    color: var(--accent-primary);
    letter-spacing: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.dot {
    width: 6px;
    height: 6px;
    background: var(--accent-primary);
    border-radius: 50%;
    animation: pulse-dot 1s infinite;
}

.tech-specs-mini {
    margin-top: 10px;
    display: flex;
    justify-content: center;
    gap: 15px;
    font-family: monospace;
    font-size: 10px;
    color: rgba(255,255,255,0.2);
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.3; transform: scale(1.2); }
}

.scanner-vignette {
    position: absolute;
    inset: 0;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.8);
    pointer-events: none;
}

.product-item:hover .hex-container {
    background: var(--accent-primary);
    border-color: #000;
}

.product-item:hover .hex-inner {
    filter: none;
    transform: scale(1.1);
}

.thumbnail-wrapper { position: relative; height: 190px; overflow: hidden; border-radius: 12px; }

.course-video-preview {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 2;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.course-card-premium:hover .course-video-preview { opacity: 1; }
.course-img { position: relative; z-index: 1; }

/* Badges de Niveles */
.basico { color: #ADFF2F; background: rgba(173, 255, 47, 0.1); padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(173, 255, 47, 0.3); font-size: 0.75rem; font-weight: 700; }
.intermedio { color: #FFA500; background: rgba(255, 165, 0, 0.1); padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(255, 165, 0, 0.3); font-size: 0.75rem; font-weight: 700; }
.avanzado { color: #FF4444; background: rgba(255, 68, 68, 0.1); padding: 4px 8px; border-radius: 4px; border: 1px solid rgba(255, 68, 68, 0.3); font-size: 0.75rem; font-weight: 700; }

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(173, 255, 47, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 10px rgba(173, 255, 47, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(173, 255, 47, 0); }
}

.tech-option {
    border: 1px solid rgba(255, 255, 255, 0.05);
    background: linear-gradient(145deg, rgba(255,255,255,0.03) 0%, rgba(255,255,255,0.01) 100%);
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    border-radius: 16px;
    padding: 20px;
    transition: 0.3s;
}

.tech-option:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(56, 189, 248, 0.15);
    border-color: rgba(56, 189, 248, 0.4);
}