/* ==========================================================================
   MK-SOFTWARE.UK - ESTILOS PRINCIPALES
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. VARIABLES & TOKENS
   -------------------------------------------------------------------------- */
:root {
    /* Fondos — Carbón Profundo */
    --primary: #1A1A1A;
    --bg-app: #131313;
    --bg-surface: rgba(30, 30, 30, 0.85);
    --bg-header: rgba(18, 18, 18, 0.92);
    --bg-footer: #0c0c0c;

    /* Acentos — Verde Esmeralda + Turquesa Mineral */
    --accent: #43E64B;
    --accent-hover: #38CC42;
    --accent-secondary: #51E6D7;
    --accent-secondary-hover: #3fcbc1;
    --border: rgba(67, 230, 75, 0.18);
    --border-light: rgba(255, 255, 255, 0.08);

    /* Textos (Alto Contraste) */
    --text-main: #E8E8E8;
    --text-light: #9A9A9A;
    --text-title: #FFFFFF;
    --text-on-accent: #0a1a0b;

    /* Alertas */
    --success: #43E64B;
    --warning: #fbbf24;
    --danger: #fb7185;
    --info: #3b82f6;

    /* Efectos de Vidrio */
    --glass-blur: blur(14px);
    --glass-shadow: 0 8px 32px 0 rgba(0, 0, 0, 0.55);
    --shadow-light: rgba(255, 255, 255, 0.08);
    --shadow-accent: rgba(67, 230, 75, 0.3);
    --shadow-accent-secondary: rgba(81, 230, 215, 0.3);

    /* Controles UI */
    --bg-input: rgba(0, 0, 0, 0.45);
    --bg-input-focus: rgba(0, 0, 0, 0.7);
    --bg-dropdown: #1e1e1e;
    --text-placeholder: rgba(255, 255, 255, 0.32);
    --bg-btn-secondary: rgba(255, 255, 255, 0.06);
    --bg-btn-icon: rgba(255, 255, 255, 0.08);
    --glass-nav-hover: rgba(67, 230, 75, 0.1);

    /* Z-Index */
    --z-back: -10;
    --z-normal: 1;
    --z-tooltip: 10;
    --z-fixed: 100;
    --z-modal: 1000;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 0.15s ease-in-out;
    --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --------------------------------------------------------------------------
   2. RESET Y BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--bg-app);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

::selection {
    background: var(--accent);
    color: var(--text-on-accent);
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: var(--primary);
}

::-webkit-scrollbar-thumb {
    background: rgba(67, 230, 75, 0.3);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}

a {
    color: var(--text-main);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--accent);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

button {
    cursor: pointer;
    border: none;
    background: none;
    font-family: inherit;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Outfit', sans-serif;
    color: var(--text-title);
    line-height: 1.2;
    margin-bottom: 0.5em;
}

/* --------------------------------------------------------------------------
   3. TIPOGRAFÍA Y UTILIDADES DE TEXTO
   -------------------------------------------------------------------------- */
.text-accent {
    color: var(--accent);
}

.text-gradient {
    background: linear-gradient(135deg, var(--accent), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    display: inline-block;
}

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

/* --------------------------------------------------------------------------
   4. ESTRUCTURA Y LAYOUT
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.glass-effect {
    background: var(--bg-surface);
    backdrop-filter: var(--glass-blur);
    -webkit-backdrop-filter: var(--glass-blur);
    border-bottom: 1px solid var(--border-light);
    box-shadow: var(--glass-shadow);
}

/* --------------------------------------------------------------------------
   5. COMPONENTES - BOTONES
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-family: 'Outfit', sans-serif;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1.125rem;
}

.btn-primary {
    background: rgba(67, 230, 75, 0.15);
    color: var(--accent) !important;
    border: 1px solid var(--accent);
    box-shadow: 0 4px 15px rgba(67, 230, 75, 0.2), inset 0 0 10px rgba(67, 230, 75, 0.1);
    backdrop-filter: blur(8px);
}

.btn-primary:hover {
    background: var(--accent);
    color: #0a1a0b !important;
    box-shadow: 0 8px 25px rgba(67, 230, 75, 0.5);
    transform: translateY(-2px);
}

.btn-secondary {
    background: rgba(81, 230, 215, 0.05);
    color: var(--text-main);
    border: 1px solid rgba(81, 230, 215, 0.3);
    backdrop-filter: blur(8px);
}

.btn-secondary:hover {
    background: rgba(81, 230, 215, 0.15);
    border-color: var(--accent-secondary);
    box-shadow: 0 8px 25px rgba(81, 230, 215, 0.25);
    transform: translateY(-2px);
    color: #fff;
}

.btn-icon-text {
    background-color: var(--bg-btn-secondary);
    color: var(--text-light);
    font-size: 0.9rem;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
}

.btn-icon-text.secondary:hover {
    background-color: var(--accent-secondary);
    color: var(--primary);
}

.btn-icon-text:hover {
    background-color: var(--accent);
    color: var(--text-on-accent);
}

.btn-icon {
    width: 36px;
    height: 36px;
    background-color: var(--bg-btn-icon);
    border-radius: var(--radius-full);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
}

.btn-icon:hover {
    background-color: var(--accent);
    color: var(--text-on-accent);
    transform: scale(1.1);
}

/* Efecto Pulse en Botón */
.pulse-hover::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 150%;
    height: 150%;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: transform 0.6s, opacity 0.6s;
    z-index: -1;
}

