/* ============================================================================
BLOG POST PAGE STYLES
Estilos específicos para el artículo del blog
============================================================================ */

/* ============================================================================
1. BLOG HEADER - Cabecera del artículo
============================================================================ */
.blog-header {
    padding: 140px 0 80px;
    position: relative;
    overflow: hidden;
    background-image: url('../../../img/blog/blog1.webp');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    color: white;
}
#blog2{
    background-image: url('../../../img/blog/blog2.webp');
}

/* Añade un overlay para mejor legibilidad */
.blog-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
   background: linear-gradient(
        135deg, 
        rgba(0, 0, 0, 0.8), 
        rgba(0, 0, 0, 0.5)
    );
    z-index: 1;
}

/* Asegura que el contenido esté sobre el overlay */
.blog-header .container {
    position: relative;
    z-index: 2;
}

.blog-header::after {
    content: "";
    position: absolute;
    bottom: -50px;
    left: -50px;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(241, 179, 60, 0.1) 0%, transparent 70%);
    opacity: 0.5;
    z-index: 0;
}

.blog-category {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border-radius: 50px;
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    position: relative;
    z-index: 1;
}

.blog-title {
    font-size: clamp(2.2rem, 5vw, 3rem);
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: white;
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.blog-meta {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
    flex-wrap: wrap;
    position: relative;
    z-index: 1;
}

.blog-meta span {
    color: white;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.blog-meta i {
    font-size: 0.85rem;
    color: var(--violet-primary);
}

/* ============================================================================
2. BLOG CONTENT - Contenido del artículo
============================================================================ */
.blog-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 3rem 0;
}

.blog-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--gray-dark);
    margin-bottom: 1.5rem;
}

.blog-content h2 {
    font-size: 2rem;
    margin: 3rem 0 1.5rem;
    color: var(--black);
    position: relative;
    padding-bottom: 0.75rem;
}

.blog-content h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 3px;
    background: linear-gradient(135deg, var(--violet-primary), var(--yellow-accent));
    border-radius: 2px;
}

.blog-content h3 {
    font-size: 1.5rem;
    margin: 2rem 0 1rem;
    color: var(--black);
    position: relative;
    padding-left: 1rem;
}



.blog-content ul {
    list-style: none;
    padding-left: 1.5rem;
    margin-bottom: 2rem;
}

.blog-content li {
    padding: 0.5rem 0;
    color: var(--gray-dark);
    position: relative;
    padding-left: 1.5rem;
    line-height: 1.6;
}

.blog-content li::before {
    content: '→';
    position: absolute;
    left: 0;
    color: var(--violet-primary);
    font-weight: bold;
}

.blog-content strong {
    color: var(--violet-primary);
    font-weight: 600;
}

/* ============================================================================
3. HIGHLIGHT BOX - Caja de resaltado
============================================================================ */
.highlight-box {
    background: linear-gradient(135deg, rgba(134, 4, 189, 0.05), rgba(241, 179, 60, 0.05));
    border-left: 4px solid var(--violet-primary);
    padding: 1.5rem 2rem;
    margin: 2rem 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    box-shadow: var(--shadow-sm);
}

.highlight-box p {
    margin: 0;
    font-size: 1.1rem;
    color: var(--black);
    font-style: italic;
}

/* ============================================================================
4. BLOG SERVICE CARDS - Tarjetas de servicios en el blog
============================================================================ */
.blog-content .service-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    height: 100%;
    border: 1px solid rgba(0, 0, 0, 0.08);
    box-shadow: var(--shadow-sm);
    transition: var(--transition);
    text-align: center;
}

.blog-content .service-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: rgba(134, 4, 189, 0.2);
}

.blog-content .service-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(134, 4, 189, 0.1), rgba(241, 179, 60, 0.1));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--violet-primary);
    transition: var(--transition);
}

.blog-content .service-card:hover .service-icon {
    background: linear-gradient(135deg, var(--violet-primary), var(--yellow-accent));
    color: white;
    transform: scale(1.1);
}

