/* ============================================================
   Carson Multimedia — Opción C · Apple-clean
   ============================================================ */

:root {
  --white: #ffffff;
  --gray-50: #f9fafb;
  --gray-100: #f3f4f6;
  --gray-200: #e5e7eb;
  --gray-300: #d1d5db;
  --gray-400: #9ca3af;
  --gray-500: #6b7280;
  --gray-600: #4b5563;
  --gray-700: #374151;
  --gray-800: #1f2937;
  --gray-900: #111827;
  --red-50: #fef2f2;
  --red-100: #fee2e2;
  --red-500: #c41e2a;
  --red-600: #b01a24;
  --red-700: #991b1b;
  --navy: #1a1f36;
  --navy-light: #2d3348;
  --blue-50: var(--red-50);
  --blue-100: var(--red-100);
  --blue-500: var(--red-500);
  --blue-600: var(--red-600);
  --blue-700: var(--red-700);
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(0,0,0,0.04);
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.07);
  --shadow-lg: 0 10px 24px rgba(0,0,0,0.08);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max-w: 1280px;
  --px: clamp(1rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; }

body {
  font-family: var(--font);
  background: var(--white);
  color: var(--gray-800);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

/* ===== NAVBAR ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 3px solid var(--red-500);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.navbar__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 var(--px);
  height: 64px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.navbar__logo img {
  height: 43px;
  width: auto;
  display: block;
}

.navbar__brand {
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  color: var(--gray-900);
}
.navbar__brand span {
  font-weight: 400;
  color: var(--gray-500);
}

.navbar__tabs {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}

.nav-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 0.85rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-500);
  border-radius: var(--radius-pill);
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
}

.nav-tab:hover {
  color: var(--gray-800);
  background: var(--gray-100);
}

.nav-tab.is-active {
  color: var(--white);
  background: var(--red-500);
  box-shadow: 0 2px 6px rgba(196,30,42,0.25);
}

.nav-tab__icon {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

.navbar__search {
  position: relative;
  display: flex;
  align-items: center;
  margin-left: 0.75rem;
  flex-shrink: 0;
}

.navbar__search-icon {
  position: absolute;
  left: 0.65rem;
  pointer-events: none;
  color: var(--gray-400);
}

.navbar__search-input {
  width: 220px;
  padding: 0.45rem 0.75rem 0.45rem 2.25rem;
  font-family: inherit;
  font-size: 0.875rem;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--gray-50);
  color: var(--gray-800);
  transition: border-color 0.15s, box-shadow 0.15s, width 0.2s;
}
.navbar__search-input::placeholder { color: var(--gray-400); }
.navbar__search-input:focus {
  outline: none;
  width: 280px;
  border-color: var(--red-500);
  box-shadow: 0 0 0 3px rgba(196,30,42,0.15);
  background: var(--white);
}

/* ===== HERO ===== */
.hero {
  background: linear-gradient(135deg, var(--gray-50) 0%, var(--blue-50) 100%);
  border-bottom: 1px solid var(--gray-200);
}

.hero__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 3rem var(--px) 3.5rem;
}

.hero__text { max-width: 600px; }

.hero__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--gray-900);
}

.hero__sub {
  margin-top: 0.75rem;
  font-size: 1.05rem;
  color: var(--gray-500);
  max-width: 440px;
}

.hero__ctas {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.3rem;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.15s, background 0.15s;
}
.btn:active { transform: scale(0.97); }

.btn--primary {
  background: var(--blue-600);
  color: var(--white);
  border: none;
  box-shadow: var(--shadow-sm);
}
.btn--primary:hover {
  background: var(--blue-700);
  box-shadow: var(--shadow-md);
}

.btn--outline {
  background: var(--white);
  color: var(--blue-600);
  border: 1.5px solid var(--blue-600);
}
.btn--outline:hover {
  background: var(--blue-50);
}

.btn--sm {
  padding: 0.45rem 1rem;
  font-size: 0.82rem;
}

.btn__count {
  background: rgba(255,255,255,0.2);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  font-size: 0.78rem;
  font-weight: 500;
}
.btn--outline .btn__count {
  background: var(--blue-50);
}

/* ===== CAROUSEL (brand) ===== */
.carousel-section {
  border-bottom: 1px solid var(--gray-200);
  background: var(--white);
}

.carousel-section__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.75rem var(--px) 1.5rem;
}

.page-hero__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 1rem;
  line-height: 1.3;
}

.section-title {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-700);
  margin-bottom: 1rem;
}

