/* SISTEMA DE DISEÑO ESTÉTICO: upAI.es (V1) */

:root {
    /* Paleta Psicodélica HSL (Colores vivos, neón, vibrantes) */
    --bg-dark: 250, 40%, 4%;           /* #06040b (Fondo profundo con matiz violeta) */
    --neon-cyan: 180, 100%, 50%;       /* #00ffff */
    --neon-magenta: 320, 100%, 50%;    /* #ff00aa */
    --neon-violet: 270, 100%, 55%;     /* #8f00ff */
    --neon-green: 120, 100%, 50%;      /* #00ff00 */
    --text-white: 0, 0%, 96%;
    --text-muted: 240, 10%, 65%;
    
    /* Easing de animaciones premium */
    --ease-out-expo: cubic-bezier(0.16, 1, 0.3, 1);
    --transition-smooth: all 0.4s var(--ease-out-expo);
}

/* Reset y Estilos Globales */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: hsl(var(--bg-dark));
    color: hsl(var(--text-white));
    overflow-x: hidden;
    line-height: 1.6;
}

/* Canvas del fondo interactivo */
#fluid-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    background-color: hsl(var(--bg-dark));
}

/* Capa de ruido analógico de fondo */
.noise-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
    opacity: 0.04;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)'/%3E%3C/svg%3E");
}

/* Barra de Navegación Glassmorphic */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 100;
    background: rgba(10, 8, 19, 0.65);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    transition: var(--transition-smooth);
}

.navbar-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1.2rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    text-decoration: none;
    font-size: 1.8rem;
    font-weight: 900;
    letter-spacing: -1px;
}

.logo-up {
    color: hsl(var(--neon-magenta));
}

.logo-ai {
    color: hsl(var(--neon-cyan));
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.4);
}

.logo-dot {
    color: hsl(var(--text-white));
    font-size: 1.2rem;
    font-weight: 400;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-link {
    text-decoration: none;
    color: hsl(var(--text-muted));
    font-weight: 500;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.nav-link:hover {
    color: hsl(var(--text-white));
}

.btn-cta-nav {
    text-decoration: none;
    color: hsl(var(--text-white));
    background: linear-gradient(135deg, hsl(var(--neon-magenta)), hsl(var(--neon-violet)));
    padding: 0.6rem 1.2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 0.9rem;
    box-shadow: 0 0 15px rgba(255, 0, 170, 0.3);
    transition: var(--transition-smooth);
}

.btn-cta-nav:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 25px rgba(255, 0, 170, 0.6);
}

/* Hero Section */
.hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 8rem 2rem 4rem 2rem;
    text-align: center;
    position: relative;
}

.hero-content {
    max-width: 850px;
    z-index: 10;
}

.badge-container {
    display: inline-block;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.5rem 1.2rem;
    border-radius: 50px;
    margin-bottom: 2rem;
    backdrop-filter: blur(5px);
    animation: fadeIn 1s var(--ease-out-expo);
}

