/**
 * ILERCO Landing — mejoras responsive (PC, tablet, móvil)
 * Carga después de style.css
 */

@media (max-width: 1199px) {
  .catalog-advanced-search__row--secondary,
  .catalog-advanced-search__row--more {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-advanced-search__field--submit {
    grid-column: span 1;
  }
}

@media (max-width: 991px) {
  .container-custom {
    padding: 0 16px;
  }

  .header-inner {
    gap: 10px;
  }

  .header-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
  }

  .header-actions .vs-btn {
    padding: 9px 14px;
    font-size: 12px;
  }

  .hero-content-wrap {
    padding-left: 16px;
    padding-right: 16px;
  }

  .catalog-results-header,
  .catalog-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .catalog-sort-bar {
    width: 100%;
    flex-wrap: wrap;
  }

  .catalog-sort-bar select {
    min-width: 0;
    flex: 1 1 140px;
    max-width: 100%;
  }

  .property-detail-page {
    padding-top: 100px;
  }

  .catalog-hero__content {
    padding: 0 8px;
  }

  .catalog-hero__content h1 {
    font-size: clamp(1.85rem, 5vw, 2.5rem);
  }

  .footer-top-info {
    flex-wrap: wrap;
    gap: 10px;
  }
}

@media (max-width: 767px) {
  .container-custom {
    padding: 0 14px;
  }

  .header-inner {
    padding: 6px 0;
  }

  .header-logo img {
    height: 48px;
    max-width: 72vw;
  }

  .hero-content-wrap {
    padding: 118px 0 72px;
  }

  .hero-title {
    font-size: clamp(1.65rem, 7.5vw, 2.35rem);
    line-height: 1.15;
  }

  .hero-brand-logo {
    height: 100px;
    max-width: 90vw;
  }

  .hero-search-box {
    margin-top: 20px;
  }

  .search-tabs {
    flex-wrap: wrap;
  }

  .sec-title h2 {
    font-size: clamp(1.5rem, 6vw, 2rem);
  }

  .catalog-advanced-search__row--primary,
  .catalog-advanced-search__row--secondary,
  .catalog-advanced-search__row--more {
    grid-template-columns: 1fr;
  }

  .catalog-advanced-search__field--location,
  .catalog-advanced-search__field--submit {
    grid-column: auto;
  }

  .catalog-advanced-search__panel {
    padding: 18px 14px;
  }

  .catalog-advanced-search__submit {
    width: 100%;
  }

  .catalog-hero {
    min-height: auto;
    padding: 120px 0 72px;
  }

  .catalog-hero__content p {
    font-size: 15px;
    line-height: 1.55;
  }

  .property-type-showcase__media,
  .property-type-showcase__media img {
    min-height: 220px;
  }

  .property-type-showcase__caption-inner {
    padding: 20px 16px;
  }

  .property-detail-breadcrumb {
    font-size: 12px;
    line-height: 1.6;
    margin-bottom: 16px;
  }

  .property-detail-page {
    padding: 96px 0 48px;
  }

  .blog-article-page {
    padding: 96px 0 56px;
  }

  .blog-article-detail__hero img {
    max-height: 240px;
    border-radius: 10px;
  }

  .blog-article-detail__content {
    padding: 0 4px;
  }

  .blog-article-detail__content h1 {
    font-size: clamp(1.45rem, 6vw, 1.85rem);
    line-height: 1.25;
  }

  .blog-article-detail__excerpt {
    font-size: 16px;
  }

  .blog-article-detail__body {
    font-size: 15px;
  }

  .footer-top-info {
    flex-direction: column;
    text-align: center;
  }

  .footer-top-info__contact {
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .footer-top-info__divider {
    display: none;
  }

  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }

  .featured-section-footer .vs-btn,
  .blog-section .text-center .vs-btn {
    display: inline-flex;
    justify-content: center;
    width: 100%;
    max-width: 320px;
  }

  .cta-form,
  .contact-form-wrap {
    padding: 24px 16px;
  }

  .mobile-menu {
    width: min(100%, 320px);
  }

  .mobile-menu a {
    font-size: 15px;
    padding: 12px 18px;
  }
}

@media (max-width: 576px) {
  .property-type-tabs__track {
    gap: 14px;
  }

  .property-type-tab {
    flex: 0 1 calc(50% - 7px);
    min-width: 0;
    min-height: 118px;
    padding: 18px 12px;
    font-size: 13px;
    gap: 12px;
  }

  .property-type-tab i {
    width: 46px;
    height: 46px;
    font-size: 19px;
  }

  .property-card-featured__price {
    font-size: 11px;
    padding: 6px 10px;
    max-width: calc(100% - 80px);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .property-card-featured__title {
    font-size: 15px;
  }

  .property-card-featured__body {
    padding: 16px;
  }

  .property-card .content {
    padding: 18px;
  }

  .blog-card .content {
    padding: 18px;
  }

  .blog-card h4 {
    font-size: 16px;
  }

  .whatsapp-float {
    width: 50px;
    height: 50px;
    font-size: 24px;
    bottom: 14px;
    right: 14px;
  }

  .preloader-orbit {
    width: 132px;
    height: 132px;
    margin-bottom: 20px;
  }

  .preloader-logo {
    height: 64px;
  }

  .preloader-glow {
    width: 280px;
    height: 280px;
  }
}

@media (max-width: 380px) {
  .header-actions .vs-btn span,
  .header-actions .vs-btn i + span {
    display: none;
  }

  .header-actions .vs-btn {
    padding: 10px 12px;
  }
}