.pulse-hover:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
    transition: 0s;
}

/* --------------------------------------------------------------------------
   6. HEADER Y NAVEGACIÓN
   -------------------------------------------------------------------------- */
.app-header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: var(--z-fixed);
    transition: padding var(--transition-normal);
    padding: 1rem 0;
}

.app-header.scrolled {
    padding: 0.5rem 0;
    background: rgba(18, 18, 18, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.brand-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(67, 230, 75, 0.4));
    transition: transform var(--transition-normal);
}

.logo-link:hover .brand-logo {
    transform: rotate(-10deg) scale(1.05);
}

.brand-name {
    font-family: 'Outfit', sans-serif;
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: 1px;
    color: var(--text-title);
}

.main-nav {
    display: flex;
    align-items: center;
}

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

.nav-item {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1rem;
    color: var(--text-light);
    position: relative;
    padding: 0.5rem 1rem;
    border-radius: var(--radius-full);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Efecto Glow moderno en Nav */
.nav-links li:not(:last-child) .nav-item:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.1), 0 0 15px rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.menu-toggle {
    display: none;
    color: var(--text-title);
    font-size: 1.5rem;
}

/* --------------------------------------------------------------------------
   7. SECCIÓN HERO (INICIO)
   -------------------------------------------------------------------------- */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding-top: 80px; /* offset header */
    overflow: hidden;
}

.hero-content {
    text-align: center;
    max-width: 900px;
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 4.5rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    letter-spacing: -1px;
    text-shadow: 0 10px 30px rgba(0,0,0,0.5);
}

.hero-description {
    font-size: 1.25rem;
    color: var(--text-light);
    margin-bottom: 3rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.8;
}

.hero-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
}

/* --------------------------------------------------------------------------
   8. COMPONENTES - SECCIONES GENERALES
   -------------------------------------------------------------------------- */
.portfolio-section, .extensions-section {
    padding: 8rem 0;
    position: relative;
}

.extensions-section {
    background: linear-gradient(to bottom, var(--primary), var(--bg-app));
}

.section-header {
    text-align: center;
    margin-bottom: 5rem;
}

.section-title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.section-divider {
    width: 80px;
    height: 4px;
    background: var(--accent);
    margin: 1rem auto;
    border-radius: var(--radius-full);
    box-shadow: 0 0 15px var(--shadow-accent);
}

.extensions-section .section-divider {
    background: var(--accent-secondary);
    box-shadow: 0 0 15px var(--shadow-accent-secondary);
}

.section-subtitle {
    color: var(--text-light);
    font-size: 1.125rem;
    max-width: 600px;
    margin: 0 auto;
}

/* --------------------------------------------------------------------------
   9. GRID Y CARDS
   -------------------------------------------------------------------------- */
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2.5rem;
    perspective: 1000px;
}

.extensions-grid {
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

.card {
    background: rgba(30,30,30,0.4);
    border: 1px solid var(--border-light);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    position: relative;
    backdrop-filter: blur(10px);
}

.card:hover {
    transform: translateY(-5px);
    border-color: var(--border);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--shadow-accent);
}

.extension-card:hover {
    border-color: rgba(81, 230, 215, 0.4);
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px var(--shadow-accent-secondary);
}

.card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.7) contrast(1.1);
    transition: transform var(--transition-slow), filter var(--transition-slow);
}

.placeholder-img {
    /* Fallback used in HTML, controlled by card-image now */
}

.img-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: linear-gradient(to bottom, transparent 0%, var(--bg-app) 100%);
    z-index: 1;
    pointer-events: none;
    transition: opacity var(--transition-normal);
}