.carousel {
  display: flex;
  gap: 0.65rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.carousel::-webkit-scrollbar { display: none; }

.carousel__item {
  flex-shrink: 0;
  scroll-snap-align: start;
  min-width: 150px;
  padding: 0.85rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  background: var(--white);
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
  cursor: pointer;
}
.carousel__item:hover {
  border-color: var(--gray-300);
  box-shadow: var(--shadow-sm);
}
.carousel__item.is-active {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px var(--blue-100);
}

.carousel__name {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-800);
}
.carousel__item.is-active .carousel__name { color: var(--blue-700); }

.carousel__count {
  font-size: 0.75rem;
  color: var(--gray-400);
}

/* ===== HOME BANNER ===== */
.home-banner {
  margin-bottom: 1.5rem;
  border-radius: 12px;
  overflow: hidden;
  line-height: 0;
}
.home-banner__img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

/* ===== HOME SPLIT: sidebar marcas + novedades ===== */
.home-split {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 2rem;
  align-items: start;
}

.brand-sidebar {
  position: sticky;
  top: 1rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--gray-300) transparent;
  padding-right: 0.5rem;
}
.brand-sidebar::-webkit-scrollbar { width: 4px; }
.brand-sidebar::-webkit-scrollbar-thumb { background: var(--gray-300); border-radius: 2px; }

.brand-sidebar__title {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-500);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--gray-200);
}

.brand-list {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.brand-item {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0.6rem;
  border-radius: var(--radius);
  transition: background 0.12s, box-shadow 0.12s;
  text-decoration: none;
  color: var(--gray-800);
}
.brand-item:hover {
  background: var(--gray-100);
  box-shadow: var(--shadow-sm);
}

.brand-item__logo {
  flex-shrink: 0;
  line-height: 0;
  width: 62px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.brand-item__logo img,
.brand-item__logo svg {
  display: block;
  max-width: 100%;
  max-height: 100%;
}

.brand-item__name {
  flex: 1;
  font-size: 0.88rem;
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-item__count {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--gray-400);
  background: var(--gray-100);
  padding: 0.1rem 0.45rem;
  border-radius: var(--radius-pill);
  margin-left: auto;
}

.brand-item__arrow {
  flex-shrink: 0;
  color: var(--gray-400);
  transition: transform 0.15s;
}
.brand-item:hover .brand-item__arrow {
  transform: translateX(2px);
  color: var(--gray-600);
}
.brand-item.is-active {
  background: var(--blue-50);
  border-left: 3px solid var(--blue-600);
  color: var(--blue-700);
}
.brand-item.is-active .brand-item__name {
  font-weight: 600;
  color: var(--blue-700);
}
.brand-item.is-active .brand-item__count {
  background: var(--blue-100);
  color: var(--blue-700);
}

.brand-item--screen {
  padding: 0.65rem 0.75rem;
}
.brand-item__screen-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--blue-50);
  color: var(--blue-600);
  border-radius: 8px;
}
.brand-item--screen.is-active .brand-item__screen-icon {
  background: var(--blue-600);
  color: #fff;
}
.brand-item__screen-size {
  flex: 1;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--gray-800);
}
.brand-item--screen.is-active .brand-item__screen-size {
  color: var(--blue-700);
}

.home-latest {
  min-width: 0;
}
.home-latest .section-title {
  font-size: 1.1rem;
  margin-bottom: 1.25rem;
}


h1.section-title--cat {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gray-800);
}
.section-title__count {
  font-weight: 500;
  color: var(--gray-500);
  font-size: 0.95em;
}

.section-title--cat {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  padding-bottom: 0.5rem;
  border-bottom: 2px solid var(--red-600);
  margin-bottom: 1.25rem;
}

.home-split .grid {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
}
@media (max-width: 860px) {
  .home-split .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem;
  }
}

@media (max-width: 860px) {
  .home-split {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }
  .brand-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
    border-right: none;
    padding: 0;
    margin-bottom: 0.6rem;
    min-width: 0;
  }
  .brand-sidebar__title { display: none; }
  .brand-list {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 6px;
    padding: 6px 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    min-width: 0;
    max-width: 100%;
  }
  .brand-list::-webkit-scrollbar { display: none; }
  .brand-item {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    padding: 7px;
    border-radius: 10px;
    border: 1.5px solid var(--gray-200);
    background: var(--white);
    gap: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .brand-item__arrow { display: none; }
  .brand-item__name { display: none; }
  .brand-item__logo { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
  .brand-item__logo img,
  .brand-item__logo svg { max-width: 100%; max-height: 100%; }
  .brand-item.is-active {
    background: var(--red-50);
    border-color: var(--red-500);
    box-shadow: 0 0 0 2px rgba(196,30,42,0.15);
  }
  .brand-item--screen {
    flex: 0 0 auto;
    aspect-ratio: auto;
    max-width: none;
    width: auto;
    height: auto;
    padding: 0.3rem 0.6rem;
    gap: 0.3rem;
    flex-direction: row;
  }
  .brand-item--screen .brand-item__screen-size { display: block; font-size: 0.72rem; white-space: nowrap; }
  .brand-item__screen-icon { width: 20px; height: 20px; }
  .brand-item__screen-icon svg { width: 14px; height: 14px; }
  .brand-item__count { font-size: 0.6rem; padding: 0.05rem 0.25rem; }
  .brand-item--screen.is-active {
    background: var(--red-50);
    border-color: var(--red-500);
    box-shadow: 0 0 0 2px rgba(196,30,42,0.15);
  }
}

/* ===== PILLS (screen sizes & filters) ===== */
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius-pill);
  background: var(--white);
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  cursor: pointer;
}
.pill:hover {
  border-color: var(--gray-300);
  background: var(--gray-50);
}
.pill.is-active {
  border-color: var(--blue-600);
  color: var(--blue-700);
  background: var(--blue-50);
}

