/* ==========================================================================
   RESPONSIVE — Correcciones de espaciado, márgenes y modal
   ========================================================================== */

@media (max-width: 1100px) {
  .about-grid { grid-template-columns: 1fr; gap: 40px; }
  .projects-grid,
  .board-grid,
  .events-grid,
  .icon-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
  .hero__seal { width: 80px; top: 18%; right: 4%; }
}

@media (max-width: 820px) {
  :root { --navbar-height: 68px; }

  .navbar { padding: 12px 0; }
  .navbar__logo img { height: 36px; }

  .nav-links {
    position: fixed;
    top: var(--navbar-height);
    left: 0; right: 0;
    width: 100%;
    background: var(--papel);
    flex-direction: column;
    align-items: center;
    padding: 32px 24px;
    gap: 1.4rem;
    transform: translateY(-150%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    border-bottom: 2px solid var(--rojo-oxido);
    box-shadow: var(--sombra-card);
    z-index: 999;
    max-height: calc(100vh - var(--navbar-height));
    overflow-y: auto;
  }
  .nav-links.open { transform: translateY(0); }
  .hamburger { display: flex; }

  .projects-grid,
  .board-grid,
  .events-grid,
  .icon-grid,
  .artists-grid { grid-template-columns: 1fr; }

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

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

  /* ============================ BANNER COOKIES MÓVIL ============================ */
  .cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: auto;
    margin: 0;
    width: 100%;
    max-width: 100%;
    transform: none;
    border-radius: 0;
    border-left: none;
    border-top: 4px solid var(--rojo-oxido, #7A2E1E);
    padding: 20px 18px 22px;
    max-height: 85vh;
    overflow-y: auto;
    animation: none;
  }

  .cookie-banner__content { display: block; text-align: center; }
  .cookie-banner__icon { display: none; }
  .cookie-banner__text h3 { font-size: 1.05rem; margin-bottom: 6px; }
  .cookie-banner__text p { font-size: 0.9rem; margin-bottom: 14px; }

  .cookie-banner__actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    width: 100%;
  }

  .cookie-banner__actions .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.68rem;
  }

  /* ============================ MODAL COOKIES MÓVIL ============================ */
  
    /* ============================ MODAL COOKIES MÓVIL ============================ */
  .cookie-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    padding: 0;

    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
    height: fit-content;
    max-height: 85vh;

    border-radius: 4px;
    overflow: hidden;
  }

  .cookie-modal__form {
    max-height: 85vh;
    display: flex;
    flex-direction: column;
  }

  .cookie-modal__header {
    padding: 18px 20px;
  }

  .cookie-modal__header h3 {
    font-size: 1.15rem;
  }

  .cookie-modal__body {
    padding: 18px 20px;
    gap: 12px;
    overflow-y: auto;
  }

  .cookie-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 14px 16px;
  }

  .cookie-option strong {
    font-size: 1rem;
  }

  .cookie-option p {
    font-size: 0.88rem;
    line-height: 1.4;
  }

  .cookie-toggle,
  .cookie-toggle--always-on {
    align-self: flex-end;
  }

  .cookie-toggle--always-on {
    font-size: 0.6rem;
    padding: 5px 10px;
  }

  .cookie-modal__footer {
    padding: 16px 20px;
    flex-direction: column;
    gap: 10px;
  }

  .cookie-modal__footer .btn {
    width: 100%;
    padding: 12px 16px;
    font-size: 0.7rem;
  }

  /* ============================ HERO MÓVIL ============================ */
  .hero {
    padding: calc(var(--navbar-height) + 40px) 24px 80px;
    min-height: auto;
  }
  .hero__title { font-size: clamp(2rem, 9vw, 3.2rem); }
  .hero__lead { font-size: 1.05rem; }
  .hero__seal { display: none; }
  .hero__kicker { font-size: 0.6rem; letter-spacing: 2.5px; padding: 8px 16px; }
  .hero__quote-author { margin-bottom: 32px; }

  .ribbon { font-size: 0.64rem; gap: 1.8rem; padding: 12px 0; }
  .ribbon__track { gap: 1.8rem; padding-left: 1.8rem; }

  .quote-banner { padding: 60px 24px; }
  .drop-cap > p::first-letter { font-size: 3.4em; }
  .section-lead { font-size: 1rem; }
  .header-flourish { font-size: 1.1rem; }
}

@media (max-width: 520px) {
  .section { padding-top: 56px; padding-bottom: 56px; }

  .hero { padding: calc(var(--navbar-height) + 24px) 18px 60px; }

  .hero__actions {
    flex-direction: column;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
  }
  .hero__actions .btn { width: 100%; }

  .form-container { padding: 28px 20px; }
  .mv-card { padding: 34px 22px 26px; }
  .icon-card { padding: 28px 18px 22px; }
}