/* ===== ESTILOS COMPARTIDOS PARA BLOG NOVA AXIS ===== */

/* ===== ESTILOS ESPECÍFICOS PÁGINA PRINCIPAL BLOG ===== */

/* Hero del Blog Principal */
.blog-hero {
    background: linear-gradient(135deg, #FF564B 0%, #ff7a72 100%);
    padding: 8rem 10%;
    text-align: center;
    color: white;
}

.blog-hero h1 {
    font-size: 4.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
}

.blog-hero p {
    font-size: 1.8rem;
    max-width: 70rem;
    margin: 0 auto;
}

/* Contenedor Blog Principal */
.blog-container {
    padding: 5rem 10%;
    display: grid;
    grid-template-columns: 1fr 35rem;
    gap: 4rem;
}

/* Lista de Posts */
.blog-main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Tarjeta de Post en Lista */
.blog-post {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.blog-post-image {
    height: 35rem;
    overflow: hidden;
    position: relative;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-category {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--yellow);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.5rem;
}

.blog-post-content {
    padding: 3rem;
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--light-color);
}

.blog-post-meta i {
    color: var(--yellow);
    margin-right: 0.5rem;
}

.blog-post h2 {
    font-size: 2.8rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.blog-post h2 a {
    color: var(--black);
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: var(--yellow);
}

.blog-post-excerpt {
    font-size: 1.6rem;
    color: var(--light-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--yellow);
    font-size: 1.6rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1.5rem;
}

/* Sidebar Blog */
.blog-sidebar {
    position: sticky;
    top: 10rem;
    height: fit-content;
}

/* ===== FIN ESTILOS PÁGINA PRINCIPAL BLOG ===== */

/* ===== ESTILOS COMPARTIDOS POSTS INDIVIDUALES ===== */

/* Hero del Blog */
.blog-hero,
.post-hero {
    background: linear-gradient(135deg, rgba(255, 86, 75, 0.95) 0%, rgba(255, 122, 114, 0.90) 100%),
                url('../images/project-1.png') center/cover no-repeat;
    padding: 12rem 10% 6rem;
    text-align: center;
    color: white;
    position: relative;
    box-shadow: inset 0 -5px 15px rgba(0,0,0,0.1);
    overflow: hidden;
}

.blog-hero::after,
.post-hero::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 50% 0%, 
                rgba(255, 255, 255, 0.1) 0%, 
                rgba(255, 255, 255, 0) 70%);
    pointer-events: none;
    z-index: 1;
}

/* Aseguramos que el contenido esté por encima del efecto */
.blog-hero > *,
.post-hero > * {
    position: relative;
    z-index: 2;
}

.blog-hero {
    padding: 8rem 10%;
}

.blog-hero::before,
.post-hero::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 10rem;
    background: linear-gradient(to bottom, transparent, white);
}

.post-category-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 0.8rem 2rem;
    border-radius: 5rem;
    font-size: 1.4rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 2rem;
    backdrop-filter: blur(10px);
}

.blog-hero h1,
.post-hero h1 {
    font-size: 5rem;
    margin-bottom: 2rem;
    line-height: 1.2;
    max-width: 90rem;
    margin-left: auto;
    margin-right: auto;
}

.blog-hero h1 {
    font-size: 4.5rem;
}

.blog-hero p {
    font-size: 1.8rem;
    max-width: 70rem;
    margin: 0 auto;
}

.post-meta {
    display: flex;
    gap: 3rem;
    justify-content: center;
    font-size: 1.6rem;
    margin-top: 2rem;
}

.post-meta span {
    display: flex;
    align-items: center;
    gap: 0.8rem;
}

/* Contenedor Principal */
.blog-container,
.post-container {
    max-width: 180rem;
    margin: 0 auto;
    padding: 5rem 10%;
    display: grid;
    grid-template-columns: 1fr 35rem;
    gap: 5rem;
    align-items: start;
}

/* Contenido Principal */
.blog-main {
    display: flex;
    flex-direction: column;
    gap: 4rem;
    width: 100%;
    max-width: 100%;
}

