/* Ajustes finales para tablet y celular. Se carga después de los estilos de cada página. */
.seo-product-card img {
  display: block;
  width: 100%;
  height: 250px;
  padding: 0;
  border: 0;
  background: #fff;
  object-fit: contain;
  object-position: center;
}
.product-detail-section.seo-features {
  padding: 28px 24px;
  border: 0;
  border-radius: 0;
  background: #fff;
}
.seo-features h2 { margin: 0 0 15px; font-size: 32px; }
.seo-features .seo-feature-list { display: grid; grid-template-columns: 1fr; gap: 2px; }
.seo-features .seo-feature-list li {
  min-height: 0;
  padding: 5px 0 5px 23px;
  border-radius: 0;
  background: transparent;
  color: #30343b;
  line-height: 1.5;
}
.seo-features .seo-feature-list li::before {
  content: "●";
  left: 0;
  top: 5px;
  color: #30343b;
  font-size: 12px;
}
.seo-features .seo-feature-list strong { color: #172e62; }
.catalog-hero { min-height: 420px; padding-top: 64px; padding-bottom: 64px; }
.catalog-controls-hero { margin: 26px 0 0; grid-template-columns: minmax(260px,1fr) 210px; gap: 9px; }
.catalog-controls-hero input, .catalog-controls-hero select { border-color: transparent; box-shadow: 0 10px 30px rgba(4,17,49,.18); }
.catalog-controls-hero input:focus { outline: 3px solid rgba(255,255,255,.3); border-color: var(--red); }
.family-catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 18px;
  align-items: center;
  margin: -10px 0 34px;
}
.family-search-box { position: relative; display: flex; align-items: center; }
.family-search-box input {
  width: 100%;
  height: 58px;
  padding: 0 62px 0 20px;
  border: 1px solid #d9dde4;
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--ink);
  font: inherit;
  box-shadow: 0 8px 25px rgba(18,35,75,.06);
}
.family-search-box input:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(212,49,59,.12); }
.family-search-icon {
  position: absolute;
  right: 8px;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-size: 20px;
  pointer-events: none;
}
.family-result-count { margin: 0; color: var(--navy); font-size: 13px; font-weight: 800; white-space: nowrap; }
.family-no-results { grid-column: 1/-1; padding: 52px 20px; border-radius: 18px; background: #f4f5f7; color: var(--muted); text-align: center; }
.related-carousel { position: relative; }
.related-slider-controls {
  position: absolute;
  top: 106px;
  left: 12px;
  right: 12px;
  z-index: 4;
  justify-content: space-between;
  pointer-events: none;
}
.related-slider-controls button {
  pointer-events: auto;
  box-shadow: 0 8px 24px rgba(18,35,75,.16);
}
@media (max-width: 1280px) {
  .site-header { gap: 12px; }
  .site-header .desktop-nav { display: none; }
  .site-header .header-search { margin-left: auto; }
  .site-header .menu-button { margin-left: 0; flex: 0 0 auto; }
}

@media (max-width: 820px) {
  .site-header { padding-inline: 16px; }
  .site-header .header-search { width: min(220px,42vw); height: 42px; }
  .site-header .header-search button { flex-basis: 42px; }
  .mobile-menu { z-index: 100; border-top: 1px solid rgba(23,46,98,.08); }
  .mobile-menu.open { gap: 0; }
  .family-carousel-button { display: none; }

  .hero-copy { padding: 52px 20px 38px; }
  .hero h1 { font-size: clamp(46px, 14vw, 68px); }
  .hero-copy > p:not(.eyebrow) { max-width: 34rem; font-size: 15px; line-height: 1.65; }
  .hero-visual { min-height: 440px; }

  .section, .catalog-section { padding-inline: 20px; }
  .section-heading h2, .catalog-intro h2, .support-copy h2, .about-section h2,
  .page-heading h2 { font-size: clamp(34px, 10vw, 46px); }
  .section-heading { margin-bottom: 34px; }
  .family-card { padding: 22px; }
  .family-name { font-size: clamp(27px, 8vw, 36px); }
  .family-description { left: 22px; right: 60px; bottom: 20px; }

  .page-hero { min-height: auto; padding: 55px 20px; gap: 34px; }
  .page-hero h1 { font-size: clamp(38px, 11vw, 56px); }
  .page-hero-copy > p:last-of-type { font-size: 15px; }
  .page-hero-visual { min-height: 280px; }
  .page-hero-visual img { height: 260px; }
  .catalog-hero { padding-top: 34px; padding-bottom: 34px; }
  .catalog-hero .page-hero-copy > p:last-of-type { margin-bottom: 0; }
  .catalog-hero .catalog-controls-hero { grid-template-columns: 1fr; margin-top: 20px; }
  .catalog-hero #catalog-search { scroll-margin-top: 82px; }
  .catalog-hero .page-hero-visual { display: none; }
  .page-section { padding: 65px 20px; }
  .page-section > .page-heading { gap: 14px; margin-bottom: 24px; }
  .page-section > .page-heading > p { margin: 0; }
  .family-catalog-toolbar { grid-template-columns: 1fr; gap: 12px; margin-bottom: 25px; }
  .family-result-count { padding-left: 5px; }

  .seo-product-grid { grid-template-columns: minmax(0,1fr) !important; padding: 22px 18px 38px !important; gap: 24px !important; }
  .seo-gallery-wrap { max-width: 560px !important; margin-inline: auto; }
  .seo-gallery { border-radius: 18px !important; }
  .seo-context { row-gap: 3px; }
  .seo-description { font-size: 15px; line-height: 1.65; }
  .seo-data { margin-top: 24px; }
  .product-section-nav { padding-inline: 18px; scroll-padding-left: 18px; }
  .product-detail-section { margin-inline: 18px !important; }
  .related-products { padding-inline: 18px; }

  input, select, textarea, button { font-size: max(16px, 1em); }
}

@media (max-width: 540px) {
  .site-header { height: 68px; padding-inline: 12px; gap: 8px; }
  .site-header .brand, .site-header .brand img { width: 74px; height: 45px; }
  .site-header .header-search { flex: 1 1 auto; width: auto; height: 40px; margin-left: 0; border-radius: 8px; }
  .site-header .header-search input { padding-inline: 10px; font-size: 16px; }
  .site-header .header-search button { flex-basis: 40px; font-size: 19px; }
  .site-header .menu-button { width: 38px; height: 38px; }
  .mobile-menu { top: 68px; padding: 10px 12px 18px; }

  .hero-copy { display: none; }
  .hero h1 { font-size: clamp(43px, 15vw, 59px); }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .primary-button { width: 100%; justify-content: space-between; }
  .hero-visual { min-height: calc(100svh - 68px); }
  .hero .hero-image-link { inset: 0; border-radius: 0; box-shadow: none; transform: none; }
  .hero .hero-image-link::after { z-index: 2; background: linear-gradient(180deg,transparent 50%,rgba(4,17,45,.12) 64%,rgba(4,17,45,.88) 100%); }
  .hero .hero-image-link img,
  .hero .hero-image-link img.hero-image-square,
  .hero .hero-image-link img.hero-image-wide {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    object-fit: contain;
    object-position: center;
    transform: scale(1.1);
    transform-origin: center;
  }
  .hero .hero-image-link img.is-entering { animation: heroProductInMobile .55s ease-out; }
  .hero .hero-image-link img.hero-image-wide {
    object-position: center;
    transform: scale(1.55);
  }
  .hero .hero-image-link img.hero-image-wide.is-entering { animation: heroWideProductInMobile .55s ease-out; }
  .hero-showcase-nav {
    left: 0;
    right: 0;
    bottom: 0;
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
  }
  .hero-showcase-nav button { display: none; }
  .hero-showcase-nav button.active {
    display: block;
    width: 100%;
    min-height: 0;
    padding: 21px 22px 23px;
    border: 0;
    border-radius: 0;
    background: rgba(4,17,45,.72);
    box-shadow: none;
    transform: none;
  }
  .hero-showcase-nav button.active::before {
    margin-bottom: 5px;
    content: "Producto destacado";
  }
  .hero-showcase-nav button.active strong { font-size: 14px; }
  .hero-showcase-nav button.active small {
    display: block;
    margin-top: 5px;
    overflow: visible;
    color: #fff;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.25;
    white-space: normal;
  }
  .hero-showcase-nav button.active span {
    display: block;
    margin-top: 6px;
    color: rgba(255,255,255,.7);
    font-size: 9px;
    font-weight: 700;
  }
  .hero-slide-arrow {
    position: absolute;
    top: 48%;
    z-index: 12;
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0 0 3px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 4px;
    background: rgba(10,32,74,.72);
    color: #fff;
    box-shadow: 0 8px 22px rgba(4,17,45,.2);
    font-size: 28px;
    line-height: 1;
    transform: translateY(-50%);
  }
  .hero-slide-prev { left: 16px; }
  .hero-slide-next { right: 16px; }
  .hero-slide-position {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 12;
    display: block;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(10,32,74,.72);
    color: #fff;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .08em;
  }
  @keyframes heroProductInMobile {
    from { opacity: .3; transform: scale(1.04); }
    to { opacity: 1; transform: scale(1.1); }
  }
  @keyframes heroWideProductInMobile {
    from { opacity: .3; transform: scale(1.42); }
    to { opacity: 1; transform: scale(1.55); }
  }

  .section, .catalog-section { padding: 65px 16px; }
  .families { padding-bottom: 24px; }
  .families + .use-cases { padding-top: 46px; }
  .section-heading h2, .catalog-intro h2, .support-copy h2, .about-section h2,
  .page-heading h2 { font-size: 34px; }
  .family-grid { display: flex; gap: 12px; grid-template: none; overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; scroll-padding-left: 0; scrollbar-width: none; overscroll-behavior-inline: contain; }
  .family-grid::-webkit-scrollbar { display: none; }
  .family-grid .family-card,
  .family-grid .family-gaming { flex: 0 0 100%; min-width: 100%; min-height: 420px; height: 420px; grid-column: auto; scroll-snap-align: start; border-radius: 18px; padding: 18px; }
  .family-carousel-button {
    top: 50%;
    display: grid;
    width: 42px;
    height: 42px;
    margin-top: -21px;
    border-color: rgba(255,255,255,.65);
    background: rgba(255,255,255,.94);
    box-shadow: 0 8px 24px rgba(7,24,58,.24);
    font-size: 30px;
  }
  .family-carousel-prev { left: 8px; }
  .family-carousel-next { right: 8px; }
  .family-grid .family-index,
  .family-grid .family-description,
  .family-grid .family-arrow { display: none; }
  .family-grid .family-name {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 25px;
    margin: 0;
    color: #fff;
    font-size: clamp(28px,9vw,36px);
    line-height: 1.02;
    text-align: center;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(0,0,0,.5);
  }
  .family-card::after { background: linear-gradient(0deg,rgba(5,16,43,.82) 0%,rgba(5,16,43,.1) 58%,transparent 76%); }

  .search-box { min-width: 0; width: 100%; }
  .search-box input { height: 58px; padding-left: 50px; }
  .search-icon { left: 18px; }
  .catalog-meta select { width: 100%; }
  .product-card { border-radius: 15px; }
  .product-image { height: 265px; }

  .page-hero { padding: 42px 16px; gap: 26px; }
  .page-hero h1 { margin-top: 10px; font-size: 38px; }
  .page-hero-visual { min-height: 235px; border-radius: 20px; }
  .page-hero-visual img { width: 92%; height: 220px; }
  .page-section { padding: 52px 16px; }
  .catalog-hero + .page-section { padding-top: 34px; }
  .catalog-hero + .page-section > .page-heading { gap: 10px; margin-bottom: 20px; }
  .catalog-hero + .page-section > .page-heading h2 { font-size: 32px; line-height: 1.08; }
  .catalog-hero + .page-section > .page-heading p { font-size: 14px; line-height: 1.55; }
  .catalog-hero + .page-section .seo-product-card { border-color: #e5e7eb; }
  .catalog-hero + .page-section .seo-product-card img { height: 240px; }
  .family-search-box input { height: 54px; padding-left: 17px; font-size: 16px; }
  .family-search-icon { width: 40px; height: 40px; }
  .family-tile { min-height: 320px; }
  .content-card, .location-card { padding: 24px 20px; }
  .article { padding: 52px 16px; }
  .article h1 { font-size: 40px; }

  .seo-product-grid { padding: 16px 14px 32px !important; }
  .seo-gallery { padding: 14px !important; border-radius: 16px !important; }
  .seo-gallery-nav { width: 38px !important; height: 38px !important; margin-top: -19px !important; }
  .seo-thumb { flex-basis: 62px !important; width: 62px; height: 62px; }
  .seo-info { padding-top: 4px !important; }
  .seo-info h1 { margin: 13px 0; font-size: 24px !important; }
  .seo-description { font-size: 14px; }
  .seo-data { grid-template-columns: 1fr 1fr; }
  .seo-data div { padding: 14px 8px 14px 0; }
  .product-section-nav { gap: 20px; padding: 0 14px 14px; }
  .product-section-nav a { font-size: 13px; }
  .product-detail-section { margin: 0 12px 22px !important; padding: 24px 16px !important; border-radius: 15px !important; }
  .product-detail-section h2 { font-size: 27px; }
  .seo-features .seo-feature-list { gap: 2px !important; }
  .seo-features .seo-feature-list li { padding: 6px 0 6px 21px; font-size: 13px; line-height: 1.45; }
  .seo-features .seo-feature-list li::before { left: 0; top: 6px; }
  .seo-spec-row { grid-template-columns: minmax(105px,.75fr) 1.25fr !important; }
  .seo-spec-row span, .seo-spec-row strong { padding: 12px 10px; font-size: 12px; }
  .related-products { padding: 42px 14px 65px; }
  .related-card { flex-basis: 86vw; }
  .related-card img { height: 220px; }
  .related-head { margin-bottom: 22px; }
  .related-slider-controls { top: 91px; left: 7px; right: 7px; }
  .related-slider-controls button { width: 42px; height: 42px; }

  .site-footer { padding-inline: 16px; }
  .site-footer.compact-footer .footer-grid { grid-template-columns: 1fr; }
  .footer-brand, .footer-contact, .footer-social-column { grid-column: 1; }
}

@media (max-width: 360px) {
  .site-header .brand, .site-header .brand img { width: 74px; }
  .site-header .header-cta { padding-inline: 10px; }
  .site-header .menu-button { width: 36px; height: 36px; }
  .hero h1 { font-size: 42px; }
  .seo-data { grid-template-columns: 1fr; }
}
.page-hero.compact-blue-hero {
  min-height: 0;
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 46px;
  padding-bottom: 46px;
}
.page-hero.compact-blue-hero .page-hero-copy {
  width: min(960px, 100%);
}
.page-hero.compact-blue-hero h1 {
  margin: 8px 0 14px;
  font-size: clamp(38px, 4vw, 58px);
}
.page-hero.compact-blue-hero .catalog-controls-hero {
  width: min(900px, 100%);
  margin-top: 20px;
}
@media (max-width: 800px) {
  .page-hero.compact-blue-hero {
    padding: 34px 20px;
  }
  .page-hero.compact-blue-hero h1 {
    font-size: clamp(36px, 10vw, 46px);
  }
}
.family-products-section {
  padding-top: 58px;
}
.page-hero.category-hero {
  min-height: 0;
  padding-top: 36px;
  padding-bottom: 36px;
}
.page-hero.category-hero h1 {
  margin: 7px 0 12px;
  font-size: clamp(36px, 3.8vw, 54px);
  line-height: 1.02;
}
.page-hero.category-hero .page-hero-copy > p:last-of-type {
  margin: 0;
  line-height: 1.55;
}
.page-hero.category-hero .action-row {
  margin-top: 16px;
}
@media (max-width: 800px) {
  .family-products-section {
    padding-top: 40px;
  }
  .page-hero.category-hero {
    padding: 30px 20px;
  }
  .page-hero.category-hero h1 {
    font-size: clamp(34px, 9vw, 42px);
  }
}
