/* ========================================================================= */
/* VARIABLES GLOBALES                                                        */
/* ========================================================================= */
:root {
    --bg-dark: #0f172a;
    /* Slate 900 */
    --bg-darker: #020617;
    /* Slate 950 */

    --accent-blue: #3b82f6;
    /* Blue 500 */
    --accent-cyan: #06b6d4;
    /* Cyan 500 */
    --accent-purple: #8b5cf6;
    /* Violet 500 */

    --text-main: #f8fafc;
    /* Slate 50 */
    --text-muted: #94a3b8;
    /* Slate 400 */

    --glass-bg: rgba(30, 41, 59, 0.4);
    /* Panel background */
    --glass-border: rgba(255, 255, 255, 0.1);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.37);

    --font-heading: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* ========================================================================= */
/* RESET Y GENERAL                                                           */
/* ========================================================================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-darker);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    position: relative;
}

h1,
h2,
h3,
h4 {
    font-family: var(--font-heading);
    font-weight: 700;
    letter-spacing: -0.02em;
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* ========================================================================= */
/* UTILS & GLASSMORPHISM                                                     */
/* ========================================================================= */
.glass-panel {
    background: var(--glass-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid var(--glass-border);
    box-shadow: var(--glass-shadow);
    border-radius: 16px;
}

.gradient-text {
    background: linear-gradient(135deg, var(--accent-cyan), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

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

.text-muted {
    color: var(--text-muted);
}

.mt-4 {
    margin-top: 1rem;
}

.ml-2 {
    margin-left: 0.5rem;
}

/* Botones */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: 8px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    border: none;
    font-family: var(--font-body);
}

.btn:hover {
    transform: translateY(-2px);
}

.btn-primary {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    color: white;
    box-shadow: 0 4px 15px rgba(59, 130, 246, 0.4);
}

.btn-primary:hover {
    box-shadow: 0 6px 20px rgba(59, 130, 246, 0.6);
}

.btn-secondary {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-main);
    border: 1px solid var(--glass-border);
}

.btn-secondary:hover {
    background: rgba(255, 255, 255, 0.1);
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--accent-blue);
    color: var(--accent-blue);
}

.btn-outline:hover {
    background: rgba(59, 130, 246, 0.1);
    color: white;
}

/* Bolas de Luz Fondo (Glow Orbs) */
.glow-orb {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    z-index: -1;
    opacity: 0.5;
    animation: float 20s infinite ease-in-out alternate;
}

.orb-1 {
    width: 400px;
    height: 400px;
    background: var(--accent-blue);
    top: -100px;
    left: -100px;
}

.orb-2 {
    width: 500px;
    height: 500px;
    background: var(--accent-purple);
    bottom: 20%;
    right: -150px;
    animation-delay: -5s;
}

.orb-3 {
    width: 300px;
    height: 300px;
    background: var(--accent-cyan);
    top: 40%;
    left: 30%;
    animation-delay: -10s;
    opacity: 0.3;
}

@keyframes float {
    0% {
        transform: translate(0, 0) scale(1);
    }

    50% {
        transform: translate(50px, 50px) scale(1.1);
    }

    100% {
        transform: translate(-30px, -20px) scale(0.9);
    }
}

/* ========================================================================= */
/* NAVBAR                                                                    */
/* ========================================================================= */
.navbar {
    position: fixed;
    top: 1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    z-index: 1000;
    border-radius: 100px;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 800;
}

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

.nav-link {
    font-weight: 500;
    color: var(--text-muted);
}

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

/* ========================================================================= */
/* SECCIONES Y LAYOUT                                                        */
/* ========================================================================= */
main {
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    gap: 6rem;
}

.section {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

.section-header {
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 0.5rem;
}

/* HERO */
.hero {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
}

.hero-content {
    flex: 1;
}

.badge {
    display: inline-flex;
    align-items: center;
    padding: 0.5rem 1rem;
    border-radius: 50px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background-color: #10b981;
    border-radius: 50%;
    margin-right: 8px;
    box-shadow: 0 0 10px #10b981;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
    }

    70% {
        transform: scale(1);
        box-shadow: 0 0 0 10px rgba(16, 185, 129, 0);
    }

    100% {
        transform: scale(0.95);
        box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
    }
}

