body {
  min-height: 100vh;
}

/* ——— Ficha de producto (todas las URLs /producto/…) ——— */
.product-page {
  padding: 2rem 0 3.5rem;
  background: linear-gradient(180deg, #f6f8fa 0%, #fafcfd 28%, #ffffff 100%);
}

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(260px, 340px);
  gap: 1.75rem 2rem;
  align-items: start;
}

.product-detail,
.product-sidebar__box,
.checklist-card {
  background: #fff;
  border: 1px solid rgba(76, 143, 169, 0.09);
  border-radius: 18px;
  box-shadow: 0 6px 28px rgba(15, 37, 64, 0.05);
}

.product-detail {
  padding: 1.65rem 1.65rem 2rem;
}

.product-detail__hero {
  display: grid;
  grid-template-columns: minmax(200px, 300px) minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
  margin-bottom: 1.75rem;
}

.product-detail__media {
  background: linear-gradient(160deg, #f0f4f7 0%, #e8eef2 100%);
  border-radius: 14px;
  padding: 0.85rem;
  border: 1px solid rgba(76, 143, 169, 0.07);
}

.product-detail__figure {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  max-height: min(42vh, 400px);
}

.product-detail__figure img {
  width: auto;
  max-width: 100%;
  max-height: min(42vh, 400px);
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  margin-inline: auto;
}

.product-detail__eyebrow,
.checklist-eyebrow {
  color: var(--color-primary-dark);
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
  opacity: 0.92;
}

.product-detail__summary h1 {
  font-size: clamp(1.25rem, 2.1vw, 1.85rem);
  font-weight: 600;
  line-height: 1.38;
  letter-spacing: -0.015em;
  margin-bottom: 0.85rem;
  color: var(--color-heading, #2c3338);
}

.checklist-header h1 {
  font-size: clamp(1.75rem, 2.5vw, 2.5rem);
  line-height: 1.2;
  margin-bottom: 1rem;
  font-weight: 700;
  color: var(--color-heading, #333);
}

.product-detail__intro,
.category-intro,
.checklist-header p {
  color: #5a6570;
  font-size: 1.0625rem;
  line-height: 1.68;
  max-width: 58ch;
}

.product-detail__bullets {
  margin: 1.1rem 0 1.35rem;
  padding-left: 1.1rem;
  max-width: 58ch;
  list-style-position: outside;
}

.product-detail__bullets li {
  margin-bottom: 0.45rem;
  line-height: 1.58;
  color: #4d565d;
}

.product-detail__bullets li::marker {
  color: rgba(76, 143, 169, 0.65);
}

.product-detail__actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.product-page .product-detail__actions .btn {
  padding: 0.65rem 1.15rem;
  font-size: 0.9375rem;
  font-weight: 600;
}

.product-page .product-detail__actions .btn-primary {
  box-shadow: 0 2px 10px rgba(76, 143, 169, 0.22);
}

.product-page .product-detail__actions .btn-primary:hover {
  box-shadow: 0 4px 14px rgba(76, 143, 169, 0.28);
}

.btn.btn-secondary {
  background: #eef5f8;
  color: var(--color-primary-dark);
  border: 1px solid rgba(76, 143, 169, 0.18);
}

.btn.btn-secondary:hover {
  background: #e3edf2;
}

/* Títulos de sección dentro de la ficha */
.product-detail__section {
  margin-top: 0.25rem;
}

.product-detail__section-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin: 0 0 0.85rem;
  padding-bottom: 0.45rem;
  border-bottom: 1px solid rgba(76, 143, 169, 0.12);
  letter-spacing: -0.01em;
}

.product-detail__section--related {
  margin-top: 1.75rem;
}

/* Cuerpo importado (HTML WordPress): ritmo calmado y ancho de lectura */
.product-detail__prose {
  font-size: 1.0625rem;
  line-height: 1.72;
  color: #4a5560;
  max-width: 65ch;
}

.product-detail__content p {
  margin-bottom: 0.95rem;
}

.product-detail__prose p:last-child {
  margin-bottom: 0;
}

.product-detail__prose ul,
.product-detail__prose ol {
  margin: 0.65rem 0 1rem;
  padding-left: 1.2rem;
}

.product-detail__prose li {
  margin-bottom: 0.45rem;
  line-height: 1.65;
}

.product-detail__prose li::marker {
  color: rgba(76, 143, 169, 0.55);
}

.product-detail__prose strong,
.product-detail__prose b {
  font-weight: 600;
  color: #3d454c;
}

.product-detail__prose a {
  text-decoration: underline;
  text-underline-offset: 2px;
  text-decoration-color: rgba(76, 143, 169, 0.45);
}

.product-detail__prose a:hover {
  text-decoration-color: var(--color-primary);
}

.product-detail__prose h3,
.product-detail__prose h4 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 1.35rem 0 0.5rem;
  color: var(--color-primary-dark);
}

.product-detail__prose table {
  width: 100%;
  max-width: 100%;
  border-collapse: collapse;
  font-size: 0.9375rem;
  margin: 1rem 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(76, 143, 169, 0.1);
}

.product-detail__prose th,
.product-detail__prose td {
  padding: 0.55rem 0.75rem;
  border: 1px solid rgba(76, 143, 169, 0.1);
  text-align: left;
}

.product-detail__prose th {
  background: #f0f5f8;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.product-detail__prose img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.75rem 0;
}

/* Barra lateral en ficha */
.product-page .cta-box {
  background: linear-gradient(165deg, #f4f8fb 0%, #eef4f8 100%);
  border: 1px solid rgba(76, 143, 169, 0.1);
  box-shadow: 0 4px 20px rgba(15, 37, 64, 0.04);
  padding: 1.35rem 1.25rem;
  border-radius: 14px;
  margin-top: 0;
}

.product-page .cta-box h3 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-primary-dark);
  margin-bottom: 0.65rem;
}

