@media (max-width: 1080px) {
  .hero-layout,
  .split-section,
  .contact-layout,
  .portal-layout,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .portal-sidebar {
    padding-bottom: 0;
  }

  .portal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .container {
    width: min(calc(100% - 1.5rem), var(--contenedor));
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand,
  .brand-logo {
    width: auto;
  }

  .menu-toggle {
    display: inline-flex;
    justify-self: end;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.75rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.98);
    border: 1px solid rgba(216, 225, 232, 0.9);
    box-shadow: var(--sombra-media);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px);
    transition: opacity var(--transicion), transform var(--transicion);
  }

  html[data-theme="dark"] .site-nav {
    background: rgba(10, 24, 37, 0.98);
    border-color: rgba(132, 167, 198, 0.14);
  }

  .menu-open .site-nav {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-list {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-item {
    width: 100%;
  }

  .nav-link {
    justify-content: flex-start;
  }

  .dropdown-menu {
    position: static;
    min-width: 0;
    margin-top: 0.25rem;
    padding: 0.5rem;
    display: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
    box-shadow: none;
    border-radius: 18px;
    background: rgba(15, 76, 129, 0.04);
  }

  .nav-item.is-open .dropdown-menu {
    display: grid;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .hero-metrics {
    grid-template-columns: 1fr 1fr;
  }

  .product-request-shell,
  .product-request-grid,
  .catalog-modal-body {
    grid-template-columns: 1fr;
  }

  .product-request-side {
    order: -1;
  }

  .product-shortcuts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-modal-options {
    order: -1;
  }

  .hero-visual-shell {
    justify-content: center;
  }

  .cta-strip-card {
    flex-direction: column;
    align-items: flex-start;
  }

  .cta-strip-card > div:first-child {
    width: 100%;
  }

  .cta-strip-card .button-group {
    width: 100%;
  }
}

@media (max-width: 680px) {
  section,
  .hero-section,
  .page-banner {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .grid-4,
  .grid-3,
  .grid-2,
  .cookie-settings-grid,
  .hero-metrics,
  .portal-grid,
  .contact-form-grid,
  .form-grid,
  .cta-strip-card,
  .product-shortcuts {
    grid-template-columns: 1fr;
  }

  .product-shortcut {
    grid-template-columns: 56px minmax(0, 1fr);
  }

  .header-inner {
    min-height: 64px;
  }

  .site-header {
    backdrop-filter: blur(12px);
  }

  .brand-logo {
    width: 132px;
    height: 44px;
  }

  .header-inner {
    grid-template-columns: auto 1fr auto;
  }

  .brand {
    width: 96px;
    min-width: 96px;
    max-width: 96px;
  }

  .theme-toggle {
    width: 54px;
    height: 30px;
    justify-self: center;
  }

  .theme-toggle::before {
    width: 22px;
    height: 22px;
  }

  html[data-theme="dark"] .theme-toggle::before {
    transform: translateX(24px);
  }

  .entry-panel,
  .page-banner-card,
  .highlight-panel,
  .form-card,
  .contact-card,
  .cookie-modal-header,
  .cookie-modal-body,
  .product-request-shell {
    padding: 1.5rem;
  }

  .catalog-modal-header,
  .catalog-modal-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .slide img,
  .slider {
    min-height: 420px;
    height: 420px;
  }

  .slider-wide,
  .slider-wide .slide img {
    min-height: 420px;
    height: 420px;
  }

  .slider-bleed,
  .slider-bleed .slide img {
    min-height: 420px;
    height: 420px;
  }

  .slide-overlay {
    left: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-width: none;
    padding: 1rem;
  }

  .slide-overlay h2 {
    font-size: clamp(1.2rem, 5vw, 1.5rem);
  }

  .hero-copy h1,
  .page-banner-card h1 {
    font-size: clamp(2rem, 8vw, 2.6rem);
    line-height: 1.12;
  }

  .hero-copy .lead,
  .page-banner-card .lead {
    font-size: 1rem;
  }

  .cookie-banner-inner {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-visual-card {
    min-height: 340px;
  }

  .hero-chart {
    padding: 2.25rem 1.2rem 1.2rem;
  }

  .hero-chart-header {
    left: 1.2rem;
    top: 1.2rem;
  }

  .hero-chart-bars {
    inset: 5.7rem 1.2rem 1.2rem;
    gap: 0.65rem;
  }

  .hero-metrics {
    gap: 0.75rem;
  }

  .metric-card {
    padding: 0.9rem;
  }

  .split-section,
  .hero-layout,
  .contact-layout {
    gap: 1.5rem;
  }

  .cta-strip-card {
    padding: 1.5rem;
    gap: 1.25rem;
  }

  .cta-strip-card .button-group {
    flex-direction: column;
    align-items: stretch;
  }

  .cta-strip-card .btn {
    width: 100%;
  }

  .page-banner-card::after {
    width: 180px;
    height: 180px;
    inset: auto -12% -26% auto;
  }

  .footer-note {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .footer-legal-links {
    gap: 0.75rem;
    justify-content: center;
  }

  .site-footer {
    text-align: center;
  }

  .footer-grid {
    justify-items: center;
  }

  .footer-brand {
    justify-content: center;
  }

  .footer-links,
  .footer-contact {
    justify-items: center;
  }

  .site-footer .footer-contact .contact-line {
    padding-left: 0;
  }

  .floating-whatsapp {
    width: 58px;
    height: 58px;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .floating-whatsapp svg {
    width: 26px;
    height: 26px;
  }

  .whatsapp-chat-panel {
    right: 0.75rem;
    bottom: 5.1rem;
    width: min(340px, calc(100vw - 1.5rem));
  }
}

@media (max-width: 480px) {
  section,
  .hero-section,
  .page-banner {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .container {
    width: min(calc(100% - 1rem), var(--contenedor));
  }

  .hero-visual-card {
    min-height: 300px;
  }

  .hero-chart {
    padding: 1.9rem 1rem 1rem;
  }

  .hero-chart-header {
    left: 1rem;
    top: 1rem;
  }

  .hero-chart-header strong {
    font-size: 1.45rem;
  }

  .hero-chart-bars {
    inset: 5.2rem 1rem 1rem;
    gap: 0.45rem;
  }

  .hero-chart-bars span small {
    font-size: 0.72rem;
  }

  .slide img,
  .slider,
  .slider-wide,
  .slider-wide .slide img,
  .slider-bleed,
  .slider-bleed .slide img {
    min-height: 360px;
    height: 360px;
  }

  .contact-line {
    font-size: 0.98rem;
    padding-left: 2.2rem;
  }

  .contact-whatsapp-btn,
  .btn {
    min-height: 48px;
  }
}
