/*
Theme Name:   generatepress
Description:  Tema hijo 
Author:       Mopdev
Author URL:   https://mopdev.com/
Template:     generatepress 
Version:      1.0
License:      GNU General Public License v2 or later
License URI:  http://www.gnu.org/licenses/gpl-2.0.html
Text Domain:  generatepress-child
*/

/* Añade aquí tus estilos personalizados */
/* Animaciones adicionales */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-in {
    animation: fadeInUp 0.6s ease forwards;
}

/* Mejoras para el formulario */
.form-group.col-span-2 {
    grid-column: span 2;
}

@media (max-width: 639px) {
    .form-group.col-span-2 {
        grid-column: span 1;
    }
}

/* Mejoras para imágenes */
img {
    max-width: 100%;
    height: auto;
}

/* Loading states */
.btn:disabled,
.form-button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.dark-mode ::-webkit-scrollbar-track {
    background: #1a202c;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 5px;
}

.dark-mode ::-webkit-scrollbar-thumb {
    background: #4a5568;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.dark-mode ::-webkit-scrollbar-thumb:hover {
    background: #718096;
}




/***********************************/


/* Footer Styles */
.site-footer {
    background: linear-gradient(135deg, #0a2540 0%, #1a365d 100%);
    color: #cbd5e0;
    padding: 40px 0 30px;
    position: relative;
    overflow: hidden;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* Grid de 4 columnas */
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 50px;
    margin-bottom: 0px;
}

/* Columnas individuales */
.footer-col {
    display: flex;
    flex-direction: column;
}

/* Columna 1 - Logo y descripción */
.footer-col-about {
    padding-right: 20px;
}

.footer-logo {
    margin-bottom: 25px;
}

.footer-logo img {
    max-height: 70px;
    width: auto;
    filter: brightness(0) invert(1);
    transition: opacity 0.3s ease;
}

.footer-logo img:hover {
    opacity: 0.9;
}

.footer-description {
    font-size: 1rem;
    line-height: 1.6;
    color: #94a3b8;
    margin-bottom: 30px;
    max-width: 280px;
}

/* Redes sociales */
.footer-social {
    display: flex;
    gap: 15px;
    margin-top: 20px;
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.social-icon:hover {
    background: #0073aa;
    transform: translateY(-3px);
    border-color: #0073aa;
    box-shadow: 0 5px 15px rgba(0, 115, 170, 0.3);
}

.social-icon svg {
    width: 18px;
    height: 18px;
    color: white;
}

/* Títulos de columnas */
.footer-title {
    font-size: 1.2rem;
    font-weight: 700;
    color: white;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 12px;
}

.footer-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background: linear-gradient(90deg, #0073aa, #ff6b35);
}

/* Menús */
.footer-menu,
.footer-support-menu {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.custom-title-enlaces{
    font-size: 1rem;
    color: #fff;
}
.custom-text-enlaces{
    color: #fff;
    font-size: 0.7rem;
}
.footer-menu li,
.footer-support-menu li {
    margin: 0;
}

.footer-menu a,
.footer-support-menu a {
    color: #94a3b8;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
    position: relative;
    padding-left: 0;
}

.footer-menu a:hover,
.footer-support-menu a:hover {
    color: white;
    transform: translateX(5px);
}

.footer-menu a::before,
.footer-support-menu a::before {
    content: '→';
    position: absolute;
    left: -15px;
    opacity: 0;
    transition: all 0.3s ease;
    color: #0073aa;
}

.footer-menu a:hover::before,
.footer-support-menu a:hover::before {
    opacity: 1;
    left: -12px;
}

/* Información de contacto */
.footer-contact-info {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.contact-itemf {
       display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-bottom: 0px;
    transition: transform 0.3s ease;
}

.contact-icon {
   flex-shrink: 0;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.contact-icon svg {
    width: 22px;
    height: 22px;
    color: white;
}

.contact-text {
    color: #94a3b8;
    font-size: 0.95rem;
    line-height: 1.5;
}

.contact-text span {
    display: block;
}

.contact-item:hover .contact-text {
    color: white;
}

.contact-item:hover .contact-icon {
    background: rgba(255, 107, 53, 0.25);
    transform: scale(1.05);
}

/* Línea divisoria */
.footer-divider {
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 255, 255, 0.1) 50%, 
        transparent 100%);
    margin: 10px 0 10px;
}

/* Copyright */
.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 20px;
    padding-top: 20px;
}

.copyright {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-credits {
    font-size: 0.9rem;
    color: #94a3b8;
}

.footer-credits::before {
    content: '❤️';
    margin-right: 5px;
}

/* Elementos decorativos */
.site-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(255, 107, 53, 0.5) 50%, 
        transparent 100%);
}

.site-footer::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(0, 115, 170, 0.5) 50%, 
        transparent 100%);
}

