/* ========================================
   JORGE IVÁN MARROQUÍN - RESPONSIVE.CSS
   Media Queries para diseño responsive
======================================== */

/* === TABLETS Y PANTALLAS MEDIANAS (max-width: 992px) === */
@media (max-width: 992px) {
    .wrapper {
        width: 95%;
    }

    .hero-title {
        font-size: 3rem;
    }

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

    .section-title {
        font-size: 2.2rem;
    }

    .author-grid {
        gap: 40px;
    }

    .footer-grid {
        gap: 40px;
    }

    .libros-carousel {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 30px;
    }

    .testimonios-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
    }

    /* LIBRO SINGLE - TABLETS */
    .libro-hero-grid {
        grid-template-columns: 300px 1fr;
        gap: 50px;
    }

    .libro-portada-container {
        position: static;
    }

    .libro-titulo {
        font-size: 2.8rem;
    }

    .wrapper-narrow {
        width: 95%;
    }

    /* RECURSOS - TABLETS */
    .recursos-grid {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
        gap: 25px;
    }
}

/* === MÓVILES Y TABLETS PEQUEÑAS (max-width: 768px) === */
@media (max-width: 768px) {
    /* HERO BANNER */
    .hero-banner {
        min-height: 70vh;
        background-position: 6% top;
    }

    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
        margin-bottom: 1.5rem;
    }

    /* NAVEGACIÓN */
    .navbar-container {
        flex-direction: column;
        gap: 20px;
        margin-top: 15px;
    }

    .site-logo {
        height: 70px;
    }

    .nav-list {
        flex-direction: column;
        gap: 5px;
        text-align: center;
        width: 100%;
    }

    .nav-link {
        padding: 8px 15px;
        font-size: 0.95rem;
    }

    /* BOTONES */
    .cta-button {
        padding: 12px 25px;
        font-size: 1rem;
    }

    .btn-ver-mas {
        padding: 8px 18px;
        font-size: 0.9rem;
    }

    /* TÍTULOS DE SECCIÓN */
    .section-title {
        font-size: 2rem;
    }

    .section-title::after {
        width: 80px;
    }

    /* AUTOR */
    .author-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .author-content h3 {
        font-size: 1.7rem;
    }

    .author-content p {
        font-size: 1rem;
    }

    /* LIBROS */
    .libros-section {
        padding: 60px 0;
    }

    .libros-carousel {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .libro-card img {
        height: 300px;
    }

    /* LIBRO INDIVIDUAL - MÓVIL */
    .libro-hero {
        padding: 45px 0;
    }

    .libro-hero-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .libro-portada-container {
        position: static;
        max-width: 300px;
        margin: 0 auto;
    }

    .libro-info-principal {
        padding-top: 0;
    }

    .libro-titulo {
        font-size: 2.2rem;
    }

    .libro-subtitulo {
        font-size: 1.1rem;
        margin-bottom: 24px;
    }

    .libro-detalles {
        grid-template-columns: 1fr;
        padding: 20px;
        gap: 12px;
    }

    .libro-descripcion {
        padding: 50px 0;
    }

    .section-title-simple {
        font-size: 2rem;
        margin-bottom: 25px;
    }

    .otros-libros {
        padding: 50px 0;
    }

    .otros-libros-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .libro-card-mini img {
        height: auto;
        max-height: 360px;
    }

    /* ENTRADAS BLOG */
    .entradas-destacadas {
        padding: 60px 0;
    }

    .entradas-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .entradas-card h3 {
        font-size: 1.3rem;
    }

    /* TESTIMONIOS */
    .testimonios-section {
        padding: 60px 0;
    }

    .testimonios-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .testimonio-card {
        padding: 30px 25px;
    }

    .testimonio-card::before {
        font-size: 60px;
        top: 5px;
        left: 15px;
    }

    /* FOOTER */
    footer {
        padding: 50px 0;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    /* ==============================
       BLOG SINGLE - RESPONSIVE
    ============================== */

    /* Header fijo blog */
    body.blog-single-page {
        padding-top: 80px;
    }

    .site-header {
        height: 80px;
    }

    .header-container {
        flex-direction: column;
        justify-content: center;
        gap: 10px;
        padding: 10px 0;
    }

    .site-logo-header {
        height: 50px;
    }

    .site-header .main-nav ul {
        flex-wrap: wrap;
        justify-content: center;
        gap: 5px;
    }

    .site-header .nav-link {
        padding: 5px 10px;
        font-size: 0.85rem;
    }

    /* Post header */
    .post-header {
        padding: 40px 0 30px;
    }

    .post-title {
        font-size: 2rem;
    }

    .post-excerpt {
        font-size: 1rem;
        margin-bottom: 25px;
    }

    .post-meta {
        flex-direction: column;
        gap: 10px;
    }

    .author-avatar {
        width: 45px;
        height: 45px;
    }

    .author-name {
        font-size: 1rem;
    }

    .author-role {
        font-size: 0.8rem;
    }

    /* Imagen destacada */
    .featured-image {
        margin: 30px auto;
        padding: 0 15px;
    }

    /* Contenido del artículo */
    .post-content {
        margin: 40px auto;
        padding: 0 15px;
    }

    .post-content h2 {
        font-size: 1.6rem;
        margin: 30px 0 15px;
    }

    .post-content h3 {
        font-size: 1.3rem;
        margin: 25px 0 12px;
    }

    .post-content p,
    .post-content li {
        font-size: 1rem;
        line-height: 1.8;
    }

    .post-content blockquote {
        padding: 15px 20px;
        font-size: 1.05rem;
    }

    .callout-box {
        padding: 25px 20px;
    }

    /* Compartir */
    .share-section {
        margin: 40px auto;
        padding: 25px 15px;
    }

    .share-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .share-btn {
        justify-content: center;
    }

    /* Entradas relacionadas */
    .related-posts {
        padding: 60px 0;
    }

    .related-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .related-card h3 {
        font-size: 1.3rem;
    }
}

/* === MÓVILES PEQUEÑOS (max-width: 480px) === */
@media (max-width: 480px) {
    body {
        font-size: 15px;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .section-title {
        font-size: 1.8rem;
    }

    .site-logo {
        height: 60px;
    }

    .nav-link {
        font-size: 0.9rem;
        padding: 6px 12px;
    }

    .author-content h3 {
        font-size: 1.5rem;
    }

    .author-content p {
        font-size: 0.95rem;
    }

    .libro-info h4,
    .entradas-card h3 {
        font-size: 1.2rem;
    }

    .libro-titulo {
        font-size: 1.9rem;
    }

    .libro-portada-container {
        max-width: 260px;
    }

    .libro-info p,
    .entradas-card p {
        font-size: 0.9rem;
    }

    .testimonio-texto {
        font-size: 0.95rem;
    }

    .testimonio-nombre {
        font-size: 1.1rem;
    }

    footer h4 {
        font-size: 1.2rem;
    }

    footer p {
        font-size: 0.9rem;
    }

    /* Blog single móvil pequeño */
    .post-title {
        font-size: 1.7rem;
    }

    .post-excerpt {
        font-size: 0.95rem;
    }

    .post-content h2 {
        font-size: 1.4rem;
    }

    .post-content h3 {
        font-size: 1.2rem;
    }

    .post-content p,
    .post-content li {
        font-size: 0.95rem;
    }

    .share-title {
        font-size: 1.1rem;
    }

    .share-btn {
        padding: 10px 20px;
        font-size: 0.85rem;
    }
}

/* === PANTALLAS MUY GRANDES (min-width: 1400px) === */
@media (min-width: 1400px) {
    .wrapper {
        max-width: 1400px;
    }

    .hero-title {
        font-size: 4rem;
    }

    .hero-subtitle {
        font-size: 1.4rem;
    }

    .section-title {
        font-size: 2.8rem;
    }

    .post-title {
        font-size: 3.5rem;
    }

    .post-content {
        max-width: 900px;
    }
}

/* === AJUSTES PARA MODO LANDSCAPE EN MÓVILES === */
@media (max-height: 600px) and (orientation: landscape) {
    .hero-banner {
        min-height: 100vh;
    }

    .navbar-container {
        margin-top: 10px;
    }

    .site-logo {
        height: 60px;
    }

    .hero-title {
        font-size: 2rem;
        margin-bottom: 0.3rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
        margin-bottom: 1rem;
    }

    .cta-button {
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

/* === OPTIMIZACIÓN PARA IMPRESIÓN === */
@media print {
    .hero-banner,
    .navbar-container,
    .site-header,
    .share-section,
    .related-posts,
    footer {
        display: none;
    }

    body.blog-single-page {
        padding-top: 0;
    }

    .post-content {
        max-width: 100%;
        padding: 0;
    }

    .post-content a {
        text-decoration: none;
        color: #333;
    }

    .post-content a::after {
        content: " (" attr(href) ")";
        font-size: 0.8em;
        color: #666;
    }
}

/* === BLOG ARCHIVE - RESPONSIVE === */
@media (max-width: 768px) {
    .blog-archive {
        padding-top: 80px;
    }

    .blog-hero {
        padding: 40px 0 30px;
    }

    .blog-hero-title {
        font-size: 2rem;
    }

    .blog-hero-description {
        font-size: 1rem;
    }

    .entrada-meta {
        flex-direction: column;
        gap: 8px;
    }

    .paginacion {
        flex-direction: column;
        gap: 15px;
    }

    .paginacion-numeros ul {
        justify-content: center;
        flex-wrap: wrap;
    }

    .paginacion-prev,
    .paginacion-next {
        width: 100%;
    }

    .paginacion-btn {
        width: 100%;
        justify-content: center;
    }
}

/* ========================================
   PÁGINA GENÉRICA - RESPONSIVE
======================================== */

/* Tablets */
@media (max-width: 992px) {
    .page-hero-title {
        font-size: 2.8rem;
    }

    .page-title {
        font-size: 2.5rem;
    }

    .entry-content h1 {
        font-size: 2.3rem;
    }

    .entry-content h2 {
        font-size: 2rem;
    }

    .entry-content h3 {
        font-size: 1.6rem;
    }

    .entry-content .wp-block-columns {
        flex-direction: column;
    }

    .entry-content .wp-block-media-text {
        grid-template-columns: 1fr !important;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .page-hero {
        min-height: 300px;
    }

    .page-hero-title {
        font-size: 2.2rem;
    }

    .page-header {
        padding: 40px 0 30px;
    }

    .page-title {
        font-size: 2rem;
    }

    .page-main-content {
        padding: 50px 0;
    }

    .entry-content {
        font-size: 1rem;
    }

    .entry-content h1 {
        font-size: 2rem;
    }

    .entry-content h2 {
        font-size: 1.7rem;
        padding-left: 15px;
    }

    .entry-content h3 {
        font-size: 1.4rem;
    }

    .entry-content h4 {
        font-size: 1.2rem;
    }

    .entry-content blockquote,
    .entry-content .wp-block-quote {
        padding: 1.2em 1.5em;
        font-size: 1.05rem;
    }

    .entry-content .wp-block-pullquote blockquote {
        font-size: 1.2rem;
    }

    .entry-content table,
    .entry-content .wp-block-table {
        font-size: 0.9rem;
    }

    .entry-content .wp-block-gallery {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .entry-content .alignleft,
    .entry-content .alignright {
        float: none;
        margin: 1em auto;
        display: block;
    }
}

/* === SOBRE MÍ DOS COLUMNAS - RESPONSIVE === */

/* Tablets */
@media (max-width: 992px) {
    .sobre-mi-grid {
        grid-template-columns: 380px 1fr;
        gap: 50px;
    }

    .sobre-mi-title {
        font-size: 2.5rem;
    }

    .sobre-mi-content-col {
        padding-right: 20px;
    }
}

/* Móviles */
@media (max-width: 768px) {
    .sobre-mi-two-columns {
        min-height: auto;
        padding: 60px 0;
        background-attachment: scroll;
    }

    .sobre-mi-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .sobre-mi-imagen-col {
        max-width: 350px;
        margin: 0 auto;
    }

    .sobre-mi-content-col {
        padding-right: 0;
        text-align: center;
    }

    .sobre-mi-label {
        font-size: 0.8rem;
        letter-spacing: 1.5px;
        margin-bottom: 12px;
    }

    .sobre-mi-title {
        font-size: 2.2rem;
        margin-bottom: 20px;
    }

    .sobre-mi-description {
        font-size: 1rem;
        line-height: 1.7;
        margin-bottom: 30px;
    }

    .sobre-mi-button {
        padding: 14px 35px;
        font-size: 1rem;
        width: 100%;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .sobre-mi-two-columns {
        padding: 50px 0;
    }

    .sobre-mi-imagen-col {
        max-width: 280px;
    }

    .sobre-mi-title {
        font-size: 1.9rem;
    }

    .sobre-mi-description {
        font-size: 0.95rem;
    }

    .sobre-mi-button {
        padding: 12px 30px;
        font-size: 0.95rem;
    }
}