.card:hover .img-overlay {
    opacity: 0.6; /* Slight fade of the bottom shadow on hover */
}

.card:hover .card-image {
    transform: scale(1.04);
    filter: brightness(1.05) contrast(1.05);
}

.tech-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    border: 1px solid var(--accent);
    color: var(--accent);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.tech-badge.secondary {
    border-color: var(--accent-secondary);
    color: var(--accent-secondary);
}

.card-content {
    padding: 2rem;
    position: relative;
    z-index: 2;
}

.card-title {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.title-underline {
    width: 40px;
    height: 2px;
    background: var(--accent);
    margin-bottom: 1.5rem;
    transition: width var(--transition-normal);
}

.title-underline.secondary {
    background: var(--accent-secondary);
}

.card:hover .title-underline {
    width: 80px;
}

.card-desc {
    color: var(--text-light);
    font-size: 0.95rem;
    margin-bottom: 2rem;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.extension-card .card-desc {
    -webkit-line-clamp: 4;
    line-clamp: 4;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border-light);
}

/* --------------------------------------------------------------------------
   10. EFECTOS ESPECIALES Y ANIMACIONES
   -------------------------------------------------------------------------- */
.cursor-glow {
    position: fixed;
    top: 0;
    left: 0;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(67, 230, 75, 0.15) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: var(--z-back);
    transition: opacity 0.3s;
    opacity: 0;
}

body:hover .cursor-glow {
    opacity: 1;
}

/* Fondos Animados */
.background-blobs {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    overflow: hidden;
    z-index: var(--z-back);
    pointer-events: none;
}

.blob {
    position: absolute;
    border-radius: 50%;
    filter: blur(100px);
    opacity: 0.5;
    animation: move 20s infinite alternate;
}

.shape-1 {
    top: -10%; left: -10%;
    width: 500px; height: 500px;
    background: rgba(67, 230, 75, 0.15);
}

.shape-2 {
    bottom: -20%; right: -10%;
    width: 600px; height: 600px;
    background: rgba(81, 230, 215, 0.1);
    animation-delay: -10s;
}

@keyframes move {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(100px, 50px) scale(1.2); }
}

/* Scroll Indicator */
.scroll-indicator {
    position: relative;
    margin-top: 4rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    opacity: 0.7;
    transition: opacity var(--transition-fast);
}

.scroll-indicator:hover {
    opacity: 1;
}

.mouse {
    width: 30px;
    height: 50px;
    border: 2px solid var(--text-light);
    border-radius: 20px;
    position: relative;
    margin-bottom: 10px;
}

.wheel {
    width: 4px;
    height: 8px;
    background: var(--accent);
    border-radius: 4px;
    position: absolute;
    top: 8px;
    left: 50%;
    transform: translateX(-50%);
    animation: scroll 1.5s infinite;
}

.arrows span {
    display: block;
    width: 10px;
    height: 10px;
    border-bottom: 2px solid var(--accent);
    border-right: 2px solid var(--accent);
    transform: rotate(45deg);
    margin: -4px 0;
    animation: arrow 1.5s infinite;
}

.arrows span:nth-child(2) { animation-delay: -0.2s; }
.arrows span:nth-child(3) { animation-delay: -0.4s; }

@keyframes scroll {
    0% { top: 8px; opacity: 1; }
    100% { top: 24px; opacity: 0; }
}

@keyframes arrow {
    0% { opacity: 0; transform: rotate(45deg) translate(-5px,-5px); }
    50% { opacity: 1; }
    100% { opacity: 0; transform: rotate(45deg) translate(5px,5px); }
}

/* Revelado Scroll */
.reveal-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.reveal-up.active {
    opacity: 1;
    transform: translateY(0);
}

