/* SolvantaTech Catálogo v8.2 — rediseño móvil real.
   Se carga al final de las hojas existentes; aislado a <= 760px.
   Respeta todos los colores, textos, imágenes y enlaces configurados por el propietario.
*/
@media (max-width: 760px) {
  :root { --sv-mob-side: 18px; --sv-mob-radius: 16px; }
  html { scroll-padding-top: 78px; }
  body { overflow-x: clip; }
  .wrap { width: calc(100% - (var(--sv-mob-side) * 2)); max-width: 100%; }
  #coleccion, #nosotros, .sv-promo-block, .sv-custom-section { scroll-margin-top: 78px; }

  /* Cabecera: siempre una sola fila, incluso por debajo de 560px.
     Sobrescribe las antiguas reglas que forzaban flex-wrap y centraban el logotipo. */
  .announcement { font-size: 9px; line-height: 1.35; letter-spacing: .025em; padding: 7px var(--sv-mob-side); }
  .announcement-dot { padding: 0 5px; }
  .site-header { z-index: 90; }
  .site-header .nav { display: flex; flex-flow: row nowrap; align-items: center; justify-content: space-between;
    height: 65px; min-height: 65px; padding: 7px 0; gap: 12px; position: relative; }
  .site-header .sv-header-brand, .site-header .sv-header-brand--logo_completo,
  .site-header .sv-header-brand--solo_texto { flex: 0 1 auto; flex-basis: auto; width: auto;
    min-width: 0; max-width: min(54vw, 192px); margin: 0 auto 0 0; justify-content: flex-start; }
  .site-header .sv-header-full-logo { display: block; max-width: 100%; max-height: 43px; width: auto; height: auto; }
  .site-header .sv-nav-toggle { flex: 0 0 auto; display: inline-flex; align-items: center;
    justify-content: center; min-width: 89px; min-height: 44px; padding: 10px 12px; gap: 8px;
    border-radius: 11px; font-size: 13px; margin: 0; }
  .site-header .sv-menu-catalogo { position: absolute; left: 0; right: 0; top: calc(100% + 1px);
    width: 100%; margin: 0; border: 1px solid #e7e5e1; border-radius: 0 0 16px 16px;
    padding: 8px; box-shadow: 0 16px 25px #00000016; max-height: min(65vh, 420px);
    overflow-y: auto; overscroll-behavior: contain; gap: 0; }
  .site-header .sv-menu-catalogo a { min-height: 46px; padding: 13px 13px; display: flex;
    align-items: center; font-size: 14px; font-weight: 700; border-radius: 9px; }
  .site-header .sv-menu-catalogo a + a { border-top: 1px solid #f2f0eb; }

  /* Portada editorial compacta: texto primero, visual en marco corto, beneficios después. */
  .hero { min-height: 0; overflow: hidden; }
  .hero-content { min-height: 0; display: flex; flex-direction: column; }
  .hero-copy { padding: 29px 0 0; }
  .hero .sv-hero-eyebrow { font-size: 9px; line-height: 1.5; letter-spacing: .16em; gap: 7px; }
  .hero h1 { font-size: clamp(31px, 8.7vw, 40px); line-height: 1.09; margin: 14px 0 11px;
    letter-spacing: -.060em; max-width: 14ch; }
  .hero-copy > p { max-width: 40ch; font-size: 13px; line-height: 1.55; margin: 0; }
  .hero-cta { display: flex; align-items: flex-start; flex-direction: column; gap: 8px; margin-top: 17px; }
  .hero-cta .btn { width: auto; min-width: 190px; max-width: 100%; min-height: 44px;
    padding: 12px 17px; font-size: 12px; border-radius: 9px; gap: 18px; }
  .hero-cta > span { font-size: 10px; line-height: 1.45; }
  .hero-stats { display: flex; flex-flow: row wrap; gap: 6px; margin-top: 15px;
    font-size: 10px; line-height: 1.45; }
  .hero-stats > span { border: 1px solid #ffffff74; background: #ffffff4d; border-radius: 100px;
    padding: 6px 9px; white-space: normal; }
  .hero-art { width: min(100%, 290px); max-width: 290px; height: 205px; min-height: 205px;
    flex: none; transform: none; margin: 14px auto 0; position: relative; }
  .hero-art .halo-one { width: 202px; height: 202px; top: 0; left: 50%; transform: translateX(-50%); }
  .hero-art .halo-two { width: 151px; height: 151px; top: 26px; left: 50%; transform: translateX(-50%); }
  .hero-art .hero-display-card.big { width: 141px; height: 170px; left: 16%; top: 10px; border-width: 5px; }
  .hero-art .hero-display-card.big span { font-size: 7px; bottom: 7px; left: 8px; }
  .hero-art .hero-display-card.small { width: 92px; height: 116px; right: 4%; top: 83px; border-width: 4px; }
  .hero .sv-hero-stamp { width: min(var(--sv-stamp-size, 96px), 58px);
    height: min(var(--sv-stamp-size, 96px), 58px); min-width: 0; font-size: 7px; padding: 5px; }
  .hero .sv-hero-stamp>b { font-size: 12px; margin-top: 2px; }
  .hero .sv-hero-stamp.sv-stamp-pos--arriba_derecha { top: 3px; right: 5px; }
  .hero .sv-hero-stamp.sv-stamp-pos--arriba_izquierda { top: 3px; left: 5px; }
  .hero .sv-hero-stamp.sv-stamp-pos--abajo_derecha { bottom: 6px; right: 5px; }
  .hero .sv-hero-stamp.sv-stamp-pos--abajo_izquierda { bottom: 6px; left: 5px; }
  .hero .art-dot { font-size: 29px; left: 8%; top: 160px; }
  .hero-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 5px;
    font-size: 8px; line-height: 1.4; padding: 6px 0 13px; letter-spacing: .1em; }

  /* Beneficios: filas cortas con divisores, no tres tarjetas de alto exagerado. */
  .sv-benefits-dynamic .benefit-grid { display: grid; grid-template-columns: 1fr !important;
    padding: 7px 0; gap: 0; }
  .sv-benefits-dynamic .benefit-grid > .sv-benefit-card { display: grid !important;
    grid-template-columns: 38px minmax(0,1fr); align-items: center; gap: 10px;
    margin: 0; padding: 9px 0; min-height: 58px; border-right: 0;
    border-bottom: 1px solid #e9e5e0; }
  .sv-benefits-dynamic .benefit-grid > .sv-benefit-card:last-child { border-bottom: 0; }
  .sv-benefit-card .sv-benefit-icon { width: 36px; height: 36px; font-size: 18px; }
  .sv-benefit-card .sv-benefit-copy { gap: 2px; }
  .sv-benefit-card .sv-benefit-copy strong { font-size: 12px; line-height: 1.35; }
  .sv-benefit-card .sv-benefit-copy small { font-size: 11px; line-height: 1.45; }

  /* Navegación de catálogo y tarjetas más cercanas a una vitrina de consulta. */
  .catalog { padding: 38px 0 49px; }
  .section-heading { display: block; margin-bottom: 19px; }
  .section-heading h2 { font-size: clamp(29px, 7.8vw, 37px); line-height: 1.11;
    letter-spacing: -.055em; margin: 9px 0 0; }
  .section-heading > p { margin: 10px 0 0; max-width: 45ch; font-size: 12px; line-height: 1.55; }
  .filter-bar { display: flex; flex-direction: column; align-items: stretch;
    gap: 11px; margin-bottom: 18px; padding-bottom: 13px; }
  .filter-bar .filter-tabs { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 8px; margin: 0;
    padding-bottom: 2px; scroll-snap-type: x proximity; scrollbar-width: thin; }
  .filter-bar .pill { scroll-snap-align: start; flex: 0 0 auto; display: inline-flex;
    align-items: center; justify-content: center; min-height: 38px;
    padding: 9px 15px; font-size: 11px; }
  .search-field { display: flex; width: 100%; min-height: 47px; height: 47px;
    border-radius: 11px; padding-left: 13px; }
  .search-field input { width: 100%; min-width: 0; font-size: 13px; }
  .search-field button { min-width: 44px; padding: 0 11px; }
  .products-grid { display: grid; grid-template-columns: 1fr; gap: 27px; }
  .products-grid .product-card { display: block; min-width: 0; max-width: none; }
  .products-grid .product-card .product-image { aspect-ratio: 1.23 / 1;
    padding: 10px; border-radius: var(--sv-mob-radius); }
  .products-grid .product-card .product-image > img { object-fit: contain; }
  .product-card .product-info { padding: 12px 1px 0; }
  .product-card .product-category { font-size: 9px; line-height: 1.45; }
  .product-card .product-name { font-size: 17px; line-height: 1.3; margin: 5px 0 9px; }
  .product-card .product-bottom { display: flex; flex-flow: row wrap; justify-content: space-between;
    align-items: center; gap: 10px; }
  .product-card .product-bottom strong { font-size: 15px; }
  .product-card .sv-card-more { display: inline-flex; align-items: center; min-height: 42px;
    border: 1px solid #dfdad4; padding: 10px 12px; border-radius: 8px;
    font-weight: 750; font-size: 12px; text-decoration: none; }
  .product-card .view-arrow { width: 38px; height: 38px; right: 13px; bottom: 13px; }

  /* Ficha detalle: fotografía menos alta y botón de consulta muy visible. */
  .inner-page { padding-top: 20px; padding-bottom: 42px; }
  .breadcrumbs { margin-bottom: 16px; font-size: 10px; line-height: 1.5; }
  .detail-grid { display: grid; grid-template-columns: 1fr; gap: 17px; }
  .detail-grid .detail-image { aspect-ratio: 1.14 / 1; padding: 12px; border-radius: 14px; }
  .detail-copy { padding: 0; }
  .detail-copy .eyebrow { font-size: 10px; }
  .detail-copy h1 { font-size: clamp(28px, 7.6vw, 38px); line-height: 1.14; margin: 8px 0 10px; }
  .detail-price { font-size: 24px; }
  .detail-copy > p { margin: 10px 0 0; font-size: 13px; line-height: 1.55; }
  .detail-separator { margin: 18px 0; }
  .detail-copy .sv-consulta-label { font-size: 12px; }
  .detail-copy .sv-wa-detail-link { width: 100%; margin-top: 12px;
    min-height: 50px; padding: 12px 16px; border-radius: 12px; font-size: 13px; }
  .detail-copy .sv-wa-notice { max-width: none; font-size: 11px; line-height: 1.5; }
  .detail-copy .text-link { display: inline-flex; align-items: center; min-height: 38px; margin-top: 7px; }
  .gallery-thumbs { margin-top: 8px; gap: 8px; }
  .gallery-thumb { flex: 0 0 60px; width: 60px; height: 60px; }

  /* Promociones y secciones configurables. */
  .about-banner.sv-promo-block { padding: 38px 0; }
  .sv-promo-block .sv-promo-content { display: flex; flex-direction: column; align-items: stretch;
    gap: 12px; }
  .sv-promo-block .sv-promo-copy { max-width: 100%; }
  .sv-promo-block .sv-promo-copy h2 { font-size: clamp(29px, 7.6vw, 39px);
    line-height: 1.15; margin: 10px 0 11px; }
  .sv-promo-block .sv-promo-copy p { font-size: 13px; line-height: 1.6; margin: 10px 0; }
  .sv-promo-block .sv-promo-action { display: inline-flex; width: auto; min-height: 44px;
    padding: 11px 16px; margin-top: 11px; font-size: 12px; border-radius: 9px; }
  .sv-promo-block .sv-promo-media { width: 100%; }
  .sv-promo-block .sv-promo-media img { max-height: 220px; object-fit: cover; }
  .sv-custom-section { padding: 36px 0; }
  .sv-custom-section-heading { margin: 0 0 18px; text-align: left; }
  .sv-custom-section-heading h2 { font-size: clamp(27px, 7.5vw, 36px); line-height: 1.15; }
  .sv-custom-section-heading p { font-size: 13px; line-height: 1.6; }
  .sv-custom-main-image { margin: 12px auto 18px; }
  .sv-custom-main-image img { max-height: 260px; border-radius: 12px; }
  .sv-custom-items { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 15px; }
  .sv-custom-card { min-width: 0; padding: 14px; border-radius: 14px; box-shadow: 0 6px 18px #0000000a; }
  .sv-custom-card h3 { font-size: 16px; margin: 0 0 5px; }
  .sv-custom-card p { margin: 0; font-size: 12px; line-height: 1.55; }
  .sv-custom-equipo .sv-custom-card--con-imagen { display: grid;
    grid-template-columns: 104px minmax(0, 1fr); grid-template-rows: auto 1fr;
    column-gap: 13px; row-gap: 4px; align-items: start; padding: 10px; }
  .sv-custom-equipo .sv-custom-card--con-imagen > img { grid-column: 1; grid-row: 1 / span 2;
    display: block; width: 104px; max-width: 100%; height: 114px; object-fit: cover;
    object-position: center top; aspect-ratio: auto; margin: 0; border-radius: 9px; }
  .sv-custom-equipo .sv-custom-card--con-imagen > h3 { grid-column: 2; grid-row: 1; margin-top: 5px; }
  .sv-custom-equipo .sv-custom-card--con-imagen > p { grid-column: 2; grid-row: 2; }
  .sv-custom-items-faq { gap: 8px; }
  .sv-custom-faq-entry { padding: 14px; }
  .sv-custom-faq-entry summary { font-size: 13px; }

  /* Pie de página: marca arriba y enlaces en columnas reales, sin grandes huecos. */
  .footer { padding: 27px 0 14px; }
  .footer .footer-grid.sv-footer-grid-dynamic { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)) !important;
    grid-auto-flow: row; align-items: start; column-gap: 17px !important; row-gap: 20px !important; }
  .footer .footer-grid > .sv-footer-brand-block { grid-column: 1 / -1 !important; display: flex;
    flex-direction: column; align-items: flex-start; gap: 7px; margin: 0; padding-bottom: 13px;
    border-bottom: 1px solid #e6e1dc; }
  .footer .sv-footer-brand-block .sv-footer-brand { width: auto; max-width: min(190px, 65vw);
    flex: none; min-height: 0; justify-content: flex-start; }
  .footer .sv-footer-brand-block .sv-footer-full-logo { display: block; max-height: 48px; width: auto; }
  .footer .sv-footer-brand-block .sv-redes { display: flex; flex-wrap: wrap; gap: 9px; }
  .footer .sv-footer-brand-block p { margin: 0; font-size: 12px; line-height: 1.5; }
  .footer .footer-grid > .sv-footer-col { display: flex; flex-direction: column;
    gap: 9px; align-items: flex-start; margin: 0; min-width: 0; }
  .footer .sv-footer-col strong { font-size: 12px; line-height: 1.4; margin: 0 0 2px; }
  .footer .sv-footer-col a, .footer .sv-footer-col span { font-size: 12px; line-height: 1.5; }
  .footer .copyright { font-size: 10px; margin-top: 22px; padding-top: 15px; line-height: 1.55; }
}
@media (max-width: 390px) {
  :root { --sv-mob-side: 14px; }
  .site-header .sv-header-brand, .site-header .sv-header-brand--logo_completo,
  .site-header .sv-header-brand--solo_texto { max-width: 52vw; }
  .hero h1 { font-size: 30px; }
  .hero-art { max-width: 270px; height: 192px; min-height: 192px; }
  .hero-art .hero-display-card.big { width: 132px; height: 159px; }
  .hero-art .hero-display-card.small { width: 84px; height: 106px; top: 82px; }
  .hero-art .halo-one { width: 190px; height: 190px; }
  .hero-art .halo-two { width: 142px; height: 142px; }
  .product-card .product-bottom { flex-direction: row; }
  .sv-custom-equipo .sv-custom-card--con-imagen { grid-template-columns: 88px minmax(0, 1fr); }
  .sv-custom-equipo .sv-custom-card--con-imagen > img { width: 88px; height: 106px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero *, .product-card *, .site-header * { scroll-behavior: auto; }
}
