/* ===================================================================================== */
/* ESTILOS PARA PÁGINAS DE ARTÍCULOS - DARK TECH THEME */
/* ===================================================================================== */

:root {
    --primary-cyan: #00d4ff;
    --secondary-cyan: #17a2b8;
    --dark-bg: #1a1d23;
    --darker-bg: #0f1115;
    --gradient-bg: linear-gradient(135deg, #1a1d23 0%, #2d3748 50%, #1a202c 100%);
    --text-light: rgba(255, 255, 255, 0.9);
    --text-muted: rgba(255, 255, 255, 0.7);
    --glass-bg: rgba(255, 255, 255, 0.05);
    --glass-border: rgba(0, 212, 255, 0.2);
}

/* ===================================================================================== */
/* FONDO BASE */
/* ===================================================================================== */

.modern-tech-body {
    background: var(--gradient-bg);
    min-height: 100vh;
    color: var(--text-light);
    position: relative;
    overflow-x: hidden;
}

.tech-background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

.tech-grid-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        linear-gradient(rgba(0, 212, 255, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 212, 255, 0.06) 1px, transparent 1px);
    background-size: 80px 80px;
    opacity: 0.5;
}

.tech-gradient-layer {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at top left, rgba(0, 212, 255, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at bottom right, rgba(23, 162, 184, 0.06) 0%, transparent 50%);
}

/* ===================================================================================== */
/* NAVBAR */
/* ===================================================================================== */

.modern-navbar {
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 212, 255, 0.15);
    padding: 0.75rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

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

.modern-brand {
    text-decoration: none;
    transition: all 0.3s ease;
}

.modern-brand:hover {
    transform: translateY(-1px);
}

.brand-logo-wrapper {
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-cyan), var(--secondary-cyan));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 212, 255, 0.25);
    transition: all 0.3s ease;
}

.brand-logo {
    width: 30px;
    height: auto;
    filter: brightness(1.2);
}

.brand-text-wrapper {
    display: flex;
    flex-direction: column;
}

.brand-main-text {
    font-size: 1.25rem;
    font-weight: 800;
    color: var(--primary-cyan);
    line-height: 1.1;
}

.brand-sub-text {
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    font-style: italic;
    letter-spacing: 0.5px;
}

/* Navbar Navigation Links */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-link-back {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.5rem 1rem;
    color: var(--text-muted);
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 500;
    border-radius: 8px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

.nav-link-back:hover {
    color: var(--primary-cyan);
    background: rgba(0, 212, 255, 0.08);
    border-color: rgba(0, 212, 255, 0.2);
    text-decoration: none;
}

.nav-link-back i {
    font-size: 0.9rem;
}

/* ===================================================================================== */
/* CONTENIDO PRINCIPAL */
/* ===================================================================================== */

.main-content {
    position: relative;
    z-index: 10;
    min-height: calc(100vh - 200px);
}

/* ===================================================================================== */
/* CARD DEL ARTÍCULO */
/* ===================================================================================== */

.modern-tech-card {
    background: var(--glass-bg);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--glass-border);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
    position: relative;
}

.modern-tech-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    opacity: 0.7;
}

/* ===================================================================================== */
/* IMAGEN DEL ARTÍCULO */
/* ===================================================================================== */

.article-image-wrapper {
    position: relative;
    height: 320px;
    overflow: hidden;
}

.modern-article-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.85) contrast(1.05);
}

.image-tech-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(0, 212, 255, 0.05) 0%,
        transparent 40%,
        rgba(26, 29, 35, 0.7) 100%
    );
}

.image-gradient-border {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-cyan), var(--primary-cyan));
    opacity: 0.7;
}

/* ===================================================================================== */
/* CONTENIDO */
/* ===================================================================================== */

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

/* Header del artículo */
.article-header {
    margin-bottom: 2rem;
}

.modern-article-title {
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.3;
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
}

.title-icon {
    font-size: 1.8rem;
    color: var(--primary-cyan);
    flex-shrink: 0;
    margin-top: 0.15rem;
}

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.article-meta i {
    color: rgba(0, 212, 255, 0.6);
}