.post-content {
    background: white;
    padding: 5rem;
    border-radius: 1rem;
    box-shadow: 0 0 3rem rgba(0, 0, 0, 0.05);
    width: 100%;
    overflow-x: hidden;
    word-wrap: break-word;
}

/* Artículos del Blog (Lista) */
.blog-post {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--box-shadow);
    transition: transform 0.3s ease;
}

.blog-post:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 2rem rgba(0, 0, 0, 0.15);
}

.blog-post-image {
    height: 35rem;
    overflow: hidden;
    position: relative;
}

.blog-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.blog-post:hover .blog-post-image img {
    transform: scale(1.05);
}

.blog-post-category {
    position: absolute;
    top: 2rem;
    left: 2rem;
    background: var(--yellow);
    color: white;
    padding: 0.8rem 2rem;
    font-size: 1.3rem;
    font-weight: 600;
    text-transform: uppercase;
    border-radius: 0.5rem;
}

.blog-post-content {
    padding: 3rem;
}

.blog-post-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    font-size: 1.4rem;
    color: var(--light-color);
}

.blog-post-meta i {
    color: var(--yellow);
    margin-right: 0.5rem;
}

.blog-post h2 {
    font-size: 2.8rem;
    color: var(--black);
    margin-bottom: 1.5rem;
    line-height: 1.4;
}

.blog-post h2 a {
    color: var(--black);
    transition: color 0.3s ease;
}

.blog-post h2 a:hover {
    color: var(--yellow);
}

.blog-post-excerpt {
    font-size: 1.6rem;
    color: var(--light-color);
    line-height: 1.8;
    margin-bottom: 2rem;
}

.read-more {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    color: var(--yellow);
    font-size: 1.6rem;
    font-weight: 600;
    transition: gap 0.3s ease;
}

.read-more:hover {
    gap: 1.5rem;
}

/* Imagen Destacada del Post */
.post-featured-image {
    width: 100%;
    height: 50rem;
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 4rem;
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.1);
}

.post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Tipografía del Contenido */
.post-content h2 {
    font-size: 3rem;
    color: var(--black);
    margin: 4rem 0 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.3rem solid var(--yellow);
}

.post-content h3 {
    font-size: 2.4rem;
    color: var(--black);
    margin: 3rem 0 1.5rem;
}

.post-content p {
    font-size: 1.7rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 2rem;
}

.post-content ul, 
.post-content ol {
    margin: 2rem 0;
    padding-left: 3rem;
}

.post-content li {
    font-size: 1.7rem;
    color: #444;
    line-height: 1.9;
    margin-bottom: 1.5rem;
}

.post-content strong {
    color: var(--black);
    font-weight: 600;
}