.pill--sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.pill__size {
  font-weight: 700;
  font-size: 1.05em;
}

.pill__count {
  font-size: 0.75rem;
  color: var(--gray-400);
  font-weight: 400;
}
.pill.is-active .pill__count { color: var(--blue-500); }

/* inline-filters (catálogo view) */
.inline-filters {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.inline-filters__group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.inline-filters__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--gray-400);
  min-width: 70px;
}

/* ===== BREADCRUMB ===== */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 1rem;
  font-size: 0.85rem;
}

.breadcrumb__link {
  color: var(--blue-600);
  font-weight: 500;
  transition: color 0.1s;
}
.breadcrumb__link:hover {
  color: var(--blue-700);
  text-decoration: underline;
}

.breadcrumb__sep {
  color: var(--gray-300);
  font-size: 1.1em;
}

.breadcrumb__current {
  color: var(--gray-700);
  font-weight: 600;
}

.empty-inline {
  color: var(--gray-400);
  font-size: 0.9rem;
  padding: 1rem 0;
}

/* ===== PRODUCTS ===== */
.products {
  background: var(--gray-50);
  min-height: 60vh;
}

.products__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--px) 4rem;
}

.products__header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  margin-bottom: 1.25rem;
}

h1.products__title--page {
  font-size: 1.25rem;
}

.products__title {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--gray-800);
}

.products__total {
  font-weight: 400;
  color: var(--gray-400);
}

.products__clear {
  font-size: 0.85rem;
  color: var(--blue-600);
  font-weight: 500;
}
.products__clear:hover { text-decoration: underline; }

.empty {
  padding: 3rem 1.5rem;
  text-align: center;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1.5px dashed var(--gray-300);
  color: var(--gray-500);
}
.empty p { margin-bottom: 1rem; }

/* ===== GRID ===== */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 1.25rem;
}
.grid--3col {
  grid-template-columns: repeat(3, 1fr);
}

/* ===== CARD ===== */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--gray-200);
  transition: box-shadow 0.2s, transform 0.2s;
  min-width: 0;
}
.card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}

.card__visual {
  position: relative;
  background: var(--white);
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--gray-100);
}

.card__img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1rem;
}

.card__badge {
  position: absolute;
  top: 0.65rem;
  left: 0.65rem;
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--navy);
  background: rgba(26,31,54,0.1);
  border-radius: var(--radius-pill);
}

.card__badge--size {
  color: var(--white);
  background: var(--navy);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  box-shadow: 0 2px 6px rgba(26,31,54,0.3);
}

.card__badge--mem {
  left: auto;
  right: 0.65rem;
  color: var(--white);
  background: var(--red-500);
  font-size: 0.78rem;
  padding: 0.3rem 0.75rem;
  box-shadow: 0 2px 6px rgba(196,30,42,0.35);
}

.card__body {
  padding: 1rem 1.15rem 1.25rem;
}

.card__title {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--gray-800);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card__ref {
  margin-top: 0.35rem;
  font-size: 0.75rem;
  color: var(--gray-400);
}

.card__desc {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--gray-600);
}
.card__desc p {
  margin: 0;
}
.card__desc--marco {
  padding-bottom: 0.45rem;
  border-bottom: 1px solid var(--gray-100);
}
.card__desc--screen {
  margin-top: 0.45rem;
  color: var(--gray-500);
  font-size: 0.73rem;
}
.card__desc--screen p + p {
  margin-top: 0.3rem;
}

.card__price {
  margin-top: 0.6rem;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--red-500);
  letter-spacing: -0.01em;
  text-align: right;
}

