/* =========================================================
   HISPASEEDS · HOME-RESPONSIVE.CSS
   =========================================================
   Responsive exclusivo de la home
   Enfoque:
   - tablet ordenado
   - móvil premium
   - hero más corto
   - bloques más compactos
   - cards más pro
   ========================================================= */


/* =========================================================
   01. HEADER / MENÚ MÓVIL GLOBAL
   ---------------------------------------------------------
   Mejora visual del header Astra en móvil para que el logo
   quede más limpio y la cabecera tenga más aspecto premium.
   ========================================================= */
@media (max-width: 921px) {
  .ast-header-break-point .main-header-bar {
    min-height: 72px;
    padding-top: 10px;
    padding-bottom: 10px;
    background: rgba(8, 8, 8, 0.96) !important;
    border-bottom: 1px solid rgba(230, 184, 92, 0.12);
    backdrop-filter: blur(8px);
  }

  .ast-header-break-point .site-branding,
  .ast-header-break-point .ast-site-identity {
    display: flex;
    align-items: center;
    min-height: 52px;
  }

  .ast-header-break-point .custom-logo-link img,
  .ast-header-break-point .site-logo-img img {
    max-height: 42px !important;
    width: auto;
  }

  .ast-mobile-menu-buttons-minimal.menu-toggle,
  .ast-mobile-popup-trigger-minimal,
  .ast-menu-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: rgba(230, 184, 92, 0.06);
  }

  .ast-header-break-point .main-header-menu .menu-link,
  .ast-header-break-point .main-header-menu > .menu-item > .menu-link,
  .ast-header-break-point .main-header-menu .sub-menu .menu-link {
    font-size: 18px;
    padding: 15px 20px !important;
  }
}


/* =========================================================
   02. FOOTER HOME · RESPONSIVE
   ========================================================= */

/* Tablet grande */
@media (max-width: 1100px) {
  .hs-footer__top {
    grid-template-columns: 1.2fr 1fr 1fr;
    gap: 30px;
  }

  .hs-footer__brand {
    grid-column: 1 / -1;
    max-width: 760px;
  }

  .hs-footer__disclaimers {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .hs-footer__disclaimer {
    padding-right: 0;
  }
}

/* Tablet */
@media (max-width: 921px) {
  .hs-footer {
    padding-bottom: 40px;
  }

  .hs-footer__panel {
    padding: 30px 26px 20px;
  }

  .hs-footer__top {
    grid-template-columns: 1fr 1fr;
    gap: 26px;
    padding-bottom: 24px;
  }

  .hs-footer__brand {
    grid-column: 1 / -1;
    max-width: 100%;
  }

  .hs-footer__brand h3 {
    font-size: 25px;
  }

  .hs-footer__brand p {
    max-width: 100%;
  }

  .hs-footer__disclaimers {
    padding: 20px 0 18px;
  }
}

/* Móvil */
@media (max-width: 767px) {
  .hs-footer {
    padding: 0 0 24px;
  }

  .hs-footer__panel {
    padding: 22px 18px 14px;
    border-radius: 18px;
  }

  .hs-footer__top {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-bottom: 20px;
  }

  .hs-footer__brand {
    max-width: 100%;
  }

  .hs-footer__brand h3 {
    font-size: 21px;
    line-height: 1.14;
  }

  .hs-footer__brand p {
    font-size: 13.5px;
    line-height: 1.68;
  }

  .hs-footer__col h4 {
    margin-bottom: 10px;
    font-size: 12px;
  }

  .hs-footer__nav,
  .hs-footer__legal {
    gap: 9px;
  }

  .hs-footer__nav a,
  .hs-footer__legal a {
    font-size: 14.5px;
  }

  .hs-footer__disclaimers {
    gap: 12px;
    padding: 16px 0 14px;
  }

  .hs-footer__disclaimer h5 {
    margin-bottom: 6px;
    font-size: 11.5px;
  }

  .hs-footer__disclaimer p {
    font-size: 12.25px;
    line-height: 1.6;
  }

  .hs-footer__copy {
    font-size: 11.8px;
  }
}

/* Móvil pequeño */
@media (max-width: 480px) {
  .hs-footer__panel {
    padding: 20px 15px 14px;
  }

  .hs-footer__brand h3 {
    font-size: 19px;
  }

  .hs-footer__brand p {
    font-size: 13px;
  }

  .hs-footer__nav a,
  .hs-footer__legal a {
    font-size: 14px;
  }

  .hs-footer__disclaimer p,
  .hs-footer__copy {
    font-size: 12px;
  }
}


/* =========================================================
   03. HOME · RESPONSIVE TABLET
   ========================================================= */
@media (max-width: 1100px) {
  .hs-filter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .hs-featured__grid,
  .hs-blog__grid,
  .hs-benefits__grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }

  .hs-section-title,
  .hs-cta h2 {
    font-size: clamp(28px, 4vw, 40px);
  }

  .hs-section-title::before,
  .hs-section-title::after,
  .hs-cta h2::before,
  .hs-cta h2::after {
    flex-basis: 90px;
  }
}

