/* =========================================== */
/* =========== Variables Globales ============ */
/* =========================================== */
:root {
    --bg: #0a0a0a;
    --terminal-bg: #0f0f0f;
    --text: #e8e8e8;
    --text-muted: #888;
    --accent: #4aff4a;
    --accent-secondary: #4a88ff;
    --border: #222;
    --success: #00cc66;
    --warning: #ffcc00;
    --error: #ff4d4d;
    --max-width: 1200px;
    --radius-sm: 2px;
    --radius-md: 4px;
}

.logo-img {
    height: 25px;
    width: auto;
    display: block;
}

/* =========================================== */
/* ============== Estilos Base =============== */
/* =========================================== */

/* Base */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    scroll-behavior: smooth;
}

body {
    background-color: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

.mono {
    font-family: 'IBM Plex Mono', monospace;
}

/* Container */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}


/* =========================================== */
/* ================= Hero Section ============ */
/* =========================================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 6rem 0 4rem;
    position: relative;
}

.hero-terminal {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 2rem;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

.terminal-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border);
}

.terminal-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
}

.terminal-dot.red {
    background-color: var(--error);
}

.terminal-dot.yellow {
    background-color: var(--warning);
}

.terminal-dot.green {
    background-color: var(--success);
}

.terminal-content {
    font-family: 'IBM Plex Mono', monospace;
    line-height: 1.8;
}

.terminal-prompt {
    color: var(--accent);
    margin-right: 0.5rem;
}

.terminal-command {
    color: var(--accent-secondary);
}

.terminal-output {
    margin-top: 1rem;
    color: var(--text-muted);
}

.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    line-height: 1.1;
    margin-bottom: 1.5rem;
    font-family: 'Inter', sans-serif;
    text-align: center;
}

.hero-title .accent {
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
}

.hero-subtitle {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
    text-align: center !important;
}

/* Stats */
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin: 2rem 0;
}

.stat {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.stat:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 255, 74, 0.1);
}

.stat-value {
    font-size: 2rem;
    font-weight: 600;
    color: var(--accent);
    margin-bottom: 0.5rem;
    font-family: 'IBM Plex Mono', monospace;
}

.stat-label {
    font-size: 0.9rem;
    color: var(--text-muted);
}


/* =========================================== */
/* ================= About Section =========== */
/* =========================================== */
.about-section {
    padding: 3rem 0;
    position: relative;
    overflow: hidden;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    display: inline-block;
    font-family: 'IBM Plex Mono', monospace;
}

.section-title::after {
    content: "";
    position: absolute;
    bottom: -10px;
    left: 0;
    width: 50px;
    height: 3px;
    background-color: var(--accent);
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-muted);
    z-index: 2;
    position: relative;
}

.stat-label ul {
    list-style: none;
    padding-left: 0;
}

.stat-label li {
    margin-bottom: 0.5rem;
    position: relative;
    padding-left: 1.5rem;
}

.stat-label li::before {
    content: '›';
    position: absolute;
    left: 0;
    top: 0;
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
}

.card-header {
    display: flex;
    align-items: center;
    margin-bottom: 1.5rem;
}

.card-icon {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 1rem;
    font-size: 1.5rem;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
    color: var(--accent);
    font-family: 'IBM Plex Mono', monospace;
}

.card-subtitle {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.card-content {
    color: var(--text);
    line-height: 1.6;
}

/* Grid Lines (Usadas en About o Hero) */
.grid-line {
    position: absolute;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--border), transparent);
    width: 100%;
    z-index: -1;
}

.grid-line:nth-child(1) {
    top: 25%;
}

.grid-line:nth-child(2) {
    top: 50%;
}

.grid-line:nth-child(3) {
    top: 75%;
}

.grid-line-vertical {
    position: absolute;
    width: 1px;
    background: linear-gradient(180deg, transparent, var(--border), transparent);
    height: 100%;
    z-index: -1;
}

.grid-line-vertical:nth-child(4) {
    left: 25%;
}

.grid-line-vertical:nth-child(5) {
    left: 50%;
}

.grid-line-vertical:nth-child(6) {
    left: 75%;
}


/* =========================================== */
/* ================ Clients Section ========== */
/* =========================================== */
.clients-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    /* Ajusta el tamaño mínimo de los logos */
    gap: 2rem;
    margin-top: 3rem;
}

.client-item {
    background-color: var(--terminal-bg);
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    padding: 1rem;
    /* Ajusta el padding para los logos */
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
    /* Altura mínima para cada contenedor de logo */
    transition: all 0.3s ease;
    box-shadow: 0 0 10px rgba(74, 255, 74, 0.05);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.client-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(74, 255, 74, 0.1);
}

.client-logo-img {
    max-width: 100%;
    max-height: 80px;
    /* Altura máxima de la imagen del logo */
    filter: grayscale(100%) brightness(150%);
    /* Estilo cyberpunk: monocromático y brillante */
    opacity: 0.7;
    transition: all 0.3s ease;
    display: block;
    /* Asegura que la imagen sea un bloque */
}

.client-item:hover .client-logo-img {
    filter: grayscale(0%) brightness(100%);
    /* Color y brillo normal al pasar el ratón */
    opacity: 1;
}


/* =========================================== */
/* ================= Footer ================== */
/* =========================================== */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--border);
    margin-top: 4rem;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-text {
    color: var(--text-muted);
    font-size: 0.9rem;
}

.footer-heart {
    color: var(--error);
}


/* =========================================== */
/* ================ Animaciones ============== */
/* =========================================== */
@keyframes pulse {
    0% {
        opacity: 0.5;
    }

    50% {
        opacity: 1;
    }

    100% {
        opacity: 0.5;
    }
}

.pulse {
    animation: pulse 2s infinite;
}

@keyframes slideIn {
    from {
        transform: translateY(20px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in {
    animation: slideIn 0.5s ease forwards;
}


/* =========================================== */
/* ================ Responsive ================ */
/* =========================================== */
@media (max-width: 768px) {
    .stats {
        grid-template-columns: 1fr;
    }

    .hero-title {
        font-size: 2rem;
    }

    .clients-grid {
        grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
        /* Ajuste en móviles */
        gap: 1rem;
    }

    .client-item {
        min-height: 90px;
        padding: 0.75rem;
    }

    .client-logo-img {
        max-height: 60px;
    }


    .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =========================================== */
/* ============== Accesibilidad ============== */
/* =========================================== */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}