/* =========================================
   RESPONSIVE.CSS - Media Queries
   Projecte Share Theme
========================================= */

/* ===== TABLET (max 1024px) ===== */
@media (max-width: 1024px) {
    .nav-group {
        gap: 25px;
    }

    .nav-group.left {
        padding-right: 30px;
    }

    .nav-group.right {
        padding-left: 30px;
    }

    .mis-tarjetas-wp {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 320px;
    }

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

    .post-navigation {
        grid-template-columns: 1fr;
    }
}

/* ===== MOBILE MENU BREAKPOINT (max 900px) ===== */
@media (max-width: 900px) {
    /* Show hamburger */
    .mobile-menu-toggle {
        display: flex;
    }

    /* Hide desktop nav groups */
    .nav-group {
        display: none;
    }

    /* Adjust nav */
    .nav-container {
        padding: 20px 5%;
    }

    .nav-content {
        justify-content: space-between;
    }

    .nav-container.scrolled .nav-content {
        padding: 10px 25px;
    }

    /* Hero adjustments */
    .slide-contenido h2 {
        font-size: clamp(2rem, 8vw, 3.5rem);
    }

    .carousel-controls {
        bottom: 25px;
    }

    .carousel-btn {
        width: 40px;
        height: 40px;
    }

    /* Cards */
    .mis-tarjetas-wp {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .mis-tarjetas-wp .tarjeta-ancha {
        grid-column: span 1;
    }

    /* Page hero */
    .page-hero-compact {
        height: 35vh;
        min-height: 250px;
    }

    .page-hero-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 35px;
    }

    .footer-brand {
        max-width: 100%;
        text-align: center;
    }

    .footer-social {
        justify-content: center;
    }

    .footer-widget-title::after {
        margin: 0 auto;
        left: 50%;
        transform: translateX(-50%);
    }

    .footer-bottom {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    /* Posts grid */
    .posts-grid {
        grid-template-columns: 1fr;
    }

    /* Scroll indicator */
    .scroll-indicator {
        display: none;
    }
}

/* ===== SMALL MOBILE (max 600px) ===== */
@media (max-width: 600px) {
    .mis-tarjetas-wp {
        grid-template-columns: 1fr;
        grid-auto-rows: auto;
        gap: 20px;
    }

    .seccion-bento {
        padding: 60px 5%;
    }

    .seccion-titulo h2 {
        font-size: 1.8rem;
    }

    .content-area {
        padding: 50px 0;
    }

    .nav-logo h1 {
        font-size: 1.4rem;
    }

    .slide-btn {
        padding: 12px 24px;
        font-size: 0.85rem;
    }

    .page-hero-compact {
        height: 30vh;
        min-height: 200px;
    }

    .error-404-title {
        font-size: 5rem !important;
    }

    /* Single article */
    .single-article .entry-content {
        font-size: 1rem;
    }

    .single-article .entry-content blockquote {
        padding: 15px 20px;
    }

    /* Search */
    .search-input-wrapper {
        flex-direction: column;
        border-radius: 16px;
        padding: 10px;
    }

    .search-field {
        width: 100%;
    }

    .search-submit {
        width: 100%;
    }
}

/* ===== ANIMATIONS - Reduced Motion ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    .animar-scroll {
        opacity: 1 !important;
        transform: none !important;
    }

    .slide {
        transition: none !important;
    }

    .slide img {
        transition: none !important;
        transform: none !important;
    }
}

/* ===== PRINT ===== */
@media print {
    .nav-container,
    .mobile-menu-overlay,
    .carousel-controls,
    .carousel-progress,
    .scroll-indicator,
    .footer-wave {
        display: none !important;
    }

    .carrusel-hero {
        height: auto;
        min-height: 200px;
    }

    body {
        background: #fff;
        color: #000;
    }
}