/* ===== Tier badges (Basico / Recomendado / Premium) ===== */
.card__tier {
  position: absolute;
  bottom: 0.5rem;
  right: 0.5rem;
  padding: 0.3rem 0.7rem;
  border-radius: 5px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0,0,0,0.25);
  pointer-events: none;
}
.card__tier.tier--basic {
  background: #6b7280;
  color: #fff;
}
.card__tier.tier--recommended {
  background: #2563eb;
  color: #fff;
}
.card__tier.tier--premium {
  background: #d97706;
  color: #fff;
}

.card--combo .card__title {
  -webkit-line-clamp: 3;
}

.card__action {
  display: inline-block;
  margin-top: 0.65rem;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--blue-600);
  transition: color 0.1s;
}
.card__action:hover { color: var(--blue-700); }

/* ===== DETAIL VIEW ===== */
.detail {
  background: var(--gray-50);
  min-height: 70vh;
}

.detail__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 2rem var(--px) 4rem;
}

.detail__layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  margin-top: 1.5rem;
}

.detail__gallery {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.detail__main-img-wrap {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  display: flex;
  align-items: center;
  justify-content: center;
}

.detail__main-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 1.5rem;
}

.detail__thumbs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  padding-bottom: 0.25rem;
}
.detail__thumbs::-webkit-scrollbar { display: none; }

.detail__thumb {
  flex-shrink: 0;
  width: 72px;
  height: 54px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-sm);
  overflow: hidden;
  cursor: pointer;
  background: var(--white);
  padding: 0;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.detail__thumb:hover {
  border-color: var(--gray-400);
}
.detail__thumb.is-active {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 2px var(--blue-100);
}
.detail__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ===== LIGHTBOX (fullscreen image) ===== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}
.lightbox__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  border-radius: 6px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
  user-select: none;
  -webkit-user-select: none;
}
.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  opacity: 0.7;
  transition: opacity 0.15s;
  z-index: 1;
}
.lightbox__close:hover {
  opacity: 1;
}

.detail__info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.detail__title {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--gray-900);
  letter-spacing: -0.015em;
}

.detail__ref {
  margin-top: 0.4rem;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.detail__section {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
}

.detail__section-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--gray-700);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.6rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.detail__mem-badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--white);
  background: var(--blue-600);
  border-radius: var(--radius-pill);
  text-transform: none;
  letter-spacing: 0;
}

.detail__desc {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--gray-600);
}
.detail__desc p {
  margin: 0.2rem 0;
}
.detail__desc--screen {
  color: var(--gray-500);
}
.detail__desc--screen p + p {
  margin-top: 0.4rem;
}

.detail__price-block {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gray-200);
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
}

.detail__price {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--red-500);
  letter-spacing: -0.02em;
}

.detail__price-iva {
  font-size: 0.8rem;
  color: var(--gray-400);
}

.detail__actions {
  margin-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

@media (max-width: 860px) {
  .detail__layout {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* ===== FOOTER ===== */
.footer {
  background: var(--gray-50);
  border-top: 1px solid var(--gray-200);
}

.footer__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.5rem var(--px);
  text-align: center;
  font-size: 0.8rem;
  color: var(--gray-400);
}

.footer__links {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  flex-wrap: wrap;
}
.footer__links a {
  color: var(--gray-500);
  font-size: 0.8rem;
  transition: color 0.15s;
}
.footer__links a:hover {
  color: var(--red-500);
  text-decoration: underline;
}

/* ===== COOKIE BANNER ===== */
.cookie-banner {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 9999;
  background: var(--white);
  border-top: 1px solid var(--gray-200);
  box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
}
.cookie-banner__inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 1.25rem var(--px);
  display: flex;
  align-items: center;
  gap: 1.5rem;
}
.cookie-banner__text {
  flex: 1;
  font-size: 0.85rem;
  color: var(--gray-600);
  line-height: 1.5;
}
.cookie-banner__text a {
  color: var(--red-500);
  font-weight: 500;
  text-decoration: underline;
}
.cookie-banner__actions {
  display: flex;
  gap: 0.5rem;
  flex-shrink: 0;
}
.cookie-banner__accept {
  background: var(--red-500) !important;
  color: var(--white) !important;
  border: none !important;
}
.cookie-banner__accept:hover {
  background: var(--red-600) !important;
}
.cookie-banner__reject {
  color: var(--gray-500) !important;
  border-color: var(--gray-300) !important;
}
@media (max-width: 640px) {
  .cookie-banner__inner {
    flex-direction: row;
    align-items: center;
    text-align: left;
    padding: 0.6rem var(--px);
    gap: 0.65rem;
  }
  .cookie-banner__text {
    font-size: 0.72rem;
    line-height: 1.35;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .cookie-banner__actions {
    width: auto;
    flex-shrink: 0;
  }
  .cookie-banner__actions .btn {
    flex: 0;
    padding: 0.4rem 0.7rem;
    font-size: 0.75rem;
  }
}

/* ===== LEGAL PAGES ===== */
.detail__inner h1 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-900);
  margin-bottom: 1.25rem;
}
.detail__inner h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--gray-800);
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}
.detail__inner p {
  font-size: 0.9rem;
  color: var(--gray-600);
  line-height: 1.7;
  margin-bottom: 0.75rem;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.85rem;
}
.legal-table th, .legal-table td {
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--gray-200);
  text-align: left;
}
.legal-table th {
  background: var(--gray-50);
  font-weight: 600;
  color: var(--gray-700);
}
.legal-table td {
  color: var(--gray-600);
}