@media (max-width: 1024px) {
  .hs-wrap,
  .hs-hero__inner {
    width: min(var(--hs-container), calc(100% - 40px));
  }

  .hs-hero {
    min-height: 520px;
  }

  .hs-hero__image {
    object-position: 82% center;
  }

  .hs-title {
    max-width: 560px;
    font-size: clamp(32px, 5.2vw, 46px);
  }

  .hs-hero__button-wrap {
    padding-left: 72px;
  }

  .hs-search__box {
    padding: 30px;
  }

  .hs-product-card,
  .hs-post-card,
  .hs-card {
    padding: 24px;
  }
}


/* =========================================================
   04. HOME · MÓVIL PRO
   ---------------------------------------------------------
   Aquí está el rediseño real:
   - hero más corto
   - ritmo vertical más compacto
   - mejor jerarquía
   - cards más premium
   ========================================================= */
@media (max-width: 767px) {
  .hs-wrap,
  .hs-hero__inner {
    width: min(var(--hs-container), calc(100% - 24px));
  }

  .hs-home {
    overflow-x: hidden;
  }

  .hs-hero {
    min-height: 430px;
    align-items: flex-end;
  }

  .hs-hero__image {
    object-position: 76% center;
    transform: scale(1.02);
  }

  .hs-hero__overlay {
    background:
      linear-gradient(
        180deg,
        rgba(0, 0, 0, 0.78) 0%,
        rgba(0, 0, 0, 0.58) 34%,
        rgba(0, 0, 0, 0.26) 100%
      );
  }

  .hs-hero::after {
    height: 88px;
  }

  .hs-hero__inner {
    padding: 36px 0 42px;
  }

  .hs-title {
    max-width: 100%;
    margin: 0 0 14px;
    font-size: clamp(26px, 8vw, 36px);
    line-height: 1.08;
    letter-spacing: 0.01em;
  }

  .hs-subtitle {
    display: block;
    max-width: 92%;
    margin: 0;
    color: rgba(242, 237, 229, 0.88);
    font-size: 14px;
    line-height: 1.55;
  }

  .hs-hero__button-wrap {
    margin-top: 20px;
    padding-left: 0;
  }

  .hs-hero__button-wrap .hs-button {
    width: 100%;
    min-width: 0;
    min-height: 50px;
    font-size: 14px;
    border-radius: 10px;
  }

  .hs-section,
  .hs-search,
  .hs-featured,
  .hs-benefits,
  .hs-blog,
  .hs-cta {
    padding: 42px 0;
    margin-top: 0;
  }

  .hs-search {
    padding-top: 26px;
  }

  .hs-section-title,
  .hs-cta h2 {
    gap: 10px;
    margin-bottom: 22px;
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.14;
  }

  .hs-section-title::before,
  .hs-section-title::after,
  .hs-cta h2::before,
  .hs-cta h2::after {
    flex-basis: 28px;
  }

  .hs-search__box {
    padding: 18px 16px;
    border-radius: 18px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  }

  .hs-filter-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    margin-bottom: 18px;
  }

  .hs-field {
    gap: 6px;
  }

  .hs-field label {
    font-size: 12px;
    letter-spacing: 0.03em;
  }

  .hs-field select,
  .hs-search-direct input {
    min-height: 48px;
    font-size: 14px;
    border-radius: 10px;
  }

  .hs-filter-actions {
    margin-bottom: 14px;
  }

  .hs-filter-actions .hs-button,
  .hs-button--solid {
    width: 100%;
    min-height: 48px;
    border-radius: 10px;
  }

  .hs-search-direct {
    padding-top: 14px;
  }

  .hs-search-direct__row {
    grid-template-columns: 1fr 48px;
    gap: 10px;
  }

  .hs-search-icon-button {
    min-height: 48px;
    border-radius: 10px;
  }

  .hs-featured__grid,
  .hs-blog__grid,
  .hs-benefits__grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .hs-product-card,
  .hs-post-card,
  .hs-card {
    padding: 18px;
    border-radius: 18px;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
  }

  .hs-product-card:hover,
  .hs-post-card:hover,
  .hs-card:hover {
    transform: none;
  }

  .hs-product-card__media {
    height: 170px;
    margin-bottom: 14px;
    border-radius: 12px;
  }

  .hs-product-card h3,
  .hs-post-card h3,
  .hs-card h3 {
    margin: 0 0 8px;
    font-size: 19px;
    line-height: 1.2;
  }

  .hs-product-card p,
  .hs-post-card p,
  .hs-card p {
    margin: 0 0 12px;
    font-size: 14px;
    line-height: 1.58;
  }

  .hs-product-card a,
  .hs-post-card a {
    font-size: 14px;
  }

  .hs-benefits .hs-card {
    position: relative;
    overflow: hidden;
  }

  .hs-benefits .hs-card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 1px;
    background: linear-gradient(
      90deg,
      rgba(230, 184, 92, 0),
      rgba(230, 184, 92, 0.34),
      rgba(230, 184, 92, 0)
    );
    pointer-events: none;
  }

  .hs-blog .hs-post-card,
  .hs-post-card article,
  .hs-post-card .post,
  .hs-post-card .entry,
  .hs-post-card .entry-content,
  .hs-post-card .wp-block-group,
  .hs-post-card .wp-block-cover,
  .hs-post-card .wp-block-latest-posts__post-excerpt,
  .hs-post-card .wp-block-post-excerpt,
  .hs-post-card .wp-block-post-title {
    background: transparent !important;
    box-shadow: none !important;
    border: 0 !important;
  }

  .hs-blog .hs-post-card {
    background:
      linear-gradient(
        180deg,
        rgba(255, 255, 255, 0.04) 0%,
        rgba(255, 255, 255, 0.015) 100%
      ),
      rgba(12, 12, 12, 0.78) !important;
  }

  .hs-cta {
    padding: 46px 0 50px;
  }

  .hs-cta p {
    max-width: 100%;
    margin: 0 auto 20px;
    font-size: 14px;
    line-height: 1.58;
  }

  .hs-cta .hs-button {
    width: 100%;
    min-height: 50px;
    border-radius: 10px;
  }

  .hs-pagination {
    margin-top: 28px;
  }

  .hs-pagination .page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    margin: 0 3px;
    font-size: 13px;
  }

  .hs-benefits::before,
  .hs-blog::before,
  .hs-cta::before {
    background-attachment: scroll;
    background-position: center center;
  }
}


