/* ===============================
   Arkadia — Responsive Add-ons 
   Depende de variables.css + style.css + about.css + modales.css
   =============================== */

/* === Desktop mediano (≤1280px) === */
@media (max-width: 1280px) {
    :root {
        --container: 1080px;
    }

    .site-nav .nav-inner {
        padding: 10px var(--gutter);
    }

    .news-card img {
        height: 170px;
    }
}

/* === Laptop / Tablet landscape (≤1024px) === */
@media (max-width: 1024px) {
    :root {
        --container: 920px;
    }

    .brand img {
        max-height: 56px;
    }

    .hero {
        min-height: 65vh;
    }

    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .news-card img {
        height: 160px;
    }

    .team-grid {
        --cols: 2;
    }
}

/* === Tablet (≤960px) === */
@media (max-width: 960px) {

    /* from style.css */
    .site-nav .nav-inner {
        grid-template-columns: auto 1fr auto;
    }

    .nav-links,
    .nav-actions {
        display: none;
    }

    .nav-toggle {
        display: block;
        justify-self: end;
    }

    .mobile-drawer {
        display: block;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    /* from about.css */
    .about-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .about-media::before,
    .about-media::after {
        left: 12px;
        right: 12px;
    }

    .about-zigzag .split {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .about-zigzag .split .media {
        order: -1;
        justify-self: center;
        max-width: min(720px, 92%);
    }
}

/* === Tablet (≤768px) === */
@media (max-width: 768px) {
    :root {
        --container: 92vw;
        --gutter: 16px;
    }

    .brand img {
        max-height: 48px;
    }

    .hero {
        min-height: 56vh;
    }

    .buttons-wrap {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-grid {
        grid-template-columns: 1fr;
    }

    .news-card img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    #community .container {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .community-lead {
        max-width: 100%;
        margin: 0 auto;
    }

    .community-social {
        grid-column: 1;
        display: flex;
        justify-content: center !important;
        align-items: center;
        margin: 20px 0;
        gap: 20px;
        text-align: center;
    }

    .community-newsletter {
        width: 100%;
        max-width: 520px;
        margin: 24px auto 0 auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 14px;
    }

    .community-newsletter input {
        width: 100%;
        max-width: 420px;
        text-align: center;
    }

    .community-newsletter .btn {
        margin-top: 2px;
    }

    .community-discord {
        width: 100%;
        display: flex;
        justify-content: center;
        margin-top: 18px;
    }

    .community-discord .btn {
        width: auto;
    }

    .footer-inner {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 10px;
        padding: 20px 0;
    }

    .footer-inner nav {
        display: flex;
        justify-content: center;
        flex-wrap: wrap;
        gap: 16px;
    }
}

/* === Phablet (≤640px) === */
@media (max-width: 640px) {
    .section-title .title-bottom {
        font-size: clamp(30px, 8vw, 44px);
    }

    .section-title .title-top {
        font-size: 1.05rem;
    }

    .community-social li a {
        --diamond-size: 42px;
        /* bajado también en mobile */
    }

    .community-social li a i {
        font-size: 18px;
    }

    .btn {
        padding: .6rem .95rem;
    }

    .newsletter-form,
    .contact-form {
        max-width: 100%;
    }

    .modal-dialog {
        --bevel: 12px;
        width: calc(100% - 24px);
        max-height: 88vh;
    }

    .modal-title {
        font-size: 1.25rem;
    }

    .team-grid {
        --cols: 1;
    }

    .team-card {
        padding: 16px 14px;
    }

    .team-photo {
        width: 108px;
        height: 108px;
    }
}

/* === Mobile chico (≤480px) === */
@media (max-width: 480px) {
    .brand img {
        max-height: 42px;
    }

    .hero {
        min-height: 50vh;
    }

    .news-card img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }

    .news-body {
        padding: 12px;
    }

    .news-title {
        font-size: 1rem;
    }

    .community-social {
        gap: 16px;
        margin: 20px 0;
    }

    .community-newsletter input {
        max-width: 100%;
    }

    .community-discord {
        justify-content: center;
        margin-top: 20px;
    }

    .footer-inner {
        gap: 12px;
        padding: 24px 0;
    }

    .footer-inner nav {
        gap: 12px;
        flex-wrap: wrap;
    }
}

/* === Accesibilidad: reduce motion === */
@media (prefers-reduced-motion: reduce) {
    * {
        scroll-behavior: auto !important;
    }

    .btn,
    .community-social li a,
    .section-title .title-line::after {
        transition: none !important;
    }
}