.blog-content .service-title {
    font-size: 1.2rem;
    margin-bottom: 0.8rem;
    color: var(--black);
}

.blog-content .service-text {
    color: var(--text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin: 0;
}

/* ============================================================================
5. BLOG CTA - Llamado a la acción
============================================================================ */
.cta-blog {
    background: linear-gradient(135deg, var(--violet-primary), var(--yellow-accent));
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    color: white;
    margin: 3rem 0;
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.cta-blog::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    opacity: 0.3;
}

.cta-blog h3 {
    color: white;
    font-size: 1.6rem;
    margin-bottom: 1rem;
    position: relative;
    z-index: 1;
}

.cta-blog p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    position: relative;
    z-index: 1;
}

.cta-blog .btn-custom {
    background: white;
    color: var(--violet-primary);
    border: none;
    position: relative;
    z-index: 1;
}

.cta-blog .btn-custom:hover {
    background: var(--gray-light);
    color: var(--violet-primary);
}

/* ============================================================================
6. BLOG TABLE - Tabla comparativa
============================================================================ */
.table-responsive {
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.table {
    margin-bottom: 0;
    background: white;
}

.table thead th {
    background: linear-gradient(135deg, rgba(134, 4, 189, 0.05), rgba(241, 179, 60, 0.05));
    color: var(--black);
    border: none;
    padding: 1rem 1.5rem;
    font-weight: 600;
    text-align: center;
}

.table tbody td {
    padding: 1rem 1.5rem;
    vertical-align: middle;
    border-color: rgba(0, 0, 0, 0.08);
}

.table tbody tr:nth-child(even) {
    background: rgba(134, 4, 189, 0.02);
}

.table tbody tr:hover {
    background: rgba(134, 4, 189, 0.05);
}

.table tbody td:first-child {
    font-weight: 600;
    color: var(--black);
}

/* ============================================================================
TECH STACK SECTION
Estilos para la sección de tecnologías
============================================================================ */

.tech-stack {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0 3rem;
    justify-content: center;
}

.tech-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 12px 24px;
    background: white;
    border-radius: var(--radius-md);
    border: 2px solid rgba(134, 4, 189, 0.15);
    color: var(--black);
    font-weight: 600;
    font-size: 1rem;
    transition: var(--transition);
    box-shadow: var(--shadow-sm);
}

.tech-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    border-color: var(--violet-primary);
    background: linear-gradient(135deg, rgba(134, 4, 189, 0.05), rgba(241, 179, 60, 0.05));
}

.tech-item i {
    font-size: 1.5rem;
    transition: var(--transition);
}