/* =========================================================
   05. MÓVIL PEQUEÑO
   ---------------------------------------------------------
   Ajustes finos para iPhone pequeño y similares
   ========================================================= */
@media (max-width: 480px) {
  .hs-wrap,
  .hs-hero__inner {
    width: calc(100% - 20px);
  }

  .hs-hero {
    min-height: 390px;
  }

  .hs-hero__inner {
    padding: 30px 0 36px;
  }

  .hs-title {
    font-size: clamp(24px, 8.5vw, 32px);
    margin-bottom: 12px;
  }

  .hs-subtitle {
    max-width: 100%;
    font-size: 13.5px;
    line-height: 1.5;
  }

  .hs-section,
  .hs-search,
  .hs-featured,
  .hs-benefits,
  .hs-blog,
  .hs-cta {
    padding: 36px 0;
  }

  .hs-search__box,
  .hs-product-card,
  .hs-post-card,
  .hs-card {
    padding: 16px;
    border-radius: 16px;
  }

  .hs-product-card__media {
    height: 156px;
  }

  .hs-product-card h3,
  .hs-post-card h3,
  .hs-card h3 {
    font-size: 18px;
  }

  .hs-product-card p,
  .hs-post-card p,
  .hs-card p {
    font-size: 13.5px;
  }

  .hs-section-title,
  .hs-cta h2 {
    margin-bottom: 18px;
    font-size: clamp(21px, 7vw, 28px);
  }

  .hs-section-title::before,
  .hs-section-title::after,
  .hs-cta h2::before,
  .hs-cta h2::after {
    flex-basis: 22px;
  }

  .hs-field select,
  .hs-search-direct input,
  .hs-search-icon-button,
  .hs-button,
  .hs-button--solid {
    min-height: 46px;
  }
}