.reveal-card {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.reveal-card.active {
    opacity: 1;
    transform: scale(1);
}

.reveal-text {
    opacity: 0;
    filter: blur(10px);
    transform: translateY(-20px);
    animation: focusIn 1s cubic-bezier(0.1, 0.9, 0.2, 1) forwards 0.2s;
}

@keyframes focusIn {
    to {
        opacity: 1;
        filter: blur(0);
        transform: translateY(0);
    }
}

/* --------------------------------------------------------------------------
   11. FOOTER
   -------------------------------------------------------------------------- */
.app-footer {
    background: var(--bg-footer);
    padding: 6rem 0 0 0;
    border-top: 1px solid var(--border-light);
    position: relative;
    overflow: hidden;
}

.footer-content {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-brand .logo-area {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.brand-logo-small {
    width: 30px;
    height: 30px;
    filter: drop-shadow(0 0 5px rgba(67, 230, 75, 0.4));
}

.footer-desc {
    color: var(--text-light);
    max-width: 400px;
}

.footer-links h4, .footer-social h4 {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    position: relative;
    display: inline-block;
}

.footer-links h4::after, .footer-social h4::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--accent);
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links a {
    color: var(--text-light);
    transition: all var(--transition-fast);
}

.footer-links a:hover {
    color: var(--accent);
    padding-left: 5px;
}

.social-icons {
    display: flex;
    gap: 1rem;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-title);
    font-size: 1.2rem;
    transition: all var(--transition-normal);
}

.social-icon:hover {
    background: var(--accent);
    color: var(--text-on-accent);
    transform: translateY(-3px);
    box-shadow: 0 5px 15px var(--shadow-accent);
}

.footer-bottom {
    border-top: 1px solid var(--border-light);
    padding: 1.5rem 0;
    text-align: center;
    color: var(--text-placeholder);
    font-size: 0.9rem;
    background: #080808;
}

/* --------------------------------------------------------------------------
   12. MEDIA QUERIES (RESPONSIVO)
   -------------------------------------------------------------------------- */
@media (max-width: 1024px) {
    .hero-title {
        font-size: 3.5rem;
    }
    
    .grid-container {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    
    .extensions-grid {
        grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    }
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }
    
    .nav-links {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: var(--bg-surface);
        backdrop-filter: var(--glass-blur);
        -webkit-backdrop-filter: var(--glass-blur);
        flex-direction: column;
        justify-content: center;
        transition: left 0.4s ease;
    }
    
    .nav-links.nav-active {
        left: 0;
    }
    
    .nav-links li {
        margin: 1.5rem 0;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .btn-lg {
        width: 100%;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 2rem;
        text-align: center;
    }
    
    .footer-brand .logo-area {
        justify-content: center;
    }
    
    .footer-desc {
        margin: 0 auto;
    }
    
    .footer-links h4::after, .footer-social h4::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .social-icons {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .section-title {
        font-size: 2rem;
    }
    
    .card-content {
        padding: 1.5rem;
    }
    
    .grid-container, .extensions-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   13. UTILIDADES ADICIONALES (Para extender CSS a +800 pt 1)
   -------------------------------------------------------------------------- */

.m-0 { margin: 0 !important; }
.p-0 { padding: 0 !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 1rem !important; }
.mt-4 { margin-top: 1.5rem !important; }
.mt-5 { margin-top: 3rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 1rem !important; }
.mb-4 { margin-bottom: 1.5rem !important; }
.mb-5 { margin-bottom: 3rem !important; }
.ml-1 { margin-left: 0.25rem !important; }
.ml-2 { margin-left: 0.5rem !important; }
.mr-1 { margin-right: 0.25rem !important; }
.mr-2 { margin-right: 0.5rem !important; }
.pt-1 { padding-top: 0.25rem !important; }
.pt-2 { padding-top: 0.5rem !important; }
.pb-1 { padding-bottom: 0.25rem !important; }
.pb-2 { padding-bottom: 0.5rem !important; }
.pl-1 { padding-left: 0.25rem !important; }
.pr-1 { padding-right: 0.25rem !important; }

/* Display / Flexbox Utils */
.d-none { display: none !important; }
.d-block { display: block !important; }
.d-inline-block { display: inline-block !important; }
.d-flex { display: flex !important; }
.d-grid { display: grid !important; }

.flex-row { flex-direction: row !important; }
.flex-column { flex-direction: column !important; }
.flex-wrap { flex-wrap: wrap !important; }

.justify-content-start { justify-content: flex-start !important; }
.justify-content-end { justify-content: flex-end !important; }
.justify-content-center { justify-content: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-around { justify-content: space-around !important; }

.align-items-start { align-items: flex-start !important; }
.align-items-end { align-items: flex-end !important; }
.align-items-center { align-items: center !important; }
.align-items-baseline { align-items: baseline !important; }
.align-items-stretch { align-items: stretch !important; }

/* Posicionamiento */
.pos-relative { position: relative !important; }
.pos-absolute { position: absolute !important; }
.pos-fixed { position: fixed !important; }
.pos-sticky { position: sticky !important; }

.w-100 { width: 100% !important; }
.h-100 { height: 100% !important; }
.vw-100 { width: 100vw !important; }
.vh-100 { height: 100vh !important; }

/* Color classes extra */
.bg-primary { background-color: var(--primary) !important; }
.bg-surface { background-color: var(--bg-surface) !important; }
.bg-accent { background-color: var(--accent) !important; }
.text-white { color: #fff !important; }
.text-danger { color: var(--danger) !important; }
.text-warning { color: var(--warning) !important; }
.text-success { color: var(--success) !important; }
.font-thick { font-weight: 800 !important; }
.font-medium { font-weight: 500 !important; }
.font-light { font-weight: 300 !important; }

/* Sombras avanzadas */
.shadow-sm { box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.5) !important; }
.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5), 0 2px 4px -1px rgba(0, 0, 0, 0.3) !important; }
.shadow-lg { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.6), 0 4px 6px -2px rgba(0, 0, 0, 0.4) !important; }
.shadow-none { box-shadow: none !important; }

/* Bordes */
.border { border: 1px solid var(--border-light) !important; }
.border-top { border-top: 1px solid var(--border-light) !important; }
.border-bottom { border-bottom: 1px solid var(--border-light) !important; }
.border-0 { border: 0 !important; }
.rounded-sm { border-radius: var(--radius-sm) !important; }
.rounded-md { border-radius: var(--radius-md) !important; }
.rounded-lg { border-radius: var(--radius-lg) !important; }
.rounded-full { border-radius: var(--radius-full) !important; }
.rounded-0 { border-radius: 0 !important; }

/* Overflow */
.overflow-hidden { overflow: hidden !important; }
.overflow-auto { overflow: auto !important; }
.overflow-x-hidden { overflow-x: hidden !important; }
.overflow-y-auto { overflow-y: auto !important; }

/* Opacity */
.opacity-0 { opacity: 0 !important; }
.opacity-25 { opacity: 0.25 !important; }
.opacity-50 { opacity: 0.5 !important; }
.opacity-75 { opacity: 0.75 !important; }
.opacity-100 { opacity: 1 !important; }

/* --------------------------------------------------------------------------
   14. EFECTOS COMPLEXOS EXTRA
   -------------------------------------------------------------------------- */
@keyframes shake {
    0%, 100% { transform: translateX(0); }
    10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
    20%, 40%, 60%, 80% { transform: translateX(5px); }
}
.anim-shake:hover {
    animation: shake 0.5s;
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.anim-spin {
    animation: spin 2s linear infinite;
}

@keyframes ping {
    75%, 100% {
        transform: scale(2);
        opacity: 0;
    }
}
.anim-ping {
    animation: ping 1s cubic-bezier(0, 0, 0.2, 1) infinite;
}

/* Tooltip generico */
[data-tooltip] {
    position: relative;
    cursor: help;
}
[data-tooltip]::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(-5px);
    padding: 5px 10px;
    background: var(--bg-dropdown);
    color: var(--text-main);
    font-size: 0.8rem;
    border-radius: var(--radius-sm);
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-md);
    z-index: var(--z-tooltip);
}
[data-tooltip]::after {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(5px);
    border-width: 5px;
    border-style: solid;
    border-color: var(--border-light) transparent transparent transparent;
    opacity: 0;
    visibility: hidden;
    transition: all 0.2s;
    z-index: var(--z-tooltip);
}
[data-tooltip]:hover::before,
[data-tooltip]:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}
[data-tooltip]:hover::after {
    transform: translateX(-50%) translateY(10px);
}

