@media (max-width: 1199px) {
  :root { --container-width: 980px; }
  .main-nav { gap: 18px; }
  .main-nav a { font-size: .76rem; }
  .brand { width: 170px; }
  .hero-grid { grid-template-columns: .82fr 1.18fr; gap: 25px; }
  .dashboard-window { min-width: 590px; margin-right: -80px; transform: scale(.9); transform-origin: left center; }
  .features-grid { grid-template-columns: repeat(5, 1fr); }
  .compact-card { padding-inline: 12px; }
  .department-grid { grid-template-columns: repeat(7, 1fr); }
  .carousel-viewport { width: calc(100% - 100px); }
}

@media (max-width: 1023px) {
  :root { --header-height: 74px; }
  .container { width: min(calc(100% - 34px), 900px); }
  .section { padding: 60px 0; }
  .brand { width: 185px; }
  .menu-toggle { display: block; }
  .nav-cta { display: none; }
  .main-nav { position: fixed; top: var(--header-height); right: 0; left: 0; height: auto; display: grid; align-items: stretch; gap: 0; padding: 10px 17px 18px; margin: 0; background: rgba(255,255,255,.98); border-bottom: 1px solid var(--color-border); box-shadow: 0 18px 28px rgba(8,43,80,.12); opacity: 0; visibility: hidden; transform: translateY(-12px); transition: var(--transition); }
  .main-nav.open { opacity: 1; visibility: visible; transform: translateY(0); }
  .main-nav a { min-height: 45px; padding: 0 12px; border-radius: 8px; }
  .main-nav a::after { display: none; }
  .main-nav a.active { background: #eef7ff; }
  .menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hero { padding-top: 56px; background: linear-gradient(155deg, #fff 0 48%, #f3f8ff 48%); }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 720px; margin: auto; text-align: center; }
  .hero-copy h1, .hero-copy > p { margin-right: auto; margin-left: auto; }
  .hero-actions, .hero-chips { justify-content: center; }
  .dashboard-window { width: 100%; min-width: 0; max-width: 780px; margin: 16px auto 0; transform: none; }
  .features-grid { grid-template-columns: repeat(3, 1fr); }
  .benefit-grid { grid-template-columns: repeat(2, 1fr); }
  .department-grid { grid-template-columns: repeat(4, 1fr); }
  .process-grid { grid-template-columns: repeat(2, 1fr); gap: 45px 0; }
  .process-grid::before { display: none; }
  .security-grid { grid-template-columns: repeat(2, 1fr); gap: 34px 0; }
  .security-item:nth-child(2) { border-right: 0; }
  .plans-layout { grid-template-columns: 1fr; }
  .support-panel { min-height: 250px; }
  .testimonial-card { flex-basis: calc(50% - 11px); }
}

@media (max-width: 767px) {
  .container { width: min(calc(100% - 28px), 680px); }
  .section { padding: 64px 0; }
  .section-heading { margin-bottom: 32px; }
  .hero { padding: 45px 0 48px; }
  .hero-copy h1 { font-size: clamp(2.2rem, 9vw, 3.4rem); }
  .hero-copy > p { font-size: .96rem; }
  .dashboard-window { grid-template-columns: 112px 1fr; height: 420px; }
  .dash-sidebar { padding-inline: 8px; }.dash-sidebar img { width: 90px; }.dash-sidebar span { gap: 7px; padding: 8px 6px; font-size: .57rem; }
  .dash-topbar { padding-inline: 10px; }.dash-user small { display: none; }
  .dash-content { padding: 12px; }
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .metric-grid article { min-height: 65px; }
  .dash-panels { grid-template-columns: 1fr; }.status-panel { display: none; }.dash-panels > article { height: 164px; }
  .activity-panel li { padding: 6px 0; }
  .carousel-viewport { width: 100%; }
  .carousel-slide { height: 425px; }
  .carousel-control { top: auto; bottom: -2px; }.carousel-control.prev { left: calc(50% - 82px); }.carousel-control.next { right: calc(50% - 82px); }
  .carousel-dots { margin-top: 30px; }
  .product-preview { grid-template-columns: 95px 1fr; width: calc(100% - 24px); height: 280px; margin-top: 18px; }.preview-nav { padding: 11px; }.preview-nav img { width: 76px; }.preview-main { padding: 12px; }.document-row { grid-template-columns: 25px 1fr; }.document-row b { display: none; }
  .workflow-preview { padding: 20px 15px 125px; }.workflow-badge { margin-bottom: 20px; }.workflow-line { grid-template-columns: repeat(2, 1fr); gap: 20px 35px; }.workflow-line::before { display: none; }.workflow-line > div { min-width: 100px; }
  .audit-preview { grid-template-columns: .65fr 1fr; gap: 15px; padding: 25px 20px 130px; }.audit-shield { width: 100px; height: 120px; font-size: 2.4rem; }.audit-list span { grid-template-columns: 22px 1fr; }.audit-list small { display: none; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .compact-card { min-height: 205px; }
  .department-grid { grid-template-columns: repeat(3, 1fr); }
  .process-grid { grid-template-columns: 1fr 1fr; }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .security-item { padding-inline: 18px; }
  .plans-grid { grid-template-columns: 1fr; }
  .plan-card { min-height: 300px; }
  .testimonial-viewport { width: calc(100% - 70px); }.testimonial-card { flex-basis: calc(100% - 1px); margin-right: 14px; }.testimonial-control { width: 40px; height: 40px; }.testimonial-control.prev { left: 0; }.testimonial-control.next { right: 0; }
  .faq-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; gap: 35px; }.footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 575px) {
  :root { --header-height: 68px; }
  .container { width: min(calc(100% - 24px), 520px); }
  .brand { width: 165px; }
  .menu-toggle { width: 43px; height: 43px; }
  .section { padding: 55px 0; }
  .section-heading h2 { font-size: 1.78rem; }
  .hero { min-height: auto; padding-top: 38px; }
  .eyebrow { font-size: .67rem; }
  .hero-copy h1 { font-size: clamp(2rem, 10vw, 2.7rem); }
  .hero-actions { display: grid; }.hero-actions .button { width: 100%; }
  .hero-chips { gap: 7px; }.hero-chips li { font-size: .63rem; }
  .dashboard-window { grid-template-columns: 70px 1fr; height: 382px; border-radius: 12px; }
  .dash-sidebar { padding: 10px 5px; }.dash-sidebar img { width: 60px; padding: 4px; }.dash-sidebar span { justify-content: center; min-height: 34px; }.dash-sidebar span i { width: auto; }.dash-sidebar span { font-size: 0; }
  .dash-topbar { height: 48px; gap: 8px; }.dash-search { height: 30px; }.dash-content { min-height: calc(100% - 48px); }
  .dash-heading h2 { font-size: .87rem; }.metric-grid article { padding: 8px; }.metric-grid small { font-size: .47rem; }.metric-grid strong { font-size: .88rem; }.dash-panels > article { height: 150px; }.activity-panel li:nth-child(3) { display: none; }
  .demo-label { right: 8px; bottom: 6px; }
  .carousel-slide { height: 440px; }
  .slide-caption { padding: 18px 19px; }.slide-caption h3 { font-size: 1.15rem; }.slide-caption p { font-size: .75rem; }
  .product-preview { grid-template-columns: 60px 1fr; height: 285px; }.preview-nav { padding: 7px; }.preview-nav img { width: 48px; }.preview-nav span { padding: 6px; text-align: center; }.preview-title { margin-top: 12px; }.document-row { padding: 10px 7px; font-size: .55rem; }
  .workflow-preview { padding-bottom: 145px; }.workflow-badge { font-size: .75rem; }.workflow-line { gap: 12px; }.workflow-line i { width: 43px; height: 43px; }.workflow-line b { font-size: .62rem; }
  .audit-preview { grid-template-columns: 1fr; align-content: center; padding: 20px 22px 150px; }.audit-shield { width: 78px; height: 92px; font-size: 1.8rem; }.audit-list { gap: 6px; }.audit-list > b { font-size: .9rem; }.audit-list span { padding: 7px; font-size: .62rem; }
  .benefit-grid, .features-grid { grid-template-columns: 1fr; }
  .feature-card { min-height: auto; }
  .compact-card { min-height: 0; padding: 22px; }
  .compact-card h3 { min-height: 0; }
  .department-grid { grid-template-columns: repeat(2, 1fr); }
  .department { min-height: 110px; }
  .process-grid { grid-template-columns: 1fr; gap: 40px; }
  .process-step { padding-inline: 14px; }.process-step:not(:last-child)::after { content: ""; position: absolute; left: 50%; bottom: -33px; width: 2px; height: 24px; background: #aad2fb; }
  .security-grid { grid-template-columns: 1fr; gap: 30px; }.security-item { min-height: 0; border-right: 0; }
  .form-grid { grid-template-columns: 1fr; }.field-wide { grid-column: auto; }
  .demo-card, .contact-card { padding: 25px 19px; }
  .faq-item button { padding: 16px; font-size: .78rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; }.footer-brand { grid-column: 1 / -1; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

@media (max-width: 419px) {
  .hero-copy h1 { font-size: 2.05rem; }
  .hero-chips li { flex: 1 1 calc(50% - 7px); justify-content: center; text-align: center; }
  .dashboard-window { grid-template-columns: 58px 1fr; height: 365px; }
  .dash-sidebar img { width: 49px; }.dash-search span { font-size: 0; }.dash-search span::after { content: "Buscar..."; font-size: .58rem; }
  .metric-grid { gap: 5px; }.metric-grid article { min-height: 62px; }.dash-panels { margin-top: 6px; }
  .carousel-slide { height: 430px; }
  .testimonial-viewport { width: calc(100% - 52px); }.testimonial-card { padding: 22px; }
  .testimonial-control { width: 34px; height: 34px; }
  .footer-grid { grid-template-columns: 1fr; }.footer-brand { grid-column: auto; }
}