/* Cajas Destacadas */
.highlight-box {
    background: linear-gradient(135deg, #fff5f4 0%, #ffe8e6 100%);
    border-left: 0.5rem solid var(--yellow);
    padding: 3rem;
    margin: 3rem 0;
    border-radius: 1rem;
}

.highlight-box p {
    margin: 0;
    font-size: 1.8rem;
    font-style: italic;
    color: var(--black);
}

/* Tarjetas de Contenido */
.trend-card,
.benefit-card,
.tech-card,
.use-case-card {
    background: white;
    border: 0.2rem solid var(--light-bg);
    border-radius: 1rem;
    padding: 3rem;
    margin: 2rem 0;
    transition: all 0.3s ease;
}

.trend-card:hover,
.benefit-card:hover,
.tech-card:hover,
.use-case-card:hover {
    border-color: var(--yellow);
    box-shadow: 0 0.5rem 2rem rgba(255, 86, 75, 0.1);
    transform: translateX(1rem);
}

.trend-card h4,
.benefit-card h4,
.tech-card h4,
.use-case-card h4 {
    font-size: 2.2rem;
    color: var(--yellow);
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.trend-number {
    background: var(--yellow);
    color: white;
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    font-weight: 700;
}

.benefit-icon,
.tech-icon,
.use-case-icon {
    background: var(--yellow);
    color: white;
    width: 5rem;
    height: 5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.4rem;
    flex-shrink: 0;
}

/* Tablas */
.comparison-table {
    width: 100%;
    margin: 3rem 0;
    border-collapse: collapse;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.1);
    border-radius: 1rem;
    overflow: hidden;
}

.comparison-table th {
    background: var(--yellow);
    color: white;
    padding: 2rem;
    font-size: 1.8rem;
    text-align: left;
}

.comparison-table td {
    padding: 2rem;
    font-size: 1.6rem;
    border-bottom: 0.1rem solid var(--light-bg);
}

.comparison-table tr:hover {
    background: #fff5f4;
}

/* Estadísticas */
.stats-grid,
.stats-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(20rem, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.stat-box,
.stat-item {
    background: linear-gradient(135deg, #fff5f4 0%, #ffe8e6 100%);
    padding: 3rem;
    border-radius: 1rem;
    text-align: center;
    border: 0.2rem solid transparent;
    transition: all 0.3s ease;
}

.stat-box:hover,
.stat-item:hover {
    border-color: var(--yellow);
    transform: translateY(-0.5rem);
}

.stat-box h4,
.stat-item h4 {
    font-size: 4rem;
    color: var(--yellow);
    margin-bottom: 1rem;
    font-weight: 700;
}

.stat-box p,
.stat-item p {
    font-size: 1.6rem;
    color: var(--black);
    margin: 0;
}

/* Grids de Comparación */
.comparison-grid,
.technology-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(25rem, 1fr));
    gap: 2rem;
    margin: 3rem 0;
}

.comparison-card,
.tech-item {
    background: white;
    border: 0.2rem solid var(--light-bg);
    border-radius: 1rem;
    padding: 2.5rem;
    transition: all 0.3s ease;
}

.comparison-card {
    background: linear-gradient(135deg, #fff5f4 0%, #ffe8e6 100%);
    padding: 3rem;
    text-align: center;
}

.comparison-card:hover,
.tech-item:hover {
    border-color: var(--yellow);
    box-shadow: 0 0.5rem 1.5rem rgba(255, 86, 75, 0.1);
}

.comparison-card h4 {
    font-size: 2.2rem;
    color: var(--yellow);
    margin-bottom: 1.5rem;
}

.comparison-card ul {
    text-align: left;
    padding-left: 2rem;
}

.tech-item h5 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
}

.tech-item h5 i {
    color: var(--yellow);
    font-size: 2.4rem;
}

/* CTA Box */
.cta-box {
    background: linear-gradient(135deg, #fff5f4 0%, #ffffff 100%);
    color: var(--black);
    padding: 4rem;
    border: 2px dashed var(--yellow);
    border-radius: 1rem;
    text-align: center;
    margin: 4rem 0;
    box-shadow: 0 0.5rem 2rem rgba(255, 86, 75, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.cta-box:hover {
    transform: translateY(-0.5rem);
    box-shadow: 0 1rem 3rem rgba(255, 86, 75, 0.12);
}

.cta-box h3 {
    font-size: 2.8rem;
    margin-bottom: 1.5rem;
    color: var(--black);
    font-weight: 600;
}

.cta-box p {
    font-size: 1.7rem;
    margin-bottom: 2.5rem;
    color: var(--light-color);
    line-height: 1.6;
}

.cta-box .btn {
    background: var(--yellow);
    color: white;
    border: 2px solid var(--yellow);
    transition: all 0.3s ease;
}

.cta-box .btn:hover {
    background: transparent;
    color: var(--yellow);
    transform: translateY(-0.2rem);
}

/* Sidebar */
.post-sidebar,
.blog-sidebar {
    position: sticky;
    top: 10rem;
    height: fit-content;
}

.sidebar-widget {
    background: white;
    padding: 3rem;
    margin-bottom: 3rem;
    border-radius: 1rem;
    box-shadow: 0 0 2rem rgba(0, 0, 0, 0.05);
}

.sidebar-widget h3 {
    font-size: 2.2rem;
    color: var(--black);
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 0.2rem solid var(--light-bg);
}

/* Categorías */
.categories-list {
    list-style: none;
}

.categories-list li {
    margin-bottom: 1.5rem;
}

.categories-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.6rem;
    color: var(--black);
    padding: 1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
}

.categories-list a:hover {
    background: var(--light-bg);
    padding-left: 1.5rem;
    color: var(--yellow);
}

/* Active category style */
.categories-list a.active {
    background: var(--yellow);
    color:#444;
    padding-left: 1.5rem;
}

.categories-list span {
    background: var(--light-bg);
    padding: 0.5rem 1rem;
    border-radius: 0.5rem;
    font-size: 1.4rem;
}

/* Artículos Recientes/Relacionados */
.recent-posts,
.related-posts {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.recent-post-item,
.related-post-item {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
}

.recent-post-img,
.related-post-img {
    width: 10rem;
    height: 10rem;
    border-radius: 0.5rem;
    overflow: hidden;
    flex-shrink: 0;
}

.recent-post-img img,
.related-post-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.recent-post-content h4,
.related-post-content h4 {
    font-size: 1.6rem;
    color: var(--black);
    line-height: 1.5;
    margin-bottom: 0.8rem;
}

.recent-post-content h4 a,
.related-post-content h4 a {
    color: var(--black);
    transition: color 0.3s ease;
}

.recent-post-content h4 a:hover,
.related-post-content h4 a:hover {
    color: var(--yellow);
}

.recent-post-date,
.related-post-date {
    font-size: 1.3rem;
    color: var(--light-color);
}

.recent-post-date i,
.related-post-date i {
    color: var(--yellow);
    margin-right: 0.5rem;
}

/* Tags */
.tags {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

.tag {
    padding: 0.8rem 1.5rem;
    background: var(--light-bg);
    color: var(--black);
    font-size: 1.4rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
    text-decoration: none;
}

.tag:hover {
    background: var(--yellow);
    color: white;
    transform: translateY(-2px);
}

.tag.active {
    background: var(--yellow);
    color: white;
}

.tag small {
    opacity: 0.8;
    margin-left: 0.5rem;
}

/* Autor Info */
.author-info {
    text-align: center;
}

.author-avatar {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    margin: 0 auto 2rem;
    border: 0.3rem solid var(--yellow);
    overflow: hidden;
}

.author-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 2rem;
    color: var(--black);
    margin-bottom: 1rem;
}

.author-info p {
    font-size: 1.5rem;
    color: var(--light-color);
    line-height: 1.7;
}

/* Botones Compartir */
.share-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-top: 2rem;
}

.share-btn {
    width: 4.5rem;
    height: 4.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.8rem;
    transition: all 0.3s ease;
}

.share-btn.facebook {
    background: #1877f2;
    color: white;
}

.share-btn.twitter {
    background: #1da1f2;
    color: white;
}

.share-btn.linkedin {
    background: #0077b5;
    color: white;
}

.share-btn.whatsapp {
    background: #25d366;
    color: white;
}

.share-btn:hover {
    transform: translateY(-0.3rem);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 991px) {
    .blog-container,
    .post-container {
        grid-template-columns: 1fr;
    }
    
    .blog-sidebar,
    .post-sidebar {
        position: static;
    }
    
    .blog-hero h1,
    .post-hero h1 {
        font-size: 3.5rem;
    }
    
    .post-content {
        padding: 3rem;
    }
}

@media (max-width: 768px) {
    .blog-hero,
    .post-hero {
        padding: 8rem 5% 4rem;
    }
    
    .post-hero {
        padding: 8rem 5% 4rem;
    }
    
    .blog-hero h1 {
        font-size: 2.8rem;
    }
    
    .post-hero h1 {
        font-size: 2.8rem;
    }
    
    .blog-hero p {
        font-size: 1.5rem;
    }
    
    .blog-container,
    .post-container {
        padding: 3rem 5%;
    }
    
    .blog-post-image,
    .post-featured-image {
        height: 25rem;
    }
    
    .post-featured-image {
        height: 30rem;
    }
    
    .blog-post h2,
    .post-content h2 {
        font-size: 2.2rem;
    }
    
    .post-content h2 {
        font-size: 2.4rem;
    }
    
    .comparison-table {
        font-size: 1.4rem;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 1.5rem;
    }
    
    .post-meta {
        flex-wrap: wrap;
        gap: 1.5rem;
    }
}