/* Bloques de precios orientativos (v1). Archivo aparte para que el caché de style.css no interfiera. */
.price-section { padding-block: 2.5rem; }
.price-section h2 { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 2.4vw, 2rem); }
.price-box {
  max-width: 720px; margin-inline: auto; padding: 1.5rem;
  background: var(--color-surface); border: 1px solid var(--color-border); border-radius: var(--radius);
}
.price-table-wrap { overflow-x: auto; margin-bottom: 1.25rem; }
.price-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--color-bg); border-radius: 8px; overflow: hidden; }
.price-table caption { text-align: left; font-weight: 600; color: var(--color-dark); padding: 0 0 .5rem; }
.price-table th, .price-table td { padding: .65rem .9rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.price-table thead th { background: var(--color-tint); color: var(--color-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .04em; }
.price-table tbody th { font-weight: 500; color: var(--color-text); }
.price-table td { font-weight: 600; color: var(--color-dark); }
.price-table tbody tr:last-child th, .price-table tbody tr:last-child td { border-bottom: 0; }
.price-table-small { font-size: .9rem; }
.price-table-small td, .price-table-small th { padding: .5rem .75rem; }
.price-note { color: var(--color-text-secondary); font-size: .92rem; line-height: 1.55; margin: 0 0 1.25rem; }
.price-note-lead { color: var(--color-text); font-size: 1rem; }
.price-updated { white-space: nowrap; }
.price-checklist { margin: 0 0 1.5rem 1.1rem; padding: 0; line-height: 1.6; }
.price-checklist li { margin-bottom: .5rem; }
.price-box .hero-actions { margin-top: .25rem; }

/* Calculadora */
.price-calc-intro { margin: 0 0 1rem; color: var(--color-text-secondary); }
.price-calc-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .9rem; margin-bottom: 1.25rem; }
.price-calc-form label { display: flex; flex-direction: column; gap: .35rem; font-size: .85rem; color: var(--color-text-secondary); }
.price-calc-form select, .price-calc-form input {
  font: inherit; font-size: 1rem; padding: .6rem .7rem; border: 1px solid var(--color-border); border-radius: 8px;
  background: var(--color-bg); color: var(--color-text); min-height: 44px;
}
.price-calc-form select:focus-visible, .price-calc-form input:focus-visible { outline: 2px solid var(--color-mid); outline-offset: 1px; }
.price-calc-form label:first-child { grid-column: 1 / -1; }
.price-calc-result { background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 10px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.price-calc-label { margin: 0; font-size: .8rem; text-transform: uppercase; letter-spacing: .05em; color: var(--color-text-secondary); }
.price-calc-amount { margin: .15rem 0 .35rem; font-size: 2rem; font-weight: 700; color: var(--color-dark); font-variant-numeric: tabular-nums; }
.price-calc-detail { margin: 0; font-size: .9rem; color: var(--color-text-secondary); line-height: 1.5; }
@media (max-width: 480px) { .price-box { padding: 1.1rem; } .price-table th, .price-table td { padding: .55rem .6rem; } }

/* Maquetación común de la cabecera de producto: foto a la izquierda, texto a la derecha */
.service-detail-photo.photo-portrait img { aspect-ratio: 3 / 4; }
.service-detail-photo.photo-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.service-detail-photo.photo-pair img { aspect-ratio: 9 / 16; }
.service-detail-text .compare-highlights { justify-content: flex-start; }
.service-detail-photo .compare-slider { box-shadow: none; }

/* Visor de fotos (clic para ampliar) */
.lb-enabled { cursor: zoom-in; }
.lb-enabled:focus-visible { outline: 3px solid var(--color-mid); outline-offset: 2px; }
.lb { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 20, 15, .88); padding: 16px; cursor: zoom-out; }
.lb[hidden] { display: none; }
.lb-img { max-width: min(96vw, 1400px); max-height: 92vh; width: auto; height: auto; object-fit: contain;
  border-radius: 8px; background: #fff; cursor: default; box-shadow: 0 10px 40px rgba(0,0,0,.4); }
.lb-close { position: absolute; top: max(12px, env(safe-area-inset-top, 0px)); right: 12px; width: 44px; height: 44px;
  border: 0; border-radius: 50%; background: rgba(255,255,255,.95); color: #232823; font-size: 28px; line-height: 1; cursor: pointer; }
.lb-close:focus-visible { outline: 3px solid var(--color-mid); outline-offset: 2px; }
html.lb-open { overflow: hidden; }

/* Plantillas descargables en la página de producto */
.tpl-list { list-style: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: .6rem; }
.tpl-list li { display: flex; align-items: center; justify-content: space-between; gap: .75rem 1rem; flex-wrap: wrap;
  background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 10px; padding: .7rem .9rem; }
.tpl-name { display: flex; flex-direction: column; gap: .1rem; }
.tpl-dims { font-size: .85rem; color: var(--color-text-secondary); font-variant-numeric: tabular-nums; }
.tpl-list .btn { white-space: nowrap; }

/* Vídeo al principio de la guía */
.video-top { padding-block: 8px 0; }
.video-top-text { text-align: center; font-size: 1.15rem; line-height: 1.5; color: var(--color-dark); max-width: 640px; margin: 18px auto 8px; }

/* Banner de descuentos por cantidad (calculadora de lonas y vinilos) */
.price-disc-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1rem; background: linear-gradient(135deg, var(--color-dark), var(--color-mid)); color: #fff; border-radius: 12px; padding: 1rem 1.1rem; margin-bottom: 1.25rem; }
.price-disc-banner h3 { flex: 1 1 220px; margin: 0; color: #fff; font-size: 1.2rem; line-height: 1.3; }
.price-disc-badges { display: flex; gap: .6rem; }
.price-disc-badge { display: flex; flex-direction: column; align-items: center; background: #fff; color: var(--color-dark); border-radius: 10px; padding: .45rem .85rem; line-height: 1.1; animation: price-disc-pulse 2.4s ease-in-out infinite; }
.price-disc-badge + .price-disc-badge { animation-delay: 1.2s; }
.price-disc-badge strong { font-size: 1.6rem; }
.price-disc-badge span { font-size: .75rem; font-weight: 600; }
.price-disc-banner p { flex: 1 1 100%; margin: 0; font-size: .9rem; color: #fff; opacity: .95; }
@keyframes price-disc-pulse {
  0%, 60%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255, 255, 255, .65); }
  30% { transform: scale(1.08); box-shadow: 0 0 0 8px rgba(255, 255, 255, 0); }
}
@media (prefers-reduced-motion: reduce) { .price-disc-badge { animation: none; } }
.price-calc-nudge { margin: .45rem 0 0; font-size: .95rem; font-weight: 600; color: var(--color-dark); }
.price-calc-nudge:empty { display: none; }
.price-calc-nudge.is-saving { color: var(--color-mid); }

/* eyelets field (lona only) and pickup line, added 2026-10-30 */
.price-calc-form .pc-eyelets { grid-column: 1 / -1; }
.price-calc-form .pc-eyelets[hidden] { display: none; }
.price-calc-form .pc-eyelets small { font-size: .8rem; line-height: 1.4; color: var(--color-text-secondary); }
.price-pickup { margin: .75rem 0 1.25rem; font-size: .85rem; line-height: 1.5; color: var(--color-text-secondary); }
.price-section { scroll-margin-top: 90px; }   /* so a #precios link doesn't hide the heading under the sticky header */
