@media (max-width: 768px) {
  :root {
    --topbar-height: 0px;
  }

  .topbar {
    display: none;
    font-size: 0.85rem;
  }

  .topbar .container {
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
  }

  .topbar-info,
  .topbar-links {
    gap: 12px;
  }

  .hero {
    padding: calc(140px + var(--topbar-height)) 0 100px;
  }

  .section-space {
    padding: 105px 0;
  }

  .hero-scroll {
    display: none;
  }

  .contact-section {
    padding: 35px 25px;
  }

  .location-modal__frame {
    height: 260px;
  }

  .hero h1 {
    font-size: 2.8rem;
  }

  .carousel-item img {
    height: 420px;
  }

  .equipment-carousel .carousel-item img {
    height: 480px;
  }
  .equipment-carousel-controls {
    gap: 14px;
    margin-top: 16px;
  }

  .equipment-carousel-controls .carousel-control-prev,
  .equipment-carousel-controls .carousel-control-next {
    width: 54px;
    height: 54px;
  }

  .clients-marquee {
    gap: 20px;
  }

  .client-card {
    min-width: 260px;
    padding: 12px 18px;
  }

  .client-card img {
    max-width: 220px;
    max-height: 80px;
  }

  .client-card img.logo-ruta27 {
    max-width: 175px;
    max-height: 64px;
  }

  .gallery-card img {
    height: 270px;
  }


  .about-values-list {
    gap: 12px;
  }

  .about-value-pill {
    min-width: 235px;
    width: calc(50% - 10px);
    padding: 10px 16px;
    font-size: 0.92rem;
  }

  .project-modal .modal-dialog {
    margin: 1rem;
  }

  .project-modal .modal-header,
  .project-modal .modal-body {
    padding-left: 20px;
    padding-right: 20px;
  }

  .project-modal__carousel .carousel-item img {
    height: 350px;
  }

  .before-after__image {
    height: 220px;
  }

  .process-character {
    position: relative;
    right: auto;
    bottom: auto;
    display: block;
    width: min(62vw, 250px);
    margin: 16px auto 0;
    transform: none;
    opacity: 0.95;
  }

  .stats-special::after {
    left: 50%;
    top: 16px;
    width: min(26vw, 120px);
    height: min(26vw, 120px);
    transform: translateX(-50%);
    opacity: 0.16;
  }

  .navbar {
    padding: 12px 0;
  }

  .back-to-top {
    right: 18px;
    bottom: 22px;
    width: 48px;
    height: 48px;
  }

  .whatsapp-float {
    right: 16px;
    bottom: 86px;
    width: 52px;
    height: 52px;
  }

  .whatsapp-float__label {
    display: none;
  }

  .navbar-brand {
    font-size: 1.35rem;
  }

  .navbar-logo {
    height: 64px;
  }

  .navbar .container {
    gap: 8px;
    align-items: center;
  }

  .navbar-nav {
    column-gap: 4px;
    row-gap: 10px;
    width: 100%;
    align-items: stretch;
  }

  .navbar-nav .nav-item {
    width: 100%;
  }

  .navbar .nav-link {
    padding: 12px 18px;
    font-size: 1.05rem;
    width: 100%;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.08), rgba(11, 61, 145, 0.02));
    border: 1px solid rgba(11, 61, 145, 0.1);
    box-shadow: 0 10px 18px rgba(3, 18, 48, 0.06);
    border-radius: 999px;
    display: flex;
    align-items: center;
    gap: 0;
  }

  .navbar .nav-link:hover,
  .navbar .nav-link:focus {
    background: linear-gradient(135deg, rgba(11, 61, 145, 0.14), rgba(244, 124, 32, 0.08));
  }

  .navbar-collapse {
    margin-top: 12px;
    padding: 18px 12px 12px;
    border-radius: 16px;
    background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(235, 242, 255, 0.95));
    box-shadow: 0 18px 38px rgba(3, 18, 48, 0.18);
    border: 1px solid rgba(11, 61, 145, 0.12);
    width: 100%;
    max-height: calc(100vh - 90px);
    overflow-y: auto;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity 0.2s ease, transform 0.2s ease;
  }

  .navbar-collapse::before {
    content: "";
    display: block;
    width: min(52vw, 220px);
    height: 66px;
    margin: 2px auto 18px;
    background: url("../Logo_2000_SIEMPRE_SinFondo.png") center/contain no-repeat;
  }

  .navbar.menu-open .navbar-brand {
    width: 0;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    overflow: hidden;
    pointer-events: none;
  }

  .navbar.menu-open .navbar-toggler {
    margin-left: auto;
  }

  .navbar-collapse.show {
    opacity: 1;
    transform: translateY(0);
  }

  .navbar-collapse.collapsing {
    opacity: 0;
    transform: translateY(-6px);
  }

  .navbar-collapse .d-flex {
    width: 100%;
    margin: 10px 0 0 !important;
  }

  .navbar-collapse #languageToggle {
    width: 100%;
    border-radius: 999px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    justify-content: center;
  }
}

@media (max-width: 576px) {
  .hero {
    padding: calc(130px + var(--topbar-height)) 0 85px;
  }

  .section-space {
    padding: 95px 0;
  }

  .hero h1 {
    font-size: 2.5rem;
  }

  #contactForm .col-12.d-flex {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  #contactForm .btn-contact {
    width: 100%;
  }

  .location-modal__frame {
    height: 220px;
  }

  .gallery-card img {
    height: 250px;
  }

  .equipment-carousel .carousel-item img {
    height: 400px;
  }

  .client-card {
    min-width: 235px;
  }

  .client-card img {
    max-width: 200px;
    max-height: 72px;
  }

  .client-card img.logo-ruta27 {
    max-width: 155px;
    max-height: 56px;
  }

  .equipment-caption h3 {
    font-size: 1.55rem;
  }

  .project-modal__carousel .carousel-item img {
    height: 260px;
  }

  .before-after__image {
    height: 200px;
  }
}

@media (max-width: 991.98px) {
  .siro-modal-story {
    grid-template-columns: 1fr;
  }

  .siro-modal-hero {
    min-height: 560px;
    padding: 16px 18px 228px;
  }

  .siro-modal-character-row {
    left: 14px;
    right: 14px;
    bottom: 44px;
    gap: 10px 12px;
  }

  .siro-modal-character {
    height: 260px;
  }

  .siro-modal-character-row .siro-modal-character:nth-child(3) {
    height: 276px;
  }

  .siro-modal-villain {
    width: min(400px, 108%);
    opacity: 0.52;
    transform: translate(4%, -10%) scale(0.96);
  }

  .siro-modal-info {
    margin-top: 4px;
  }

  .process-character-trigger__hint {
    opacity: 1;
  }
}

@media (max-width: 575.98px) {
  .siro-modal-hero {
    min-height: 500px;
    padding: 14px 12px 212px;
  }

  .siro-modal-character-row {
    left: 8px;
    right: 8px;
    bottom: 36px;
    gap: 6px 8px;
  }

  .siro-modal-character {
    height: 220px;
  }

  .siro-modal-character-row .siro-modal-character:nth-child(3) {
    height: 236px;
  }

  .siro-modal-villain-wrap {
    padding: 8px;
  }

  .siro-modal-villain {
    width: min(260px, 78%);
    max-width: 100%;
    opacity: 0.48;
    transform: translate(0, -14%) scale(0.82);
  }

  .process-character-trigger__hint {
    font-size: 0.7rem;
    padding: 5px 10px;
  }
}
