/* ------------------------------------------------------------------
   Static migration overrides.
   The original Magento theme CSS is still loaded; these rules remove
   runtime-only behaviour and make the static markup usable.
   ------------------------------------------------------------------ */

:root {
  --brand-yellow: #fab63b;
  --brand-dark: #21293c;
  --brand-muted: #7b858a;
}

html { scroll-behavior: smooth; }
body.static-site { overflow-x: hidden; }
img { max-width: 100%; }

/* Match the original fixed header. The theme already reserves space for it
   with the page-main top offset, so the header wrapper stays out of flow. */
.header-container.header-style-23.static,
.header-container.header-style-23 {
  position: fixed !important;
  top: 0 !important;
  z-index: 500;
}

/* Search box */
.site-search-form {
  display: flex;
  align-items: stretch;
  width: 292px;
  max-width: 292px;
  height: 40px;
  margin: 0;
  background: #fff;
  border-radius: 4px;
  overflow: hidden;
}
.site-search-form input[type="search"] {
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  padding: 8px 14px;
  font-size: 15px;
  color: var(--brand-dark);
  background: #fff;
  outline: none;
}
.site-search-form button {
  display: flex;
  flex: 0 0 60px;
  align-items: center;
  justify-content: center;
  width: 60px;
  border: 0;
  padding: 0;
  background: #fff;
  color: #9a9a9a;
  cursor: pointer;
}
.site-search-form button:hover { color: var(--brand-dark); }
.r-header > .site-search-form { flex: 0 0 292px; margin: 0 18px 0 0; }
.mobile-bottom > .container > .site-search-form {
  position: relative;
  width: 100%;
  max-width: none;
  height: 34px;
  margin: 0;
}
.mobile-bottom .site-search-form input[type="search"] {
  width: 100%;
  height: 34px;
  padding: 5px 42px 5px 12px;
}
.mobile-bottom .site-search-form button {
  position: absolute;
  top: 0;
  right: 0;
  width: 42px;
  height: 34px;
  background: transparent;
}

/* Header review / phone bits */
.top-links-right { display: flex; align-items: center; gap: 14px; flex-wrap: nowrap; min-height: 32px; }
.review-header svg { width: 16px; height: 16px; }
.asesoramiento-header,
.phone-header { display: flex; align-items: center; min-height: 32px; }

/* If the original theme's menu JS is unavailable, keep the desktop
   mega-menu usable on hover. */
@media (min-width: 1024px) {
  .sm_megamenu_menu > li:hover > .sm-megamenu-child { display: block !important; }
}

/* Mobile menu: the theme owns the panel position and slide transition. The
   only extra rule needed is the expanded submenu state for the cloned menu. */
.header-mobile .navigation-mobile .sm_megamenu_menu > li.parent-active > div { display: block; }