/* ===== LOAD MORE ===== */
.grid__load-more {
  display: block;
  margin: 1.5rem auto 1rem;
  color: var(--red-500);
  border-color: var(--red-500);
}
.grid__load-more:hover {
  background: var(--red-50);
}

/* ===== RESPONSIVE ===== */

/* -- Tablet (860px) -- */
@media (max-width: 860px) {
  .navbar__inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    gap: 0.5rem;
  }
  .navbar__logo img { height: 30px; }
  .navbar__tabs {
    margin-left: 0;
    order: 3;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    gap: 0.15rem;
  }
  .navbar__tabs::-webkit-scrollbar { display: none; }
  .navbar__search { margin-left: auto; order: 2; }
  .nav-tab { font-size: 0.8rem; padding: 0.4rem 0.7rem; white-space: nowrap; }

  .home-banner { margin-bottom: 1rem; }
  .home-banner__img { border-radius: 8px; max-height: 220px; object-fit: cover; }

  .detail__layout { gap: 1.5rem; }
  .detail__thumbs { gap: 0.4rem; }
  .detail__thumb { width: 52px; height: 40px; }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    padding: 1.5rem;
  }
}

/* -- Mobile (640px) -- */
@media (max-width: 640px) {
  .navbar__inner {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    gap: 0.4rem;
  }
  .navbar__logo img { height: 26px; }
  .navbar__search-input { width: 120px; font-size: 0.8rem; }
  .navbar__search-input:focus { width: 160px; }
  .nav-tab { font-size: 0.75rem; padding: 0.35rem 0.6rem; }
  .nav-tab__icon { width: 14px; height: 14px; }

  .home-banner { margin-bottom: 0.75rem; }
  .home-banner__img { border-radius: 6px; }

  .carousel-section__inner { padding: 0.75rem var(--px) 0.75rem; }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 0.5rem;
  }
  .grid--3col { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .home-split .grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }

  .card { border-radius: 8px; overflow: hidden; }
  .card__visual { aspect-ratio: 1; }
  .card__img { padding: 0.3rem; object-fit: contain; }
  .card__body { padding: 0.4rem 0.5rem 0.6rem; }
  .card__title { font-size: 0.7rem; -webkit-line-clamp: 2; line-height: 1.3; }
  .card__desc { font-size: 0.6rem; -webkit-line-clamp: 2; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; }
  .card__desc p { margin: 0; font-size: 0.6rem; }
  .card__price { font-size: 0.85rem; margin-top: 0.25rem; }
  .card__badge { font-size: 0.5rem; padding: 0.1rem 0.3rem; top: 0.25rem; left: 0.25rem; }
  .card__badge--size { font-size: 0.55rem; padding: 0.12rem 0.35rem; }
  .card__badge--mem { font-size: 0.55rem; padding: 0.12rem 0.35rem; left: auto !important; right: 0.25rem; }

  .breadcrumb { font-size: 0.78rem; }

  .section-title { font-size: 1rem; }
  .home-latest .section-title { font-size: 0.95rem; margin-bottom: 0.75rem; }

  .products__title { font-size: 1rem; }

  .detail__inner { padding: 1rem var(--px) 2rem; }
  .detail__title { font-size: 1.1rem; }
  .detail__price { font-size: 1.3rem; }
  .detail__section-title { font-size: 0.9rem; }
  .detail__desc p { font-size: 0.82rem; }
  .detail__thumbs { gap: 0.3rem; }
  .detail__thumb { width: 44px; height: 34px; }
  .detail__actions { flex-direction: column; }
  .detail__actions .btn { width: 100%; justify-content: center; }

  .cookie-banner__inner { padding: 1rem var(--px); gap: 0.75rem; }
  .cookie-banner__text { font-size: 0.78rem; }
  .cookie-banner__actions { width: 100%; }
  .cookie-banner__actions .btn { flex: 1; }

  .footer__links { gap: 1rem; }
  .footer__links a { font-size: 0.72rem; }
  .footer__inner p { font-size: 0.72rem; }

  .grid__load-more { font-size: 0.82rem; }
}