/* Colores específicos para cada tecnología */
.tech-item:nth-child(1) i { color: #E34F26; } /* HTML */
.tech-item:nth-child(2) i { color: #1572B6; } /* CSS */
.tech-item:nth-child(3) i { color: #F7DF1E; } /* JavaScript */
.tech-item:nth-child(4) i { color: #3178C6; } /* TypeScript */
.tech-item:nth-child(5) i { color: #DD0031; } /* Angular */
.tech-item:nth-child(6) i { color: #777BB4; } /* PHP */
.tech-item:nth-child(7) i { color: #239120; } /* C# */
.tech-item:nth-child(8) i { color: #512BD4; } /* .NET */
.tech-item:nth-child(9) i { color: #CC2927; } /* SQL Server */

.tech-item:hover i {
    transform: scale(1.2);
}

/* Si no tienes iconos para C# y .NET, usa estos alternativos */
.tech-item .fa-csharp::before {
    content: "C#";
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
}

.tech-item .fa-dotnet::before {
    content: ".NET";
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
}

/* Versión con iconos alternativos usando texto */
.tech-item .tech-icon-text {
    font-family: 'Segoe UI', sans-serif;
    font-weight: bold;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* ============================================================================
7. RESPONSIVE DESIGN
============================================================================ */

/* Tablets (≤991.98px) */
@media (max-width: 991.98px) {
    .blog-header {
        padding: 140px 0 80px;
    }
    
    .blog-title {
        font-size: clamp(1.8rem, 4vw, 2.5rem);
    }
    
    .blog-meta {
        gap: 1.5rem;
    }
    
    .blog-content {
        padding: 2rem 0;
    }
    
    .blog-content h2 {
        font-size: 1.8rem;
    }
    
    .blog-content h3 {
        font-size: 1.4rem;
    }
}

/* Móviles (≤767.98px) */
@media (max-width: 767.98px) {
    .blog-header {
        padding: 120px 20px 60px;
    }
    
    .blog-title {
        font-size: clamp(1.6rem, 3.5vw, 2rem);
    }
    
    .blog-meta {
        flex-direction: column;
        gap: 0.8rem;
        align-items: center;
    }
    
    .blog-content {
        padding: 1.5rem 0;
    }
    
    .blog-content p {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .blog-content h2 {
        font-size: 1.6rem;
        margin: 2rem 0 1.2rem;
    }
    
    .blog-content h3 {
        font-size: 1.3rem;
    }
    
    .highlight-box {
        padding: 1.25rem 1.5rem;
    }
    
    .cta-blog {
        padding: 2rem 1.5rem;
        margin: 2rem 0;
    }
    
    .table-responsive {
        margin-bottom: 1.5rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    
    .blog-content .service-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .blog-content .service-icon {
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
    }

    .tech-stack {
        gap: 0.75rem;
    }
    
    .tech-item {
        padding: 10px 18px;
        font-size: 0.9rem;
        gap: 0.5rem;
    }
    
    .tech-item i {
        font-size: 1.2rem;
    }
}

/* Móviles pequeños (≤575.98px) */
@media (max-width: 575.98px) {
    .blog-header {
        padding: 100px 15px 50px;
    }
    
    .blog-title {
        font-size: 1.4rem;
        line-height: 1.3;
    }
    
    .blog-category {
        font-size: 0.8rem;
        padding: 6px 16px;
    }
    
    .blog-content h2 {
        font-size: 1.4rem;
    }
    
    .blog-content h3 {
        font-size: 1.2rem;
        padding-left: 0.75rem;
    }
    
    .blog-content h3::before {
        width: 3px;
        top: 0.4rem;
        bottom: 0.4rem;
    }
    
    .blog-content ul {
        padding-left: 1rem;
    }
    
    .blog-content li {
        padding-left: 1.25rem;
        font-size: 0.95rem;
    }
    
    .cta-blog h3 {
        font-size: 1.3rem;
    }
    
    .cta-blog p {
        font-size: 0.95rem;
    }
    
    .cta-blog .btn-custom {
        width: 100%;
        max-width: 280px;
    }
    
    .table-responsive {
        font-size: 0.85rem;
    }
    
    .table thead th,
    .table tbody td {
        padding: 0.6rem 0.8rem;
    }

    .tech-stack {
        gap: 0.5rem;
    }
    
    .tech-item {
        padding: 8px 14px;
        font-size: 0.85rem;
        min-width: 120px;
        justify-content: center;
    }
}

/* Pantallas muy grandes (≥1400px) */
@media (min-width: 1400px) {
    .blog-header {
        padding: 200px 0 120px;
    }
    
    .blog-title {
        font-size: 3.2rem;
    }
    
    .blog-content {
        max-width: 900px;
        padding: 4rem 0;
    }
    
    .blog-content p {
        font-size: 1.15rem;
        line-height: 1.9;
    }
    
    .blog-content h2 {
        font-size: 2.2rem;
    }
    
    .blog-content h3 {
        font-size: 1.7rem;
    }
    
    .cta-blog {
        padding: 3rem;
    }
    
    .cta-blog h3 {
        font-size: 1.8rem;
    }
}