.badge-text {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: linear-gradient(90deg, hsl(var(--neon-cyan)), hsl(var(--neon-magenta)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-title {
    font-size: 4.2rem;
    font-weight: 900;
    line-height: 1.1;
    letter-spacing: -2px;
    word-spacing: 0.35em; /* Mayor espaciado entre palabras para legibilidad premium */
    margin-bottom: 1.5rem;
    animation: fadeInUp 1.2s var(--ease-out-expo);
}

.highlight-ai, .highlight-ia {
    font-weight: 900;
    background: linear-gradient(135deg, hsl(var(--neon-cyan)), hsl(var(--neon-magenta)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 10px hsla(var(--neon-cyan), 0.7));
    animation: textPulse 3s infinite alternate ease-in-out;
    display: inline-block;
}

.highlight-ia {
    animation-delay: 0.6s;
    filter: drop-shadow(0 0 10px hsla(var(--neon-magenta), 0.7));
}

.highlight-i, .highlight-a {
    font-weight: 900;
    -webkit-text-fill-color: initial;
    color: hsl(var(--neon-cyan));
    text-shadow: 0 0 10px hsla(var(--neon-cyan), 0.85);
    animation: textGlowPulse 3s infinite alternate ease-in-out;
    display: inline;
}

.highlight-a {
    color: hsl(var(--neon-magenta));
    text-shadow: 0 0 10px hsla(var(--neon-magenta), 0.85);
    animation-delay: 1.5s;
}

@keyframes textPulse {
    0% {
        filter: drop-shadow(0 0 6px hsla(var(--neon-cyan), 0.5));
        transform: scale(1);
    }
    100% {
        filter: drop-shadow(0 0 18px hsla(var(--neon-magenta), 0.8));
        transform: scale(1.02);
    }
}

@keyframes textGlowPulse {
    0% {
        text-shadow: 0 0 6px hsla(var(--neon-cyan), 0.6);
    }
    100% {
        text-shadow: 0 0 20px hsla(var(--neon-magenta), 0.9);
    }
}

.hero-subtitle {
    font-size: 1.25rem;
    color: hsl(var(--text-muted));
    font-weight: 400;
    max-width: 680px;
    margin: 0 auto 3rem auto;
    animation: fadeInUp 1.4s var(--ease-out-expo);
}

.hero-actions {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    animation: fadeInUp 1.6s var(--ease-out-expo);
}

.btn-primary {
    text-decoration: none;
    color: hsl(var(--bg-dark));
    background: hsl(var(--neon-cyan));
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    transition: var(--transition-smooth);
}

.btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 0 35px rgba(0, 255, 255, 0.8);
}

.btn-secondary {
    text-decoration: none;
    color: hsl(var(--text-white));
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    font-size: 1rem;
    backdrop-filter: blur(5px);
    transition: var(--transition-smooth);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-3px);
}

/* Secciones Generales */
.section-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 8rem 2rem;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 5rem auto;
}

.section-title {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -1px;
    margin-bottom: 1.2rem;
}

.gradient-span {
    background: linear-gradient(90deg, hsl(var(--neon-magenta)), hsl(var(--neon-cyan)));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.section-subtitle {
    font-size: 1.1rem;
    color: hsl(var(--text-muted));
}

/* Grid de Tarjetas del Método */
.grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.card {
    background: rgba(15, 12, 28, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3rem 2.5rem;
    border-radius: 24px;
    position: relative;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition-smooth);
    display: flex;
    flex-direction: column;
}

.card-glow:hover {
    border-color: hsla(var(--glow-color), 0.3);
    box-shadow: 0 15px 40px -15px hsla(var(--glow-color), 0.25);
    transform: translateY(-8px);
}

.card-icon {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin-bottom: 2rem;
}

.icon-cyan { stroke: hsl(var(--neon-cyan)); }
.icon-magenta { stroke: hsl(var(--neon-magenta)); }
.icon-violet { stroke: hsl(var(--neon-violet)); }

.card-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.card-description {
    font-size: 0.95rem;
    color: hsl(var(--text-muted));
    flex-grow: 1;
    margin-bottom: 2rem;
}

.card-step {
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.25);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 1.2rem;
}

/* Sección de la Suite SaaS */
.bg-dark-gradient {
    position: relative;
}

.suite-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.suite-card {
    background: rgba(10, 8, 19, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 3rem 2.5rem;
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
    transition: var(--transition-smooth);
}

.suite-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2.5rem;
}

.badge-active {
    background: rgba(0, 255, 255, 0.08);
    border: 1px solid rgba(0, 255, 255, 0.2);
    color: hsl(var(--neon-cyan));
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.badge-upcoming {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: hsl(var(--text-muted));
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
}

.suite-card-number {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.2);
}

.suite-card-title {
    font-size: 2rem;
    font-weight: 900;
    margin-bottom: 0.25rem;
}

.suite-card-tagline {
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--neon-magenta));
    margin-bottom: 1.5rem;
}

.suite-card-desc {
    font-size: 0.95rem;
    color: hsl(var(--text-muted));
    margin-bottom: 2.5rem;
    flex-grow: 1;
}