/* Responsive - Tablet (1024px) */
@media (max-width: 1024px) {
    .site-footer {
        padding: 60px 0 25px;
    }
    
    .footer-grid {
        gap: 40px;
    }
}

/* Responsive - Tablet (900px) */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 50px;
    }
    
    .footer-col-about {
        grid-column: span 2;
        text-align: center;
        padding-right: 0;
    }
    
    .footer-description {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    .footer-social {
        justify-content: center;
    }
    
    .footer-title::after {
        left: 50%;
        transform: translateX(-50%);
    }
    
    .footer-col-links,
    .footer-col-support,
    .footer-col-contact {
        text-align: center;
    }
    
    .footer-menu,
    .footer-support-menu {
        align-items: center;
    }
    
    .contact-item {
        justify-content: center;
    }
}

/* Responsive - Tablet (768px) */
@media (max-width: 768px) {
    .site-footer {
        padding: 50px 0 20px;
    }
    
    .footer-grid {
        gap: 40px 30px;
    }
    
    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }
}

/* Responsive - Móvil (600px) */
@media (max-width: 600px) {
    .contact-itemf {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 15px;
    }
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 400px;
        margin: 0 auto 50px;
    }
    
    .footer-col-about {
        grid-column: span 1;
    }
    
    .footer-logo img {
        max-height: 40px;
    }
    
    .footer-description {
        font-size: 0.95rem;
    }
    
    .footer-title {
        font-size: 1.1rem;
        margin-bottom: 20px;
    }
    
    .footer-menu a,
    .footer-support-menu a {
        font-size: 0.9rem;
    }
    
    .contact-text {
        font-size: 0.9rem;
    }
    
    .social-icon {
        width: 36px;
        height: 36px;
    }
    
    .social-icon svg {
        width: 16px;
        height: 16px;
    }
}

/* Responsive - Móvil (480px) */
@media (max-width: 480px) {
    .site-footer {
        padding: 40px 0 20px;
    }
    
    .footer-container {
        padding: 0 15px;
    }
    
    .footer-grid {
        gap: 35px;
    }
    
    .copyright,
    .footer-credits {
        font-size: 0.85rem;
    }
}

/* Responsive - Móvil pequeño (320px) */
@media (max-width: 320px) {
    .footer-logo img {
        max-height: 35px;
    }
    
    .footer-description {
        font-size: 0.9rem;
    }
    
    .footer-title {
        font-size: 1rem;
    }
    
    .social-icon {
        width: 32px;
        height: 32px;
    }
    
    .social-icon svg {
        width: 14px;
        height: 14px;
    }
    
    .contact-icon {
        width: 32px;
        height: 32px;
    }
    
    .contact-icon svg {
        width: 16px;
        height: 16px;
    }
}





























/* ==========================================================================
   PÁGINA DE BLOGS - Grid 3 columnas
   ========================================================================== */

/* Contenedor principal */
.blogs-page-container {
    min-height: 100vh;
}

/* Hero Section */
.blogs-hero-section {
    padding: 5rem 0 3rem;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-bottom: 1px solid #e2e8f0;
}

.blogs-hero-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.blogs-main-title {
    font-size: 3.5rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.blogs-subtitle {
    font-size: 1.25rem;
    color: #64748b;
    margin-bottom: 2.5rem;
}

/* Buscador */
.blogs-search-container {
    max-width: 600px;
    margin: 0 auto;
    display: none;
}

.search-box {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 4px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    border: 2px solid #e2e8f0;
    transition: all 0.3s ease;
}

.search-box:focus-within {
    border-color: #3b82f6;
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.15);
}

.search-input-field {
    flex: 1;
    border: none;
    padding: 1.25rem 1.5rem;
    font-size: 1.1rem;
    outline: none;
    background: transparent;
    color: #1e293b;
}