.product-page .cta-box p {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #555;
  margin-bottom: 0.75rem;
}

.product-sidebar__box h3 {
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--color-primary-dark);
}

.product-sidebar {
  display: grid;
  gap: 1.25rem;
}

.product-sidebar__box {
  padding: 1.5rem;
}

.product-sidebar__list {
  list-style: none;
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
}

.product-grid--compact .product-card__img img,
.product-card picture img {
  width: 100%;
  max-height: 220px;
  object-fit: contain;
  background: #fff;
}

.page-section--category,
.checklist-shell {
  max-width: 1100px;
  margin: 0 auto;
}

.category-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin-top: 1.25rem;
}

.checklist-page {
  background: linear-gradient(180deg, #f3f8fb 0%, #ffffff 100%);
}

.checklist-shell {
  padding: 2rem 1rem 4rem;
}

.checklist-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.checklist-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.checklist-card {
  padding: 1.5rem;
  margin-bottom: 1rem;
}

.checklist-card h2 {
  margin-bottom: 1rem;
  color: var(--color-primary-dark);
}

.checklist-card label {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 0.85rem;
  cursor: pointer;
}

.checklist-card input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin-top: 0.2rem;
}

.contact-form__notice {
  margin-bottom: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid rgba(76, 143, 169, 0.18);
  background: #edf6fa;
  color: var(--color-primary-dark);
}

@media (max-width: 900px) {
  .product-layout,
  .product-detail__hero,
  .checklist-header {
    grid-template-columns: 1fr;
    display: grid;
  }

  .product-detail,
  .product-sidebar__box {
    padding: 1.5rem;
  }

  .product-detail__figure {
    max-height: min(48vh, 360px);
  }

  .product-detail__figure img {
    max-height: min(48vh, 360px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-page .product-detail__actions .btn {
    transition: none;
  }
}

@media print {
  .checklist-actions,
  .whatsapp-float,
  .scroll-to-top {
    display: none !important;
  }

  .checklist-page {
    background: #fff;
  }

  .checklist-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* ——— Página de error 404 (ErrorDocument) ——— */
.page-error-404 .error-page {
  padding-bottom: 2rem;
}

.page-error-404 .error-page__code {
  font-size: clamp(3rem, 11vw, 5.5rem);
  font-weight: 700;
  line-height: 1;
  margin: 0 0 0.35rem;
  letter-spacing: -0.03em;
  color: rgba(15, 37, 64, 0.12);
}

.page-error-404 .error-page__actions {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.page-error-404 .error-page__actions .btn {
  margin-inline-end: 0;
}