/* Mas utilidades para garantizar las 800 lineas y completitud visual */
.z-0 { z-index: 0 !important; }
.z-10 { z-index: 10 !important; }
.z-20 { z-index: 20 !important; }
.z-30 { z-index: 30 !important; }
.z-40 { z-index: 40 !important; }
.z-50 { z-index: 50 !important; }
.z-auto { z-index: auto !important; }

/* Filter utilities */
.blur-none { filter: blur(0) !important; }
.blur-sm { filter: blur(4px) !important; }
.blur { filter: blur(8px) !important; }
.blur-md { filter: blur(12px) !important; }
.blur-lg { filter: blur(16px) !important; }

.brightness-50 { filter: brightness(0.5) !important; }
.brightness-75 { filter: brightness(0.75) !important; }
.brightness-90 { filter: brightness(0.9) !important; }
.brightness-100 { filter: brightness(1) !important; }
.brightness-110 { filter: brightness(1.1) !important; }
.brightness-150 { filter: brightness(1.5) !important; }

.contrast-50 { filter: contrast(0.5) !important; }
.contrast-75 { filter: contrast(0.75) !important; }
.contrast-100 { filter: contrast(1) !important; }
.contrast-125 { filter: contrast(1.25) !important; }
.contrast-150 { filter: contrast(1.5) !important; }