.search-input-field::placeholder {
    color: #94a3b8;
}

.search-submit-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    border: none;
    color: white;
    padding: 0 2rem;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.search-submit-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 15px rgba(59, 130, 246, 0.3);
}

/* Grid de blogs - 3 columnas */
.blogs-grid-section {
    padding: 4rem 5rem;
}

.blogs-grid-wrapper {
    animation: fadeIn 0.8s ease-out;
}

.blogs-grid-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
    margin-bottom: 4rem;
}

/* Card individual */
.blog-card-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.1);
    border: 1px solid #f1f5f9;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-card-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    border-color: #e0e7ff;
}

/* Imagen de la card */
.blog-card-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.blog-card-image-link {
    display: block;
    height: 100%;
}

.blog-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s cubic-bezier(0.215, 0.610, 0.355, 1);
}

.blog-card-item:hover .blog-card-img {
    transform: scale(1.08);
}

.blog-card-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f1f5f9 0%, #e2e8f0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
}

.blog-card-category-tag {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.category-label {
    background: rgba(59, 130, 246, 0.95);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    backdrop-filter: blur(10px);
}

/* Contenido de la card */
.blog-card-content-wrapper {
    padding: 1.75rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-title {
    font-size: 1.375rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 1rem;
    line-height: 1.4;
}

.blog-card-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-card-title a:hover {
    color: #3b82f6;
}

.blog-card-excerpt {
    color: #64748b;
    line-height: 1.6;
    margin-bottom: 1.5rem;
    flex-grow: 1;
    font-size: 1rem;
}

/* Botón Ver Más */
.blog-card-action {
    margin-bottom: 1.5rem;
}

.read-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 0.75rem 1.5rem;
    border: 2px solid #e0e7ff;
    border-radius: 8px;
    background: #f8fafc;
    transition: all 0.3s ease;
}

.read-more-btn:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    gap: 0.75rem;
}

/* Meta información */
.blog-card-meta {
    display: flex;
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #f1f5f9;
    margin-top: auto;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #64748b;
    font-size: 0.9rem;
}

/* Paginación */
.blogs-pagination-wrapper {
    text-align: center;
    padding-top: 3rem;
    border-top: 1px solid #f1f5f9;
}