/* ===== CONTACTO ===== */
.contact-section {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 var(--px);
}
.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 2.5rem;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 16px rgba(0,0,0,.07);
  padding: 2.5rem;
}
.contact-info__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}
.contact-info__text {
  font-size: 0.92rem;
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.contact-info__detail {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--red-600);
  font-weight: 600;
  font-size: 0.9rem;
}
.contact-info__detail svg { color: var(--red-600); flex-shrink: 0; }

.contact-form { display: flex; flex-direction: column; gap: 1.1rem; }
.contact-form__group { display: flex; flex-direction: column; gap: 0.3rem; }
.contact-form__label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
}
.contact-form__label .required { color: var(--red-600); }
.contact-form__input,
.contact-form__textarea {
  border: 1.5px solid #d0d5dd;
  border-radius: 8px;
  padding: 0.65rem 0.85rem;
  font-size: 0.92rem;
  font-family: inherit;
  color: #333;
  transition: border-color .2s, box-shadow .2s;
  outline: none;
  background: #fafbfc;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.contact-form__input:focus,
.contact-form__textarea:focus {
  border-color: var(--red-600);
  box-shadow: 0 0 0 3px rgba(200,16,46,.1);
}
.contact-form__textarea { resize: vertical; min-height: 120px; }

.contact-form__submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  background: var(--red-600);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background .2s, transform .1s;
  align-self: flex-start;
}
.contact-form__submit:hover { background: var(--red-700); }
.contact-form__submit:active { transform: scale(0.98); }

.contact-form__alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 500;
}
.contact-form__alert--ok {
  background: #e6f9ed;
  color: #1a7a3a;
  border: 1px solid #b6e8c8;
}
.contact-form__alert--err {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

/* ===== Botón solicitar info (ficha producto) ===== */
.detail__info-request-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 0.65rem 1.25rem;
  background: var(--red-600, #dc2626);
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  width: 100%;
  justify-content: center;
}
.detail__info-request-btn:hover { background: var(--red-700, #b91c1c); }
.detail__info-request-btn:active { transform: scale(0.97); }
.detail__info-request-btn svg { flex-shrink: 0; }

/* ===== Modal solicitar info ===== */
.info-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.info-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}
.info-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}
.info-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 12px;
  padding: 2rem;
  width: 92%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.25);
  z-index: 1;
  animation: infoModalIn 0.3s ease;
}
@keyframes infoModalIn {
  from { transform: translateY(30px) scale(0.96); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
.info-modal__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.75rem;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: color 0.15s;
}
.info-modal__close:hover { color: #111; }
.info-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #111;
  margin: 0 0 0.25rem;
}
.info-modal__subtitle {
  font-size: 0.88rem;
  color: #666;
  margin: 0 0 1.25rem;
}

.info-modal .contact-form { padding: 0; box-shadow: none; }
.info-modal .contact-form__submit { width: 100%; justify-content: center; }

/* -- Contact & B2B forms responsive (640px) -- */
@media (max-width: 640px) {
  .contact-section {
    padding: 0 0.75rem;
    margin: 1rem auto;
  }
  .contact-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
    padding: 1.25rem;
    border-radius: 10px;
  }
  .contact-info__title {
    font-size: 1.2rem;
  }
  .contact-info__text {
    font-size: 0.85rem;
  }
  .contact-info__detail {
    font-size: 0.82rem;
  }
  .contact-form__label {
    font-size: 0.78rem;
  }
  .contact-form__input,
  .contact-form__textarea {
    font-size: 0.88rem;
    padding: 0.6rem 0.7rem;
  }
  .contact-form__textarea {
    min-height: 100px;
  }
  .contact-form__submit {
    width: 100%;
    justify-content: center;
    padding: 0.7rem 1rem;
    font-size: 0.88rem;
  }

  .b2b-section {
    padding: 1rem 0;
  }
  .b2b-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 0 0.75rem;
  }
  .b2b-info__title {
    font-size: 1.3rem;
  }
  .b2b-info__subtitle {
    font-size: 0.95rem;
  }
  .b2b-info__text {
    font-size: 0.85rem;
  }
  .b2b-info__benefits li {
    font-size: 0.82rem;
  }

  .info-modal__dialog {
    padding: 1.25rem;
    width: 95%;
    border-radius: 10px;
  }
  .info-modal__title {
    font-size: 1.1rem;
  }
  .info-modal__subtitle {
    font-size: 0.82rem;
  }
}