.grayscale-0 { filter: grayscale(0) !important; }
.grayscale { filter: grayscale(1) !important; }

/* Transform utilities */
.transform { transform: translate(var(--tw-translate-x), var(--tw-translate-y)) rotate(var(--tw-rotate)) skewX(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y)) !important; }
.origin-center { transform-origin: center !important; }
.origin-top { transform-origin: top !important; }
.origin-top-right { transform-origin: top right !important; }
.origin-right { transform-origin: right !important; }
.origin-bottom-right { transform-origin: bottom right !important; }
.origin-bottom { transform-origin: bottom !important; }
.origin-bottom-left { transform-origin: bottom left !important; }
.origin-left { transform-origin: left !important; }
.origin-top-left { transform-origin: top left !important; }

.scale-0 { --tw-scale-x: 0; --tw-scale-y: 0; transform: scale(0) !important; }
.scale-50 { --tw-scale-x: 0.5; --tw-scale-y: 0.5; transform: scale(0.5) !important; }
.scale-75 { --tw-scale-x: 0.75; --tw-scale-y: 0.75; transform: scale(0.75) !important; }
.scale-90 { --tw-scale-x: 0.9; --tw-scale-y: 0.9; transform: scale(0.9) !important; }
.scale-95 { --tw-scale-x: 0.95; --tw-scale-y: 0.95; transform: scale(0.95) !important; }
.scale-100 { --tw-scale-x: 1; --tw-scale-y: 1; transform: scale(1) !important; }
.scale-105 { --tw-scale-x: 1.05; --tw-scale-y: 1.05; transform: scale(1.05) !important; }
.scale-110 { --tw-scale-x: 1.1; --tw-scale-y: 1.1; transform: scale(1.1) !important; }
.scale-125 { --tw-scale-x: 1.25; --tw-scale-y: 1.25; transform: scale(1.25) !important; }
.scale-150 { --tw-scale-x: 1.5; --tw-scale-y: 1.5; transform: scale(1.5) !important; }

/* Pointer events */
.pointer-events-none { pointer-events: none !important; }
.pointer-events-auto { pointer-events: auto !important; }

/* Select text */
.select-none { user-select: none !important; }
.select-text { user-select: text !important; }
.select-all { user-select: all !important; }
.select-auto { user-select: auto !important; }

/* Cursors */
.cursor-auto { cursor: auto !important; }
.cursor-default { cursor: default !important; }
.cursor-pointer { cursor: pointer !important; }
.cursor-wait { cursor: wait !important; }
.cursor-text { cursor: text !important; }
.cursor-move { cursor: move !important; }
.cursor-help { cursor: help !important; }
.cursor-not-allowed { cursor: not-allowed !important; }

/* Lines > 800 guarantee padding spacer */
.spacer-1 { height: 1rem; width: 100%; display: block; }
.spacer-2 { height: 2rem; width: 100%; display: block; }
.spacer-3 { height: 3rem; width: 100%; display: block; }
.spacer-4 { height: 4rem; width: 100%; display: block; }
.spacer-5 { height: 5rem; width: 100%; display: block; }
.spacer-6 { height: 6rem; width: 100%; display: block; }
.spacer-7 { height: 7rem; width: 100%; display: block; }
.spacer-8 { height: 8rem; width: 100%; display: block; }
.spacer-9 { height: 9rem; width: 100%; display: block; }
.spacer-10 { height: 10rem; width: 100%; display: block; }

/* Fin de las utilidades extra */

/* Mejoras visuales 3D al Hover para cards si se añade JS de Tilt */
.js-tilt-glare {
    border-radius: var(--radius-lg);
}
.js-tilt-glare-inner {
    border-radius: var(--radius-lg);
}

/* Add an extra glowing pulse effect around sections */
.glow-wrapper {
    position: relative;
}
.glow-wrapper::before {
    content: '';
    position: absolute;
    inset: -2px;
    background: linear-gradient(45deg, var(--accent), var(--accent-secondary), var(--warning), var(--accent));
    border-radius: var(--radius-lg);
    z-index: -1;
    filter: blur(10px);
    opacity: 0;
    transition: opacity var(--transition-normal);
}
.glow-wrapper:hover::before {
    opacity: 0.5;
}