.blogs-pagination-nav {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.blogs-pagination-nav a,
.blogs-pagination-nav span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 0.75rem;
    border-radius: 10px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.blogs-pagination-nav a {
    background: #f8fafc;
    color: #475569;
    border: 1px solid #e2e8f0;
}

.blogs-pagination-nav a:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

.blogs-pagination-nav span.current {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
}

.pagination-info {
    color: #64748b;
    font-size: 0.95rem;
}

/* Sin resultados */
.no-posts-found {
    text-align: center;
    padding: 4rem 1rem;
    max-width: 500px;
    margin: 0 auto;
}

.no-posts-found svg {
    margin-bottom: 1.5rem;
    color: #cbd5e1;
}

.no-posts-found h3 {
    font-size: 1.5rem;
    color: #1e293b;
    margin-bottom: 1rem;
}

.no-posts-found p {
    color: #64748b;
    margin-bottom: 2rem;
}

.back-home-btn {
    display: inline-block;
    padding: 0.875rem 2rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-home-btn:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

/* ==========================================================================
   SINGLE POST - Estilo centrado con padding
   ========================================================================== */

/* Contenedores con ancho controlado */
.container-narrow {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 2rem;
}

.single-post-main-content {
    min-height: 100vh;
}

/* Header minimalista */
.single-post-header-minimal {
    padding: 4rem 0 2rem;
    text-align: center;
}

.post-header-content {
    animation: fadeInUp 0.8s ease-out;
}

.single-post-categories {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.post-category-badge {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #e0e7ff;
    color: #3b82f6;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.post-category-badge:hover {
    background: #3b82f6;
    color: white;
}

.single-post-main-title {
    font-size: 3rem;
    font-weight: 800;
    line-height: 1.2;
    color: #1e293b;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}

.single-post-meta-info {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    color: #64748b;
    font-size: 0.95rem;
}

.meta-author {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.meta-author img {
    border-radius: 50%;
    border: 2px solid #f1f5f9;
}

.author-details {
    display: flex;
    flex-direction: column;
}

.by-author {
    font-size: 0.85rem;
    color: #94a3b8;
}

.author-name {
    font-weight: 600;
    color: #475569;
}

.meta-separator {
    color: #cbd5e1;
}

.meta-reading-time {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Imagen destacada centrada */
.single-post-featured-image-wrapper {
    padding: 2rem 0 3rem;
}

.featured-image-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08);
    animation: scaleIn 0.8s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.featured-image-main {
    width: 100%;
    height: auto;
    display: block;
}

.featured-image-caption-text {
    text-align: center;
    padding: 1rem;
    color: #64748b;
    font-size: 0.9rem;
    font-style: italic;
    border-top: 1px solid #f1f5f9;
    background: #f8fafc;
}

/* Contenido con padding */
.single-post-content-wrapper {
    padding: 0 0 4rem;
}

.post-content-inner {
    animation: fadeInUp 0.8s ease-out 0.2s both;
}

.post-content-area {
    font-size: 1.125rem;
    line-height: 1.8;
    color: #334155;
}

.post-content-area > * {
    margin-bottom: 1.5rem;
}

.post-content-area h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 3rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.post-content-area h3 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
}

.post-content-area p {
    margin-bottom: 1.5rem;
}

.post-content-area img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 2rem 0;
}

.post-content-area ul,
.post-content-area ol {
    padding-left: 2rem;
    margin-bottom: 1.5rem;
}

.post-content-area li {
    margin-bottom: 0.5rem;
}

.post-content-area blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 2rem;
    margin: 2.5rem 0;
    font-style: italic;
    color: #475569;
    font-size: 1.25rem;
    line-height: 1.6;
    background: #f8fafc;
    padding: 2rem;
    border-radius: 0 12px 12px 0;
}

/* Sección de etiquetas */
.post-tags-section {
    padding: 2rem 0;
    border-top: 1px solid #f1f5f9;
    margin-top: 3rem;
}

.tags-section-title {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.post-tag-item {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    background: #f1f5f9;
    color: #475569;
    border-radius: 20px;
    font-size: 0.9rem;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.post-tag-item:hover {
    background: #3b82f6;
    color: white;
    border-color: #3b82f6;
    transform: translateY(-2px);
}

/* Sección compartir */
.post-share-section {
    padding: 2rem 0;
    border-top: 1px solid #f1f5f9;
    border-bottom: 1px solid #f1f5f9;
    margin: 2rem 0;
}

.share-title {
    font-size: 1rem;
    color: #64748b;
    margin-bottom: 1rem;
    font-weight: 600;
}

.share-buttons {
    display: flex;
    gap: 1rem;
}

.share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.facebook-btn {
    background: #1877f2;
    color: white;
}

.twitter-btn {
    background: #1da1f2;
    color: white;
}

.linkedin-btn {
    background: #0077b5;
    color: white;
}

.share-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

/* Navegación entre posts */
.post-navigation-section {
    padding: 3rem 0;
    background: #f8fafc;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.navigation-wrapper {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 2rem;
    align-items: center;
}

.nav-previous-post,
.nav-next-post {
    min-height: 80px;
}

.nav-post-link {
    display: block;
    padding: 1.5rem;
    /*background: white;*/
    border-radius: 12px;
    text-decoration: none;
   /* box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);*/
    transition: all 0.3s ease;
  /*  border: 1px solid #f1f5f9;*/
    height: 100%;
}

.nav-post-link:hover {
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
    border-color: #e0e7ff;
}

.prev-link {
    text-align: left;
}

.next-link {
    text-align: right;
}

.nav-direction {
    display: block;
    font-size: 0.9rem;
    color: #64748b;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.nav-post-title {
    display: block;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.4;
    font-size: 1.1rem;
}

.back-to-blog-btn {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 2rem;
    background: #3b82f6;
    color: white;
    text-decoration: none;
    border-radius: 12px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.back-to-blog-btn:hover {
    background: #1d4ed8;
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(59, 130, 246, 0.3);
}

/* Posts relacionados */
.related-posts-section {
    padding: 4rem 0;
}

.related-posts-heading {
    font-size: 2rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 2.5rem;
    text-align: center;
}

.related-posts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.related-post-item {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
    transition: all 0.3s ease;
    border: 1px solid #f1f5f9;
}

.related-post-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
}

.related-post-image-link {
    display: block;
    height: 180px;
    overflow: hidden;
}

.related-post-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.related-post-item:hover .related-post-img {
    transform: scale(1.05);
}

.related-post-content {
    padding: 1.5rem;
}

.related-post-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}

.related-post-title a {
    color: inherit;
    text-decoration: none;
}

.related-post-title a:hover {
    color: #3b82f6;
}

.related-post-excerpt {
    color: #64748b;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.related-post-read-more {
    color: #3b82f6;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.related-post-read-more:hover {
    gap: 0.75rem;
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* ==========================================================================
   RESPONSIVE - TABLET (768px - 1024px)
   ========================================================================== */

@media (max-width: 1024px) {
    /* Página de blogs - Tablet */
    .blogs-main-title {
        font-size: 3rem;
    }
    
    .blogs-grid-3-col {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }
    
    /* Single post - Tablet */
    .single-post-main-title {
        font-size: 2.5rem;
    }
    
    .container-narrow {
        padding: 0 3rem;
    }
    
    .navigation-wrapper {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .nav-home-link {
        order: 3;
    }
    
    .nav-previous-post,
    .nav-next-post {
        min-height: auto;
    }
}

/* ==========================================================================
   RESPONSIVE - MÓVIL (hasta 767px)
   ========================================================================== */

@media (max-width: 767px) {
    /* Página de blogs - Móvil */
    .blogs-hero-section {
        padding: 3rem 0 2rem;
    }
    
    .blogs-main-title {
        font-size: 2.5rem;
    }
    
    .blogs-subtitle {
        font-size: 1.1rem;
        padding: 0 1rem;
    }
    
    .blogs-grid-section {
        padding: 2rem 0;
    }
    
    .blogs-grid-3-col {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        margin-bottom: 2.5rem;
    }
    
    .blog-card-image-wrapper {
        height: 200px;
    }
    
    .blog-card-content-wrapper {
        padding: 1.5rem;
    }
    
    .blog-card-title {
        font-size: 1.25rem;
    }
    
    .search-box {
        flex-direction: column;
        background: transparent;
        border: none;
        box-shadow: none;
        padding: 0;
        gap: 1rem;
    }
    
    .search-input-field {
        background: white;
        border: 2px solid #e2e8f0;
        border-radius: 12px;
    }
    
    .search-submit-btn {
        padding: 1rem;
        justify-content: center;
    }
    
    /* Single post - Móvil */
    .container-narrow {
        padding: 0 1.5rem;
    }
    
    .single-post-header-minimal {
        padding: 2.5rem 0 1.5rem;
    }
    
    .single-post-main-title {
        font-size: 2rem;
        padding: 0;
    }
    
    .single-post-meta-info {
        flex-direction: column;
        gap: 0.75rem;
        text-align: center;
    }
    
    .meta-separator {
        display: none;
    }
    
    .single-post-featured-image-wrapper {
        padding: 1.5rem 0 2rem;
    }
    
    .featured-image-container {
        border-radius: 12px;
    }
    
    .post-content-area {
        font-size: 1rem;
    }
    
    .post-content-area h2 {
        font-size: 1.75rem;
    }
    
    .post-content-area h3 {
        font-size: 1.25rem;
    }
    
    .post-content-area blockquote {
        padding: 1.5rem;
        font-size: 1.1rem;
    }
    
    .related-posts-grid {
        grid-template-columns: 1fr;
    }
    
    .related-posts-heading {
        font-size: 1.75rem;
    }
    
    .post-navigation-section {
        padding: 2rem 0;
    }
    
    .navigation-wrapper {
        gap: 1rem;
    }
    
    .nav-post-link {
        padding: 1.25rem;
    }
    
    .back-to-blog-btn {
        padding: 0.875rem 1.5rem;
        justify-content: center;
    }
}

/* Pequeños ajustes para móviles muy pequeños */
@media (max-width: 375px) {
    .blogs-main-title {
        font-size: 2rem;
    }
    
    .blog-card-meta {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .single-post-main-title {
        font-size: 1.75rem;
    }
    
    .container-narrow {
        padding: 0 1rem;
    }
}