/* ============================================================
   UNIREGISTRO — Responsivo
   breakpoints: 1024 · 860 · 768 (nav) · 520
   ============================================================ */

@media (max-width: 1024px) {
    .hero .container { gap: 40px; }
    .steps-list { grid-template-columns: repeat(2, 1fr); row-gap: 42px; }
    .steps-list::before { display: none; }
}

@media (max-width: 860px) {
    .hero { padding: 64px 0 56px; }
    .hero .container { grid-template-columns: 1fr; }
    .hero h1, .hero-subtitle, .hero-certificate { grid-column: 1; grid-row: auto; }

    .hero-certificate {
        justify-self: center;
        margin-top: 10px;
        transform: rotate(1deg);
    }

    @keyframes certRise {
        from { opacity: 0; transform: translateY(26px) rotate(1deg); }
        to { opacity: 1; transform: translateY(0) rotate(1deg); }
    }

    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .content-section { padding: 60px 0; }
}

@media (max-width: 768px) {
    .menu-toggle { display: flex; }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 290px;
        height: 100vh;
        background: var(--ink-deep);
        padding: 92px 32px 32px;
        transition: right 0.3s ease;
        box-shadow: -12px 0 34px rgba(0, 0, 0, 0.4);
        border-left: 3px solid var(--brass);
    }

    .main-nav.open { right: 0; }

    .nav-list { flex-direction: column; gap: 6px; align-items: flex-start; }

    .nav-list a {
        font-size: 0.95rem;
        display: block;
        padding: 10px 0;
        border-bottom: 1px solid rgba(246, 241, 228, 0.1);
        width: 100%;
    }

    .hero h1 { font-size: clamp(1.8rem, 7vw, 2.4rem); }
    .hero-subtitle { font-size: 1rem; }
    .content-section h3 { font-size: 1.16rem; }
    .cert-seal { width: 58px; height: 58px; bottom: -16px; left: -16px; }
    .cert-seal::before { font-size: 1.05rem; }
}

@media (max-width: 520px) {
    .container { padding: 0 18px; }

    .cards-grid,
    .patent-grid,
    .steps-list { grid-template-columns: 1fr; }

    .steps-list { row-gap: 36px; }

    .step { text-align: left; padding: 0 0 0 4px; }
    .step-num { margin-bottom: 12px; }

    .hero-certificate { padding: 24px 20px 22px; }
    .cert-title { font-size: 1.2rem; }
    .cert-stamp { font-size: 0.8rem; letter-spacing: 0.16em; padding: 6px 12px; }
    .cert-signature { min-width: 120px; font-size: 0.95rem; }

    .cta-section { padding: 60px 0; }
    .cta-button { padding: 15px 30px; width: 100%; max-width: 340px; }

    .whatsapp-float { bottom: 16px; right: 16px; width: 50px; height: 50px; }
    .whatsapp-float svg { width: 28px; height: 28px; }
}