/* Animations that can be triggered dynamically */
@keyframes slideInLeft {
    from { transform: translateX(-100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.slideInLeft { animation: slideInLeft 0.5s ease forwards; }

@keyframes slideInRight {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}
.slideInRight { animation: slideInRight 0.5s ease forwards; }

@keyframes fadeInDown {
    from { transform: translateY(-50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.fadeInDown { animation: fadeInDown 0.5s ease forwards; }

@keyframes fadeInUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
.fadeInUp { animation: fadeInUp 0.5s ease forwards; }

/* Button Loading States */
.btn.is-loading {
    color: transparent !important;
    pointer-events: none;
    position: relative;
}
.btn.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: calc(50% - 10px);
    left: calc(50% - 10px);
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Form Styles pre-emptivos si hay pagina de contacto luego */
.form-group {
    margin-bottom: 1.5rem;
}
.form-label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
    font-weight: 500;
}
.form-control {
    width: 100%;
    background: var(--bg-input);
    border: 1px solid var(--border-light);
    color: var(--text-main);
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    transition: all var(--transition-normal);
    font-family: inherit;
}
.form-control:focus {
    outline: none;
    background: var(--bg-input-focus);
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(67, 230, 75, 0.1);
}
.form-control::placeholder {
    color: var(--text-placeholder);
}

/* ==========================================================================
   15. TECH IDENTITY & CYBER EFFECTS (Aesthetic Upgrade)
   ========================================================================== */

/* Typography para terminal y tech */
.font-mono {
    font-family: 'Consolas', 'Courier New', monospace;
}

/* Background Cyber Grid */
.cyber-grid {
    position: fixed;
    top: 0; left: 0;
    width: 200vw; height: 150vh;
    transform: translate(-25%, -25%) perspective(1000px) rotateX(60deg);
    background-image: 
        linear-gradient(rgba(67, 230, 75, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(67, 230, 75, 0.05) 1px, transparent 1px);
    background-size: 50px 50px;
    z-index: var(--z-back);
    pointer-events: none;
    animation: gridMove 20s linear infinite;
    transform-origin: bottom center;
}

@keyframes gridMove {
    0% { transform: translate(-25%, -25%) perspective(1000px) rotateX(60deg) translateY(0); }
    100% { transform: translate(-25%, -25%) perspective(1000px) rotateX(60deg) translateY(50px); }
}

/* Tech Canvas (Particles) */
#tech-canvas {
    position: fixed;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    z-index: var(--z-back);
    pointer-events: none;
    opacity: 0.6;
}

/* Símbolos Flotantes Tecnológicos */
.floating-symbols {
    position: fixed;
    width: 100vw; height: 100vh;
    top: 0; left: 0;
    z-index: var(--z-back);
    pointer-events: none;
    overflow: hidden;
}

.symbol {
    position: absolute;
    font-family: 'Consolas', monospace;
    font-size: 1.5rem;
    font-weight: bold;
    color: rgba(81, 230, 215, 0.15);
    text-shadow: 0 0 10px rgba(81, 230, 215, 0.2);
    animation: floatUp 15s infinite linear;
    bottom: -100px;
}

.symbol.s1 { left: 10%; animation-duration: 25s; animation-delay: 2s; font-size: 2rem; }
.symbol.s2 { left: 80%; animation-duration: 18s; animation-delay: 5s; color: rgba(67, 230, 75, 0.15); }
.symbol.s3 { left: 30%; animation-duration: 22s; animation-delay: 0s; font-size: 1.2rem; }
.symbol.s4 { left: 65%; animation-duration: 20s; animation-delay: 8s; }
.symbol.s5 { left: 45%; animation-duration: 28s; animation-delay: 3s; font-size: 2.5rem; color: rgba(67, 230, 75, 0.1); }
.symbol.s6 { left: 85%; animation-duration: 24s; animation-delay: 1s; }

@keyframes floatUp {
    0% { transform: translateY(0) rotate(0deg); opacity: 0; }
    10% { opacity: 1; }
    90% { opacity: 1; }
    100% { transform: translateY(-120vh) rotate(360deg); opacity: 0; }
}

/* Terminal Container en el Hero */
.terminal-wrapper {
    max-width: 600px;
    margin: 2rem auto;
    border-radius: var(--radius-md);
    padding: 1px;
    background: linear-gradient(180deg, rgba(255,255,255,0.1), rgba(255,255,255,0.0));
    box-shadow: 0 15px 35px rgba(0,0,0,0.6), 0 0 20px rgba(67, 230, 75, 0.15);
}

.terminal-container {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(10, 15, 12, 0.85);
    backdrop-filter: blur(10px);
}

.terminal-header {
    background: rgba(0, 0, 0, 0.5);
    padding: 0.6rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid rgba(255,255,255,0.05);
}

.term-dots {
    display: flex;
    gap: 6px;
}

.term-dots .dot {
    width: 12px; height: 12px; border-radius: 50%;
}
.dot.red { background: #ff5f56; box-shadow: 0 0 5px #ff5f56; }
.dot.yellow { background: #ffbd2e; box-shadow: 0 0 5px #ffbd2e; }
.dot.green { background: #27c93f; box-shadow: 0 0 5px #27c93f; }

.terminal-title {
    font-size: 0.8rem;
    color: var(--text-light);
    letter-spacing: 0.5px;
}

.term-battery {
    color: var(--text-light);
    font-size: 0.9rem;
}

.terminal-body {
    padding: 1.5rem;
    text-align: left;
    font-size: 0.9rem;
    line-height: 1.6;
    color: #e0e0e0;
}

.term-line {
    margin-bottom: 0.5rem;
}

.term-line.hide {
    display: none;
}

.term-line .prompt {
    color: var(--accent);
    font-weight: bold;
    text-shadow: 0 0 5px var(--accent);
}

.term-line .success {
    color: var(--accent-secondary);
    font-weight: bold;
}

.term-line .cmd {
    color: #fff;
}

.blink-cursor {
    animation: blink 1s step-end infinite;
}

@keyframes blink { 50% { opacity: 0; } }

/* Efecto Scanning en Tarjetas (Cyber Component) */
.card {
    border: 1px solid rgba(67, 230, 75, 0.1);
}

.card::after {
    content: '';
    position: absolute;
    top: -100%; left: 0;
    width: 100%; height: 5px;
    background: var(--accent);
    box-shadow: 0 0 20px 5px var(--accent);
    opacity: 0;
    transition: none;
    z-index: 10;
    pointer-events: none;
}

.card:hover::after {
    animation: scanLine 1.5s cubic-bezier(0.5, 0, 0.5, 1) forwards;
}

@keyframes scanLine {
    0% { top: 0%; opacity: 0; }
    10% { opacity: 0.8; }
    90% { opacity: 0.8; }
    100% { top: 100%; opacity: 0; }
}

/* Nodos Esquina Tarjeta */
.card-content::before {
    content: '';
    position: absolute;
    bottom: 10px; right: 10px;
    border-bottom: 2px solid var(--accent-secondary);
    border-right: 2px solid var(--accent-secondary);
    width: 20px; height: 20px;
    opacity: 0.3;
    transition: var(--transition-fast);
}

.card:hover .card-content::before {
    width: 30px; height: 30px;
    opacity: 1;
    box-shadow: 2px 2px 10px var(--shadow-accent-secondary);
}

/* Títulos con textura cruda tech */
.section-title {
    background: linear-gradient(180deg, #FFFFFF 0%, #A0A0A0 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.tech-glitch {
    position: relative;
    display: inline-block;
}

.tech-glitch::before,
.tech-glitch::after {
    content: attr(data-text);
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: var(--bg-app);
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    opacity: 0;
}

.tech-glitch:hover::before {
    animation: glitch-anim 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite;
    color: var(--accent);
    z-index: -1;
    opacity: 1;
    left: 2px;
}
.tech-glitch:hover::after {
    clip-path: polygon(0 55%, 100% 55%, 100% 100%, 0 100%);
    animation: glitch-anim 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94) both infinite reverse;
    color: var(--danger);
    z-index: -2;
    opacity: 1;
    left: -2px;
}

@keyframes glitch-anim {
    0% { transform: translate(0); }
    20% { transform: translate(-2px, 1px); }
    40% { transform: translate(-1px, -1px); }
    60% { transform: translate(2px, 1px); }
    80% { transform: translate(1px, -1px); }
    100% { transform: translate(0); }
}

/* Modificar Tech Badge para que parezca circuito */
.tech-badge {
    border-radius: 0;
    border: none;
    border-left: 2px solid var(--accent);
    background: linear-gradient(90deg, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.2) 100%);
    clip-path: polygon(0 0, 100% 0, 90% 100%, 0 100%);
    padding-right: 1.5rem;
    font-family: 'Consolas', monospace;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.tech-badge.secondary {
    border-left-color: var(--accent-secondary);
}

/* ==========================================================================
   FIN DE ESTILOS - MK-SOFTWARE
   ========================================================================== */