.meta-separator {
    color: rgba(255, 255, 255, 0.3);
}

.publish-date {
    font-weight: 500;
}

.title-separator {
    width: 80px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-cyan), var(--secondary-cyan));
    border-radius: 2px;
    margin: 1rem 0;
}

/* Contenido del artículo */
.article-content {
    margin-bottom: 2rem;
}

.lead-paragraph {
    font-size: 1.1rem;
    font-weight: 500;
    line-height: 1.7;
    color: var(--text-light);
    margin-bottom: 1.5rem;
    padding: 1.25rem;
    padding-left: 1.25rem;
    border-left: 3px solid var(--primary-cyan);
    background: rgba(0, 212, 255, 0.04);
    border-radius: 0 8px 8px 0;
}

.content-paragraph {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
    text-align: justify;
}

/* Footer del artículo */
.article-footer {
    display: flex;
    justify-content: flex-start;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(0, 212, 255, 0.15);
}

/* ===================================================================================== */
/* BOTÓN VOLVER */
/* ===================================================================================== */

.modern-back-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.7rem 1.5rem;
    background: rgba(0, 212, 255, 0.1);
    border: 1px solid rgba(0, 212, 255, 0.3);
    border-radius: 10px;
    color: #00d4ff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.modern-back-btn:hover {
    background: rgba(0, 212, 255, 0.2);
    border-color: rgba(0, 212, 255, 0.5);
    color: #fff;
    text-decoration: none;
    transform: translateX(-4px);
}

.btn-icon {
    font-size: 1rem;
    transition: transform 0.3s ease;
}

.modern-back-btn:hover .btn-icon {
    transform: translateX(-3px);
}

.btn-text {
    position: relative;
}

/* ===================================================================================== */
/* FOOTER */
/* ===================================================================================== */

.modern-tech-footer {
    background: rgba(15, 17, 21, 0.85);
    backdrop-filter: blur(20px);
    border-top: 1px solid rgba(0, 212, 255, 0.15);
    padding: 1.5rem 0;
    margin-top: 3rem;
    position: relative;
}

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

.footer-text {
    color: var(--text-muted);
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.footer-decoration {
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary-cyan), transparent);
    margin: 0.75rem auto 0;
    border-radius: 2px;
}

/* ===================================================================================== */
/* RESPONSIVE */
/* ===================================================================================== */

@media (max-width: 768px) {
    .tech-grid-layer {
        background-size: 50px 50px;
        opacity: 0.3;
    }

    .modern-tech-card {
        border-radius: 14px;
        margin: 0 0.5rem;
    }

    .article-image-wrapper {
        height: 220px;
    }

    .modern-card-content {
        padding: 1.5rem;
    }

    .modern-article-title {
        font-size: 1.4rem;
        flex-direction: column;
        gap: 0.5rem;
    }

    .title-icon {
        font-size: 1.5rem;
    }

    .lead-paragraph {
        font-size: 1rem;
        padding: 1rem;
    }

    .content-paragraph {
        font-size: 0.95rem;
        text-align: left;
    }

    .modern-back-btn {
        padding: 0.6rem 1.2rem;
        font-size: 0.85rem;
    }

    .brand-main-text {
        font-size: 1.1rem;
    }

    .brand-sub-text {
        font-size: 0.75rem;
    }

    .brand-logo-wrapper {
        width: 42px;
        height: 42px;
    }

    .brand-logo {
        width: 25px;
    }

    .nav-link-back span {
        display: none;
    }

    .nav-link-back {
        padding: 0.5rem;
        font-size: 1.1rem;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 1.5rem 0;
    }

    .modern-tech-card {
        margin: 0 0.25rem;
        border-radius: 12px;
    }

    .modern-card-content {
        padding: 1.25rem;
    }

    .article-header {
        margin-bottom: 1.5rem;
    }

    .modern-article-title {
        font-size: 1.25rem;
    }

    .title-separator {
        width: 60px;
    }

    .lead-paragraph {
        padding: 0.75rem;
        margin-bottom: 1rem;
    }

    .content-paragraph {
        font-size: 0.9rem;
        margin-bottom: 1rem;
    }
}