.btn-product {
    text-decoration: none;
    color: hsl(var(--text-white));
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 0.9rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: var(--transition-smooth);
}

.btn-product i {
    width: 16px;
    height: 16px;
}

.product-active:hover {
    border-color: rgba(0, 255, 255, 0.25);
    box-shadow: 0 20px 40px -15px rgba(0, 255, 255, 0.15);
}

.product-active:hover .btn-product {
    background: hsl(var(--neon-cyan));
    color: hsl(var(--bg-dark));
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.4);
    border-color: transparent;
}

.btn-product-disabled {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.03);
    color: rgba(255, 255, 255, 0.15);
    padding: 0.9rem;
    border-radius: 16px;
    font-weight: 600;
    font-size: 0.95rem;
    text-align: center;
    cursor: not-allowed;
}

/* Casos y Presencia */
.pipeline-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
}

.pipeline-card {
    background: rgba(255, 255, 255, 0.01);
    border: 1px solid rgba(255, 255, 255, 0.03);
    border-radius: 24px;
    padding: 2.5rem;
    backdrop-filter: blur(5px);
}

.pipeline-badge {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: hsl(var(--neon-green));
    background: rgba(0, 255, 0, 0.05);
    border: 1px solid rgba(0, 255, 0, 0.15);
    padding: 0.3rem 0.8rem;
    border-radius: 50px;
    margin-bottom: 1.5rem;
}

.pipeline-title {
    font-size: 1.5rem;
    font-weight: 800;
    margin-bottom: 0.8rem;
}

.pipeline-desc {
    font-size: 0.95rem;
    color: hsl(var(--text-muted));
}

/* Formulario de Contacto */
.contact-box {
    background: linear-gradient(135deg, rgba(15, 12, 28, 0.65), rgba(10, 8, 19, 0.65));
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 32px;
    padding: 4rem 3rem;
    max-width: 800px;
    margin: 0 auto;
    backdrop-filter: blur(20px);
    box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.6);
}

.contact-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto 3rem auto;
}

.contact-header h3 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1rem;
}

.contact-header p {
    color: hsl(var(--text-muted));
}

.contact-form {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.8rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9rem;
    font-weight: 600;
    color: hsl(var(--text-white));
}

.form-group input,
.form-group textarea {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 1rem;
    border-radius: 12px;
    color: hsl(var(--text-white));
    font-family: inherit;
    font-size: 0.95rem;
    transition: var(--transition-smooth);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: hsl(var(--neon-cyan));
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.15);
}

.btn-submit {
    background: linear-gradient(135deg, hsl(var(--neon-magenta)), hsl(var(--neon-violet)));
    border: none;
    color: hsl(var(--text-white));
    padding: 1.1rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(255, 0, 170, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: var(--transition-smooth);
}

.btn-submit i {
    width: 18px;
    height: 18px;
}

.btn-submit:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(255, 0, 170, 0.50);
}

/* Footer */
.footer {
    border-top: 1px solid rgba(255, 255, 255, 0.04);
    padding: 3rem 2rem;
    background: rgba(6, 4, 11, 0.9);
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.footer-copyright {
    font-size: 0.85rem;
    color: hsl(var(--text-muted));
}

.footer-links {
    display: flex;
    gap: 1.5rem;
}

.footer-links a {
    text-decoration: none;
    color: hsl(var(--text-muted));
    font-size: 0.85rem;
    transition: var(--transition-smooth);
}

.footer-links a:hover {
    color: hsl(var(--text-white));
}

/* Animaciones */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

/* Responsividad */
@media (max-width: 768px) {
    .navbar-container {
        padding: 1rem;
    }
    .nav-links {
        display: none; /* Simplificado para la primera iteración sin menú móvil */
    }
    .hero-title {
        font-size: 2.8rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
        align-items: center;
    }
    .btn-primary, .btn-secondary {
        width: 100%;
        max-width: 300px;
    }
    .section-title {
        font-size: 2.2rem;
    }
    .contact-box {
        padding: 2.5rem 1.5rem;
    }
    .footer-container {
        flex-direction: column;
        text-align: center;
    }
}
