/* ============================================
   ESTILOS PARA PÁGINAS DE PROYECTOS (BLOG)
   ============================================ */

/* Header en páginas de proyecto - Reset completo */
.pagina-proyecto header .nav-links a {
    color: #000000 !important;
    position: relative !important;
}

.pagina-proyecto header .nav-links a::after {
    display: none !important;
    content: none !important;
    width: 0 !important;
    height: 0 !important;
    background: none !important;
}

.pagina-proyecto header .nav-links a:hover {
    color: #00d47e !important;
}

.pagina-proyecto header .nav-links a.active {
    color: #00d47e !important;
}

.pagina-proyecto header .nav-links a.active::after {
    display: block !important;
    content: '' !important;
    position: absolute !important;
    left: 0 !important;
    right: 0 !important;
    bottom: -8px !important;
    width: auto !important;
    height: 2px !important;
    background: linear-gradient(90deg, #00d47e, #00a078) !important;
    border-radius: 2px !important;
}

/* Hero del Proyecto */
.proyecto-hero {
    min-height: 60vh;
    padding: 140px 5% 60px;
    background: #ffffff;
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.proyecto-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(1200px 400px at 20% -10%, rgba(0, 200, 150, 0.12), transparent 60%),
        radial-gradient(800px 300px at 80% 10%, rgba(3, 48, 57, 0.10), transparent 65%);
    z-index: 0;
}

.proyecto-hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
}

/* Enlace de volver */
.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #64748b;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
    transition: all 0.3s ease;
}

.back-link:hover {
    color: #00c896;
    transform: translateX(-5px);
}

.back-link svg {
    transition: transform 0.3s ease;
}

.back-link:hover svg {
    transform: translateX(-3px);
}

/* Badge de estado */
.proyecto-status-badge {
    display: inline-block;
    padding: 0.5rem 1.2rem;
    background: linear-gradient(135deg, #e6faf3, #dbf8ec);
    color: #00a078;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(0, 200, 150, 0.3);
}

.proyecto-status-badge.status-desarrollo {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    color: #b45309;
    border-color: rgba(180, 83, 9, 0.3);
}

/* Título del proyecto */
.proyecto-hero h1 {
    font-size: clamp(2rem, 5vw, 3.5rem);
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: -0.02em;
    margin-bottom: 1.5rem;
}

.proyecto-subtitle {
    font-size: 1.3rem;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 2rem;
    max-width: 700px;
}

/* Tags de tecnología */
.proyecto-tech-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.proyecto-tech-tags .tech-tag {
    background: #e6faf3;
    color: #033039;
    padding: 0.5rem 1rem;
    border-radius: 25px;
    font-size: 0.9rem;
    font-weight: 500;
    border: 1px solid rgba(0, 200, 150, 0.2);
    transition: all 0.3s ease;
}

.proyecto-tech-tags .tech-tag:hover {
    background: #00c896;
    color: white;
    transform: translateY(-2px);
}

/* Imagen Principal */
.proyecto-imagen-principal {
    padding: 0 0 4rem;
    background: #ffffff;
}

.proyecto-imagen-wrapper {
    max-width: 1000px;
    margin: 0 auto;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
}

.proyecto-imagen-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    max-height: 500px;
}

/* Contenido del Blog */
.proyecto-contenido {
    padding: 4rem 0 6rem;
    background: #f8fafc;
}

.proyecto-article {
    max-width: 800px;
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 3rem 4rem;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.08);
}

.proyecto-article h2 {
    font-size: 1.8rem;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    position: relative;
    padding-bottom: 0.5rem;
}

.proyecto-article h2:first-child {
    margin-top: 0;
}

.proyecto-article h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, #00c896, #00d47e);
    border-radius: 2px;
}

.proyecto-article h3 {
    font-size: 1.4rem;
    color: #334155;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
}

.proyecto-article p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 1.5rem;
}

.proyecto-article ul {
    margin: 1.5rem 0;
    padding-left: 1.5rem;
}

.proyecto-article ul li {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #475569;
    margin-bottom: 0.75rem;
    position: relative;
}

.proyecto-article ul li::marker {
    color: #00c896;
}

/* Blockquotes */
.proyecto-article blockquote {
    margin: 2rem 0;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #e6faf3, #f0fdf4);
    border-left: 4px solid #00c896;
    border-radius: 0 12px 12px 0;
    font-style: italic;
    color: #334155;
}

/* Imágenes dentro del artículo */
.proyecto-article img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.1);
}

/* Código */
.proyecto-article code {
    background: #f1f5f9;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-family: 'Fira Code', 'Monaco', monospace;
    font-size: 0.9em;
    color: #0f172a;
}

.proyecto-article pre {
    background: #1e293b;
    padding: 1.5rem;
    border-radius: 12px;
    overflow-x: auto;
    margin: 1.5rem 0;
}

.proyecto-article pre code {
    background: transparent;
    color: #e2e8f0;
    padding: 0;
}

/* Responsive */
@media (max-width: 768px) {
    .proyecto-hero {
        min-height: auto;
        padding: 120px 5% 40px;
    }

    .proyecto-hero h1 {
        font-size: 1.8rem;
    }

    .proyecto-subtitle {
        font-size: 1.1rem;
    }

    .proyecto-article {
        padding: 2rem 1.5rem;
        border-radius: 16px;
    }

    .proyecto-article h2 {
        font-size: 1.5rem;
    }

    .proyecto-article h3 {
        font-size: 1.25rem;
    }

    .proyecto-article p,
    .proyecto-article ul li {
        font-size: 1rem;
    }

    .proyecto-imagen-wrapper {
        border-radius: 12px;
    }

    .proyecto-imagen-wrapper img {
        max-height: 300px;
    }
}

@media (min-width: 768px) and (max-width: 1024px) {
    .proyecto-article {
        padding: 2.5rem 3rem;
    }
}

