@media (max-width: 1100px) {
    .hero__title { font-size: clamp(2.2rem, 6vw, 4rem); }
}

@media (max-width: 900px) {
    .grid--4 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
    .sorteo-grid { grid-template-columns: 1fr; }
    .wizard__sidebar .wizard__card:first-child { display: none; }
}

@media (max-width: 760px) {
    :root { --header-height: 64px; }
    .container { width: min(var(--container), 100% - 2 * var(--space-4)); }
    .section { padding-block: var(--space-6); }
    .hero { padding-block: var(--space-6) var(--space-7); }
    .hero__visual { min-height: 220px; }
    .hero__card { width: min(280px, 86vw); }
    .hero__card--float { display: none; }
    .hero__stats { gap: var(--space-4); }
    .section-head { flex-direction: column; align-items: flex-start; }
    .modal { width: 100%; max-height: 92vh; border-radius: var(--radius-md) var(--radius-md) 0 0; }
    .modal-overlay { align-items: flex-end; padding: 0; }
    .panel__body { padding: var(--space-4); }
    .panel__head, .panel__foot { padding-inline: var(--space-4); }
    .toast-stack { top: 76px; right: 12px; left: 12px; width: auto; }
    .countdown__unit { min-width: 54px; }
    .wizard__head { flex-direction: column; }
    .wizard__nav { position: sticky; bottom: 0; background: var(--panel-strong); padding: 10px; border-radius: var(--radius-md); border: 1px solid var(--border); z-index: 5; }
    .profile-hero .avatar { width: 84px; height: 84px; font-size: 2.4rem; }
    .gallery-grid { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
    .admin-topbar { padding: 10px var(--space-4); }
    .admin-topbar h1 { font-size: .95rem; }
    .admin-section__head h2 { font-size: 1.2rem; }
    .table { min-width: 560px; }
    .hide-mobile { display: none !important; }
    .fab-stack { right: 14px; bottom: 14px; }
    .fab { width: 50px; height: 50px; }
}

@media (max-width: 520px) {
    .btn { width: 100%; }
    .btn--icon, .row .btn, .hero__actions .btn { width: auto; }
    .row--between .btn { width: auto; }
    .hero__actions { flex-direction: column; align-items: stretch; }
    .hero__actions .btn { width: 100%; }
    .step-panel { padding: var(--space-4); }
    .option-grid { grid-template-columns: repeat(auto-fill, minmax(108px, 1fr)); }
    .segmented { width: 100%; justify-content: space-between; }
}

@media print {
    .site-header, .site-footer, .fab-stack, .admin-fab, .toast-stack, .panel-overlay, .wizard__sidebar, .wizard__nav, .bg-canvas, .bg-css, .fx-overlay, .cursor-glow { display: none !important; }
    body { background: #fff; color: #000; }
    .card, .step-panel { box-shadow: none; border-color: #ddd; background: #fff; color: #000; }
}