/* -- Contact & B2B forms responsive (480px) -- */
@media (max-width: 480px) {
  .contact-section {
    padding: 0 0.5rem;
    margin: 0.75rem auto;
  }
  .contact-inner {
    padding: 1rem;
    gap: 0.75rem;
    border-radius: 8px;
    box-shadow: 0 1px 8px rgba(0,0,0,.05);
  }
  .contact-info__title {
    font-size: 1.05rem;
  }
  .contact-form {
    gap: 0.8rem;
  }
  .contact-form__input,
  .contact-form__textarea {
    font-size: 16px;
    padding: 0.55rem 0.6rem;
    border-radius: 6px;
  }
  .contact-form__submit {
    font-size: 0.85rem;
    padding: 0.65rem 0.8rem;
    border-radius: 6px;
  }
  .contact-form__alert {
    font-size: 0.8rem;
    padding: 0.6rem 0.75rem;
  }

  .b2b-inner {
    padding: 0 0.5rem;
    gap: 1rem;
  }
  .b2b-info__title {
    font-size: 1.15rem;
  }
  .b2b-info__subtitle {
    font-size: 0.88rem;
    margin-bottom: 0.5rem;
  }
  .b2b-info__text {
    font-size: 0.82rem;
    margin-bottom: 0.75rem;
  }
  .b2b-info__benefits li {
    font-size: 0.78rem;
    padding: 0.3rem 0;
    padding-left: 1.25rem;
  }

  .info-modal__dialog {
    padding: 1rem;
    width: 96%;
  }
}

/* -- Small mobile (340px) -- */
@media (max-width: 340px) {
  .grid { grid-template-columns: 1fr; }
  .grid--3col { grid-template-columns: 1fr; }
  .home-split .grid { grid-template-columns: 1fr; }
  .card__title { font-size: 0.78rem; }
  .card__price { font-size: 0.9rem; }

  .contact-inner {
    padding: 0.75rem;
  }
  .contact-info__title {
    font-size: 0.95rem;
  }
  .b2b-info__title {
    font-size: 1rem;
  }
}

/* -- Detail: price in header (ref + price inline) -- */
.detail__ref-price {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 1.25rem;
}
.detail__ref-price .detail__ref {
  margin: 0;
}
.detail__price-inline {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  white-space: nowrap;
}
.detail__price-inline .detail__price {
  font-size: 1.5rem;
  font-weight: 700;
  color: #c0392b;
}
.detail__price-inline .detail__price-iva {
  font-size: 0.78rem;
  color: #888;
}

/* -- B2B tab badge -- */
.nav-tab--b2b {
  background: linear-gradient(135deg, #1a365d 0%, #2a4a7f 100%);
  color: #fff !important;
  border-radius: 6px;
  padding: 0.35rem 0.75rem;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.03em;
}
.nav-tab--b2b:hover {
  background: linear-gradient(135deg, #2a4a7f 0%, #3a5a9f 100%);
}
.nav-tab--b2b.is-active {
  background: linear-gradient(135deg, #0d2137 0%, #1a365d 100%);
}

/* -- Main content wrapper (B2B etc.) -- */
.main-content {
  max-width: 100%;
  overflow-x: hidden;
}

/* -- B2B section -- */
.b2b-section {
  padding: 2rem 0;
}
.b2b-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
}
@media (max-width: 768px) {
  .b2b-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}
.b2b-info__title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #1a365d;
  margin: 0 0 0.5rem;
}
.b2b-info__subtitle {
  font-size: 1.1rem;
  color: #c0392b;
  font-weight: 600;
  margin: 0 0 1rem;
}
.b2b-info__text {
  color: #555;
  line-height: 1.65;
  margin: 0 0 1.25rem;
}
.b2b-info__benefits {
  list-style: none;
  padding: 0;
  margin: 0;
}
.b2b-info__benefits li {
  padding: 0.4rem 0;
  padding-left: 1.5rem;
  position: relative;
  color: #333;
  font-size: 0.92rem;
}
.b2b-info__benefits li::before {
  content: '\2713';
  position: absolute;
  left: 0;
  color: #27ae60;
  font-weight: 700;
}

/* -- B2B banner on home -- */
.b2b-banner {
  display: block;
  margin-top: 3rem;
  margin-bottom: 1rem;
  border-radius: 12px;
  overflow: hidden;
}
.b2b-banner__img {
  width: 100%;
  display: block;
  border-radius: 12px;
}


/* -- Home: bloques instalaciones -- */
.home-instalaciones {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
}
.home-instalaciones__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
@media (max-width: 900px) {
  .home-instalaciones__grid { grid-template-columns: 1fr; }
}
.home-instal-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.08);
  text-decoration: none;
  color: inherit;
  transition: transform .15s, box-shadow .15s;
}
.home-instal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,.12);
}
.home-instal-card__img-wrap {
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: #f0f0f0;
}
.home-instal-card__img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.home-instal-card__title {
  padding: 0.85rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.35;
}