/* Home carousels (Owl markup with no Magento JS) */
.owl-carousel {
  display: flex !important;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  gap: 0;
}
.owl-carousel::-webkit-scrollbar { display: none; }
.owl-carousel > .item {
  flex: 0 0 100%;
  min-width: 100%;
  scroll-snap-align: start;
}
.owl-carousel > .item img { display: block; width: 100%; height: auto; }
.slidershow .loading-content { display: none !important; }
.slidershow [data-owl] { position: relative; }
.static-carousel-nav {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 0;
  z-index: 8;
  pointer-events: none;
}
.static-carousel-nav button {
  position: absolute;
  top: 50%;
  width: 62px;
  height: 62px;
  margin-top: -31px;
  border: 4px solid #fff;
  border-radius: 50%;
  background: #524d5e;
  color: #fff;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}
.static-carousel-prev { left: -31px; }
.static-carousel-next { right: -31px; }
.static-carousel-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  z-index: 8;
  text-align: center;
}
.static-carousel-dot {
  width: 28px;
  height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.static-carousel-dot span {
  display: block;
  width: 10px;
  height: 10px;
  margin: 0 auto;
  border-radius: 50%;
  background: #fff;
  opacity: .65;
}
.static-carousel-dot.is-active span { background: var(--brand-yellow); opacity: 1; }
@media (max-width: 767px) {
  .static-carousel-nav { display: none; }
}

/* Product tabs: the theme provides the visual styling. Keep only the panel
   visibility rules needed by our vanilla tab script. */
html.js .product.data.items .resp-tabs-container > .resp-tab-content { display: none; }
html.js .product.data.items .resp-tabs-container > .resp-tab-content.is-active { display: block; }

/* Product gallery fallback */
.gallery-placeholder { position: relative; overflow: hidden; }
.gallery-placeholder__image { display: block; width: 100%; height: auto; }
.gallery-placeholder._block-content-loading::after { display: none !important; }

/* Product gallery built from the extracted Magento gallery JSON */
.gallery-placeholder.static-gallery { overflow: visible; }
.static-gallery__stage { position: relative; outline: none; }
.static-gallery__main-image { display: block; width: 100%; height: auto; }
.static-gallery__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 34px;
  height: 54px;
  margin-top: -27px;
  border: 0;
  background: rgba(255, 255, 255, 0.55);
  color: var(--brand-dark);
  font-size: 34px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
}
.static-gallery__stage:hover .static-gallery__arrow,
.static-gallery__arrow:focus { opacity: 1; }
.static-gallery__arrow:hover { background: rgba(255, 255, 255, 0.8); }
.static-gallery__arrow--prev { left: 0; }
.static-gallery__arrow--next { right: 0; }
.static-gallery__thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  margin-top: 20px;
  overflow-x: auto;
  scrollbar-width: none;
}
.static-gallery__thumbs::-webkit-scrollbar { display: none; }
.static-gallery__thumb {
  flex: 0 0 98px;
  width: 98px;
  height: 98px;
  margin-right: 10px;
  padding: 9px;
  border: 1px solid #ddd;
  background: #fff;
  cursor: pointer;
  box-sizing: border-box;
}
.static-gallery__thumb:last-child { margin-right: 0; }
.static-gallery__thumb.is-active { border-color: var(--brand-yellow); box-shadow: inset 0 0 0 1px var(--brand-yellow); }
.static-gallery__thumb img { display: block; width: 100%; height: 100%; object-fit: contain; }
.static-gallery__dots { display: none; }
.static-gallery__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 1px solid #b9b9b9;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
}
.static-gallery__dot.is-active { border-color: var(--brand-yellow); background: var(--brand-yellow); }