.hero-title {
    font-size: 4rem;
    line-height: 1.1;
    margin-bottom: 1.5rem;
}

.hero-subtitle {
    font-size: 1.125rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: 1rem;
}

/* TERMINAL MOCKUP */
.hero-visual {
    flex: 1;
    perspective: 1000px;
}

.terminal-window {
    width: 100%;
    height: 350px;
    transform: rotateY(-5deg) rotateX(5deg);
    transition: transform 0.5s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.terminal-window:hover {
    transform: rotateY(0) rotateX(0);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.75rem 1rem;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--glass-border);
}

.terminal-dots {
    display: flex;
    gap: 6px;
    margin-right: 15px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.dot.red {
    background: #ff5f56;
}

.dot.yellow {
    background: #ffbd2e;
}

.dot.green {
    background: #27c93f;
}

.terminal-title {
    color: var(--text-muted);
    font-size: 0.8rem;
    font-family: monospace;
}

.terminal-body {
    padding: 1.5rem;
    font-family: monospace;
    font-size: 0.9rem;
    color: #a8b2d1;
    overflow-y: auto;
    flex: 1;
}

/* GRID DE ARQUITECTURA */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.card {
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: transform 0.3s ease;
}

.tilt-card:hover {
    transform: translateY(-10px);
}

.card-icon {
    font-size: 2.5rem;
    color: var(--accent-cyan);
    margin-bottom: 0.5rem;
}

.card h3 {
    font-size: 1.5rem;
}

.card p {
    color: var(--text-muted);
}

/* FEATURES */
.feature-row {
    display: flex;
    align-items: center;
    gap: 4rem;
    margin-bottom: 6rem;
}

.feature-row.reverse {
    flex-direction: row-reverse;
}

.feature-text {
    flex: 1;
}

.feature-text h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin-bottom: 2rem;
}

.feature-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.05rem;
}

.feature-list i {
    color: var(--accent-purple);
    font-size: 1.25rem;
}

.feature-visual {
    flex: 1;
    height: 350px;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

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

.boe-mockup {
    text-align: center;
    padding: 2rem;
    border: 1px dashed var(--accent-cyan);
    border-radius: 12px;
    background: rgba(6, 182, 212, 0.05);
    width: 100%;
}

.text-accent {
    color: var(--accent-cyan);
    margin-bottom: 1rem;
}

.log-line {
    font-family: monospace;
    margin-bottom: 0.8rem;
    padding: 0.8rem;
    border-radius: 6px;
    background: rgba(0, 0, 0, 0.3);
}

.log-line.success {
    border-left: 3px solid #10b981;
}

.log-line.info {
    border-left: 3px solid var(--accent-blue);
}

/* VIDEO CONTAINER */
.video-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.video-placeholder {
    text-align: center;
    color: var(--text-muted);
}

/* FOOTER */
.footer {
    margin-top: 6rem;
    padding: 3rem 0;
    border-radius: 24px 24px 0 0;
    border-bottom: none;
}

.footer-content {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.footer-left h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.footer-left p {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-right {
    text-align: right;
}

.social-links {
    margin-top: 1rem;
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
}

.social-links a {
    font-size: 1.5rem;
    color: var(--text-muted);
    transition: color 0.2s;
}

.social-links a:hover {
    color: var(--accent-purple);
}

/* RESPONSIVE */
@media (max-width: 992px) {

    .hero,
    .feature-row {
        flex-direction: column;
        text-align: center;
    }

    .feature-row.reverse {
        flex-direction: column;
    }

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

    .hero-title {
        font-size: 3rem;
    }

    .terminal-window {
        transform: none;
        margin-top: 2rem;
    }

    .nav-links {
        display: none;
        /* Simplificamos navbar en mobile p/ejemplo */
    }
}