/* -- Pagina detalle instalacion -- */
.instalacion-page { padding: 1rem 0 3rem; }
.instalacion-page__inner { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.instalacion-article__header { margin-bottom: 1.25rem; }
.instalacion-article__hero {
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  background: #f0f0f0;
}
.instalacion-article__hero img {
  width: 100%;
  display: block;
  max-height: 480px;
  object-fit: cover;
}
.instalacion-article__title {
  font-size: 1.5rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}
.instalacion-article__body.cms-html {
  font-size: 1rem;
  line-height: 1.65;
  color: #333;
}
/* Reset global * { margin: 0 } — recuperar párrafos y bloques del HTML de publicación */
.instalacion-article__body.cms-html p {
  margin: 0 0 1.1em;
}
.instalacion-article__body.cms-html p:last-child {
  margin-bottom: 0;
}
.instalacion-article__body.cms-html h2,
.instalacion-article__body.cms-html h3,
.instalacion-article__body.cms-html h4 {
  margin: 1.25em 0 0.5em;
  line-height: 1.3;
  font-weight: 700;
}
.instalacion-article__body.cms-html h2:first-child,
.instalacion-article__body.cms-html h3:first-child,
.instalacion-article__body.cms-html h4:first-child {
  margin-top: 0;
}
.instalacion-article__body.cms-html ul,
.instalacion-article__body.cms-html ol {
  margin: 0 0 1.1em 1.25rem;
  padding-left: 0.25rem;
}
.instalacion-article__body.cms-html li {
  margin: 0.25em 0;
}
.instalacion-article__body.cms-html blockquote {
  margin: 0 0 1.1em;
  padding: 0.5rem 0 0.5rem 1rem;
  border-left: 4px solid #c0392b;
  background: #f9f9f9;
}
.instalacion-article__body.cms-html img { max-width: 100%; height: auto; border-radius: 8px; }
.instalacion-article__gallery { margin-top: 2rem; }
.instalacion-article__gallery-title { font-size: 1.1rem; margin-bottom: 0.75rem; }
.instalacion-article__gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.instalacion-article__gallery-item {
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #eee;
}
.instalacion-article__gallery-item img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  display: block;
}
.grid__load-more { margin-top: 1rem; margin-bottom: 0.5rem; }


/* -- Página /instalaciones (integrada en layout; tarjetas reutilizan .home-instal-*) -- */
.instalaciones-todas__crumb {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 1rem;
}
.instalaciones-todas__crumb a {
  color: var(--accent, #2563eb);
  text-decoration: none;
}
.instalaciones-todas__crumb a:hover { text-decoration: underline; }
.instalaciones-todas__crumb-sep { color: #999; }
.instalaciones-todas__title { margin-bottom: 0.35rem; }
.instalaciones-todas__hint {
  color: #666;
  font-size: 0.92rem;
  margin: 0 0 1.25rem;
}
.instalaciones-todas-page {
  margin-top: 0.25rem;
}


/* Precios ocultos en web pública */
.card__price,
.detail__price-inline,
.detail__price-block { display: none !important; }

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  margin-top: 1.5rem;
  padding-top: 1rem;
}
.pagination__btn {
  padding: 0.45rem 1rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-800);
  text-decoration: none;
}
.pagination__btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.pagination__info {
  font-size: 0.9rem;
  color: var(--gray-600);
}

.detail__seo-intro {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0 0 1.25rem;
  max-width: 52rem;
}

.detail__related {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--gray-200);
}
.detail__related-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--gray-800);
  margin: 0 0 1rem;
}
.detail__related-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1.25rem;
}
.detail__related-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--brand);
  text-decoration: none;
  padding: 0.35rem 0.75rem;
  border: 1.5px solid var(--gray-200);
  border-radius: var(--radius);
}
.detail__related-link:hover {
  border-color: var(--brand);
  background: rgba(196, 30, 42, 0.06);
}
.detail__related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}
.detail__related-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--white);
}
.detail__related-card:hover {
  border-color: var(--brand);
  box-shadow: var(--shadow);
}
.detail__related-card-img-wrap {
  display: block;
  aspect-ratio: 4/3;
  background: var(--gray-100);
  overflow: hidden;
}
.detail__related-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.detail__related-card-title {
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.3;
  padding: 0.5rem;
  color: var(--gray-800);
}

.modelo-landing__intro {
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--gray-700);
  margin: 0 0 1.25rem;
  max-width: 52rem;
}
.seo-template-box {
  background: var(--gray-100);
  border: 1px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  font-size: 0.88rem;
  line-height: 1.5;
}
.seo-template-box code {
  display: block;
  margin-top: 0.5rem;
  padding: 0.65rem 0.85rem;
  background: var(--white);
  border-radius: 6px;
  font-size: 0.95rem;
}