/* Category layered navigation */
.filter-options-content .item.is-active > a { color: #222; font-weight: 600; }
.filter-options-content .item.is-active > a:before {
  background: var(--brand-yellow);
  border-color: var(--brand-yellow);
}

/* Magento switches from thumbnail navigation to dots below 1440px. */
@media (max-width: 1439px) {
  .static-gallery__dots { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
  .static-gallery__thumbs { display: none; }
  .static-gallery__arrow { display: none; }
}
@media (max-width: 767px) {
  .static-gallery__thumb { flex-basis: 72px; width: 72px; height: 72px; margin-right: 8px; padding: 6px; }
}

/* Related-products carousel rendered outside the original Owl JS */
body .page-main > .page-bottom-related {
  width: 100% !important;
  max-width: none !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
}
.product-slider { position: relative; }
.related-carousel-nav {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  gap: 6px;
  z-index: 3;
}
.related-carousel-nav[hidden] { display: none; }
.related-carousel-nav button {
  width: 34px;
  height: 34px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: var(--brand-dark);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.related-carousel-nav button:disabled { opacity: .35; cursor: default; }
.products-related .owl-carousel {
  display: grid !important;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 90px) / 4);
  gap: 30px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.products-related .owl-carousel::-webkit-scrollbar { display: none; }
.products-related .owl-carousel > .item {
  flex: none;
  min-width: 0;
  width: auto;
  float: none;
  margin: 0;
  scroll-snap-align: start;
}
.products-related .product-image-container,
.products-related .product-image-wrapper { width: 100% !important; }
@media (max-width: 1199px) {
  .products-related .owl-carousel { grid-auto-columns: calc((100% - 60px) / 3); }
}
@media (max-width: 767px) {
  .products-related .owl-carousel { grid-auto-columns: calc((100% - 18px) / 2); gap: 18px; }
}

/* Grid: client-side "load more" */
.listing-hidden { display: none !important; }
.load-more-wrap { text-align: center; padding: 24px 0 8px; }
.load-more-wrap button {
  border: 0;
  border-radius: 30px;
  padding: 13px 32px;
  background: var(--brand-yellow);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.listing-status { color: var(--brand-muted); font-size: 14px; }

/* Contact form */
.static-contact-form {
  max-width: 800px;
  margin: 18px auto 30px;
  padding: 24px;
  border: 1px solid #eee;
  border-radius: 8px;
  background: #fff;
}
.static-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 18px;
}
.static-form-grid label,
.static-contact-form .consent { display: block; font-weight: 600; color: var(--brand-dark); }
.static-form-grid label.full { grid-column: 1 / -1; }
.static-form-grid input,
.static-form-grid textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid #d7d7d7;
  border-radius: 4px;
  font: inherit;
  font-weight: 400;
  box-sizing: border-box;
}
.static-contact-form .req { color: #c00; }
.static-contact-form .consent { margin: 16px 0 8px; font-weight: 400; font-size: 14px; }
.static-contact-form .consent input { margin-right: 6px; }
.static-contact-form .form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 8px; }
.static-contact-form .action.primary {
  border: 0;
  border-radius: 30px;
  padding: 12px 28px;
  background: var(--brand-yellow);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}
.static-contact-form .action.primary[disabled] { opacity: .6; cursor: wait; }
.form-status { margin: 0; font-size: 14px; }
.form-status.is-success { color: #1b7f3b; }
.form-status.is-error { color: #b00020; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }

/* Footer newsletter form: match the original block layout */
.static-newsletter-form .newsletter-content { display: block; }
.static-newsletter-form .input-box { width: 100%; }
.static-newsletter-form input[type="email"] {
  width: 100%;
  height: 36px;
  padding: 0 9px;
  background: transparent;
  border: 1px solid #333;
  border-radius: 2px;
  color: #666;
  box-sizing: border-box;
}
.static-newsletter-form .action-button { padding-top: 10px; }
.static-newsletter-form .action-button button { width: 100%; height: 38px; white-space: nowrap; }
.static-newsletter-form .form-status { margin-top: 6px; }
.static-newsletter-form .form-status:empty { display: none; }

/* PluginCompany contact forms */
.static-pccf { width: 100% !important; max-width: 600px !important; margin: 0 auto !important; }
.static-product-pccf { width: 100% !important; max-width: 800px !important; margin: 0 !important; }
.pccf textarea.form-control { height: 120px; }
.pccf .form-status { color: #fff; margin: 8px 0 0; }
.pccf .form-status:empty { display: none; }
.pccf .form-status.is-success { color: #9be29b; }
.pccf .form-status.is-error { color: #ff9d9d; }

/* Search page */
.search-page { max-width: 900px; margin: 0 auto; padding: 20px 0 50px; }
.search-page-form { max-width: 100%; margin: 20px 0 10px; border: 1px solid #ddd; }
.search-hint { color: var(--brand-muted); font-size: 14px; }
.search-results { margin-top: 24px; }
.search-result { padding: 16px 0; border-bottom: 1px solid #eee; }
.search-result h2 { margin: 0 0 6px; font-size: 20px; }
.search-result h2 a { color: var(--brand-dark); text-decoration: none; }
.search-result h2 a:hover { color: var(--brand-yellow); }
.search-result p { margin: 0; color: var(--brand-muted); }
.search-result mark { background: #fff2c7; }
.search-count { color: var(--brand-muted); margin: 10px 0; }

/* 404 */
.error-page { max-width: 760px; margin: 40px auto; padding: 0 15px; }
.error-links { margin-top: 20px; }

/* Misc cleanup */
#authenticationPopup, .page.messages { display: none !important; }
.toolbar, .filter-overlay { display: none !important; }
.action.towishlist, .action.tocompare { display: none !important; }
.sr-only {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0);
  white-space: nowrap; border: 0;
}

/* A little breathing room on pages whose Magento layout used sidebars. */
.page-main > .columns > .column.main { min-width: 0; }
.page-layout-2columns-right .column.main { width: 100% !important; }

@media (max-width: 1023px) {
  .header-container.header-style-23 { position: relative !important; }
  .r-header > .site-search-form { display: none; }
}

@media (max-width: 767px) {
  .static-form-grid { grid-template-columns: 1fr; }
  .static-form-grid label.full { grid-column: 1; }
  .static-contact-form { padding: 18px 15px; }
  .product.data.items .resp-tabs-container { padding: 14px; }
}

/* ------------------------------------------------------------------
   Blog listing
   Cards are generated by migrate/blog.py; the markup is intentionally
   simple so new posts only need a Markdown source file.
   ------------------------------------------------------------------ */
.blog-listing .post-list-wrapper {
  float: none;
  width: auto;
  margin: 0;
}
.blog-listing .post-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  margin: 0 0 36px;
  padding: 0;
  list-style: none;
}
.blog-listing .post-list > li.post-holder.blog-card {
  display: flex;
  flex-direction: column;
  min-height: 0;
  margin: 0;
  padding: 0;
  float: none;
  width: auto;
  max-width: none;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow .18s ease, transform .18s ease;
}
.blog-listing .post-list > li.post-holder.blog-card:hover {
  box-shadow: 0 8px 26px rgba(33, 41, 60, .10);
  transform: translateY(-2px);
}
.blog-listing .blog-card__media {
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #f4f4f4;
}
.blog-listing .blog-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  transition: transform .35s ease;
}
.blog-listing .blog-card:hover .blog-card__media img { transform: scale(1.03); }
.blog-listing .blog-card__body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 18px 20px 20px;
}
.blog-listing .blog-card .post-title {
  margin: 0 0 8px;
  padding: 0;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-listing .blog-card .post-title a {
  color: #1a1a1a;
  text-decoration: none;
}
.blog-listing .blog-card .post-title a:hover { color: var(--brand-dark); }
.blog-listing .blog-card .post-info {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0 0 10px;
  font-size: 12px;
  color: #7b858a;
  line-height: 1.4;
}
.blog-listing .blog-card .post-posed-date .value {
  font-style: italic;
  color: #7b858a;
}
.blog-listing .blog-card .post-categories {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.blog-listing .blog-card .post-categories a {
  color: #7b858a;
  text-decoration: none;
  font-size: 12px;
}
.blog-listing .blog-card .post-categories a:hover {
  color: var(--brand-dark);
  text-decoration: underline;
}
.blog-listing .blog-card .post-text-hld {
  flex: 1 1 auto;
  margin: 0;
  padding: 0;
  font-size: 14px;
  line-height: 1.55;
  color: #555;
}
.blog-listing .blog-card .post-text-hld p {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
  padding: 0;
}
.blog-listing .blog-card .post-read-more {
  display: inline-block;
  align-self: flex-start;
  margin: 14px 0 0;
  padding: 0;
  float: none;
  background: none;
  border: 0;
  border-radius: 0;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-dark);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--brand-yellow);
}
.blog-listing .blog-card .post-read-more:hover { color: #000; }
.blog-listing .blog-card .post-read-more:after { content: " →"; }

/* Blog pagination: centred, below the grid */
.blog-listing .pages {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  clear: both;
  float: none;
  width: 100%;
  margin: 0 0 48px;
  padding: 0;
  line-height: normal;
}
.blog-listing .pages .pages-label { display: none; }
.blog-listing .pages .pages-items {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.blog-listing .pages .pages-items .item {
  float: none;
  margin: 0;
  height: auto;
  min-width: 0;
  border: 0;
  background: none;
  line-height: normal;
}
.blog-listing .pages .item .page,
.blog-listing .pages .item strong.page {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 38px !important;
  height: 38px !important;
  padding: 0 12px !important;
  border: 1px solid #e3e3e3 !important;
  border-radius: 8px;
  background: #fff;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1 !important;
  text-decoration: none;
  transition: border-color .15s ease, background .15s ease;
}
.blog-listing .pages .item a.page:hover {
  border-color: var(--brand-yellow);
  background: #fffaf0;
  text-decoration: none;
}
.blog-listing .pages .item.current strong.page {
  background: var(--brand-dark) !important;
  border-color: var(--brand-dark) !important;
  color: #fff !important;
}
.blog-listing .pages .item .action.next {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 38px !important;
  padding: 0 16px !important;
  border: 1px solid var(--brand-dark) !important;
  border-radius: 8px;
  color: var(--brand-dark);
  font-size: 14px;
  font-weight: 600;
  line-height: 1 !important;
  text-decoration: none;
  background: #fff;
}
.blog-listing .pages .item .action.next:after { content: "→"; }
.blog-listing .pages .item .action.next:hover {
  background: var(--brand-dark);
  color: #fff;
  text-decoration: none;
}
.blog-listing .pages .label { display: none; }

/* Generated blog posts use the same article styling as migrated ones. */
.blog-post-view .rpc-art { max-width: 900px; margin: 0 auto; padding: 10px 0 30px; }
.blog-post-view .rpc-art h2 {
  margin: 46px 0 16px;
  padding: 0 0 0 16px;
  border-left: 4px solid var(--brand-yellow);
}
.blog-post-view .rpc-art h3 { margin: 28px 0 10px; }
.blog-post-view .rpc-art p { margin: 0 0 18px; }
.blog-post-view .rpc-art img { height: auto; }
.blog-post-view .post-info {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0 0 22px;
  font-size: 13px;
  color: #7b858a;
}
.blog-post-view .post-info .post-categories a { color: #7b858a; }

@media (max-width: 991px) {
  .blog-listing .post-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
}
@media (max-width: 600px) {
  .blog-listing .post-list { grid-template-columns: 1fr; }
  .blog-listing .blog-card__body { padding: 16px; }
  .blog-listing .pages .item .page { min-width: 34px; height: 34px; }
}
