/* =========================================================
   MATEO TE VEMOS — RESPONSIVE
========================================================= */

@media (max-width: 1050px) {
    .nav-container {
        width: min(100% - 28px, var(--site-max-width));
    }

    nav ul {
        gap: 20px;
    }

    .wp-container,
    .site-container,
    .wp-content-container,
    .wp-reading-container,
    .content {
        width: min(100% - 28px, var(--content-max-width));
    }

    .wp-hero,
    .hero,
    .hero-secondary {
        width: 100%;
        min-height: 172px;
        margin-bottom: 38px;
        padding: 20px 28px;
    }
}

@media (max-width: 780px) {
    body > #main-content > header {
        position: static;
    }

    .nav-container {
        display: flex;
        flex-direction: column;
        gap: 12px;

        padding: 12px 0;
    }

    nav {
        width: 100%;
        order: 2;
    }

    nav ul {
        flex-wrap: wrap;
        gap: 5px 18px;
    }

    nav a {
        min-height: 40px;
    }

    nav a::after {
        bottom: 1px;
    }

    .user-area {
        order: 1;
        align-self: flex-end;
    }

    .wp-container,
    .site-container,
    .wp-content-container,
    .wp-reading-container,
    .content {
        width: min(100% - 20px, var(--content-max-width));
    }

    .wp-hero,
    .hero,
    .hero-secondary {
        min-height: 160px;
        margin-bottom: 32px;
        padding: 18px;

        border-radius: var(--radius-md);
    }

    .wp-hero-content,
    .hero-text,
    .hero-secondary-content {
        width: calc(100% - 110px);
    }

    .wp-hero h1,
    .wp-hero .wp-hero-content h1,
    .hero h1,
    .hero .hero-text h1,
    .hero-secondary h1,
    .hero-secondary .hero-secondary-content h1 {
        font-size: 1.9rem;
    }

    .btn-back,
    .wp-back-button {
        top: 16px;
        left: 16px;
    }

    .wp-card {
        padding: 19px;
    }

    .content > p,
    .wp-reading-container > p {
        max-width: 100%;
        font-size: 16px;
        line-height: 1.7;
    }

    #inicio-content {
        margin-bottom: 42px;
    }

    #dynamic-intro-text p {
        max-width: 100%;

        font-size: 16px;
        line-height: 1.7;

        text-align: left;

        hyphens: none;
        -webkit-hyphens: none;
    }

    #inicio .section-title {
        margin-bottom: 24px;
    }

    #inicio .section-title h2 {
        font-size: 1.9rem;
    }

    footer {
        margin-top: 38px;
    }
}

@media (max-width: 520px) {
    body {
        font-size: 15px;
    }

    .login-container,
    .login-card {
        padding: 34px 24px;
    }

    .wp-hero,
    .hero,
    .hero-secondary {
        min-height: 148px;
        margin-bottom: 26px;
        padding: 16px 14px;
    }

    .wp-hero-content,
    .hero-text,
    .hero-secondary-content {
        width: calc(100% - 70px);
    }

    .wp-hero h1,
    .wp-hero .wp-hero-content h1,
    .hero h1,
    .hero .hero-text h1,
    .hero-secondary h1,
    .hero-secondary .hero-secondary-content h1 {
        font-size: 1.65rem;
    }

    .wp-hero p,
    .wp-hero .wp-hero-content p,
    .hero .hero-text p,
    .hero-secondary-content p {
        margin-top: 8px;
        font-size: 0.9rem;
    }

    .card-grid,
    .wp-card-grid {
        grid-template-columns: 1fr;
    }

    .card h3 {
        font-size: 1.35rem;
    }

    #inicio-content {
        margin-bottom: 34px;
    }

    #dynamic-intro-text h1,
    #dynamic-intro-text h2,
    #dynamic-intro-text h3 {
        margin-bottom: 22px;
    }

    #dynamic-intro-text p {
        font-size: 15px;
        line-height: 1.65;
    }

    #inicio .section-title h2 {
        font-size: 1.7rem;
    }
}

/* ACCESSIBILITY */

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;

        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;

        transition-duration: 0.01ms !important;
    }
}
