/* ============================================================
   RAMBLA — pages.css
   Estilos para páginas interiores (no redefine header/footer).
   Lenguaje visual cálido escandinavo, todo redondeado, sobre tokens.
   ============================================================ */

/* ---------- Offset por header fijo ---------- */
.page { padding-top: clamp(5.5rem, 9vw, 7rem); }

/* ============================================================
   BREADCRUMB
   ============================================================ */
.breadcrumb { padding: 1rem 0 .2rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-family: var(--font-round); font-weight: 600; font-size: .85rem; }
.breadcrumb a { color: var(--muted); transition: color var(--t-fast) var(--ease); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb li { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); }
.breadcrumb li::after { content: "›"; color: var(--line); }
.breadcrumb li:last-child::after { content: none; }
.breadcrumb li[aria-current] { color: var(--text); }

/* ============================================================
   PAGE HERO — encabezado de página interior
   ============================================================ */
.page-hero { background: var(--grad-hero); position: relative; overflow: hidden; border-radius: 0 0 var(--r-xl) var(--r-xl); }
.page-hero::before { content: ""; position: absolute; inset: 0; background-image: url('img/pattern.png'); background-size: 520px; opacity: .05; pointer-events: none; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero__inner { max-width: 760px; padding: clamp(1.6rem, 4vw, 3rem) 0 clamp(2.4rem, 5vw, 3.6rem); }
.page-hero h1 { font-size: var(--fs-h1); letter-spacing: -.02em; margin-bottom: .7rem; }
.page-hero h1 em { font-style: italic; color: var(--accent-2); }
.page-hero__lead { color: var(--muted); font-size: 1.15rem; max-width: 60ch; }
.page-hero--salvia { background: var(--grad-leaf); color: #fff; }
.page-hero--salvia h1 { color: #fff; }
.page-hero--salvia h1 em { color: var(--accent-3); }
.page-hero--salvia .page-hero__lead { color: rgba(255,255,255,.85); }
.page-hero--salvia .breadcrumb a, .page-hero--salvia .breadcrumb li { color: rgba(255,255,255,.78); }
.page-hero--salvia .breadcrumb li::after { color: rgba(255,255,255,.4); }
.page-hero--salvia .breadcrumb a:hover { color: #fff; }
.page-hero--salvia .eyebrow { background: rgba(255,255,255,.18); color: #fff; }

/* ============================================================
   PROSE / ARTÍCULO
   ============================================================ */
.prose { max-width: 70ch; }
.prose > * + * { margin-top: 1.1rem; }
.prose h2 { font-family: var(--font-display); font-size: var(--fs-h3); margin-top: 2.4rem; color: var(--text); }
.prose h2 em { font-style: italic; color: var(--accent-2); }
.prose h3 { font-family: var(--font-display); font-size: 1.2rem; margin-top: 1.6rem; }
.prose p { color: var(--text); }
.prose p.lead { font-size: 1.18rem; color: var(--muted); }
.prose ul { display: grid; gap: .6rem; }
.prose ul li { position: relative; padding-left: 1.6rem; color: var(--text); }
.prose ul li::before { content: ""; position: absolute; left: 0; top: .55em; width: 9px; height: 9px; background: var(--accent); border-radius: 0 60% 0 60%; transform: rotate(20deg); }
.prose strong { font-weight: 700; color: var(--text); }
.prose blockquote { border-left: 4px solid var(--accent); background: var(--surface); border-radius: var(--r-md); padding: 1.2rem 1.4rem; font-family: var(--font-display); font-style: italic; font-size: 1.15rem; box-shadow: var(--shadow-xs); }

/* Layout dos columnas para artículos con aside */
.article-grid { display: grid; grid-template-columns: 1.7fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.article-aside { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.6rem; box-shadow: var(--shadow-xs); position: sticky; top: 6rem; }
.article-aside h3 { font-size: 1.1rem; margin-bottom: .8rem; }
.article-aside ul { display: grid; gap: .55rem; }
.article-aside a { color: var(--muted); font-family: var(--font-round); font-weight: 600; font-size: .92rem; transition: color var(--t-fast) var(--ease); }
.article-aside a:hover { color: var(--accent); }

/* ============================================================
   FEATURE GRID — bloques de característica
   ============================================================ */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.3rem; }
.feature-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 1.8rem; box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.feature-card__ico { width: 56px; height: 56px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 1rem; }
.feature-card__ico svg { width: 28px; height: 28px; }
.feature-card h3 { font-size: 1.2rem; margin-bottom: .4rem; }
.feature-card p { color: var(--muted); font-size: .95rem; }
.feature-card:nth-child(3n+2) .feature-card__ico { background: var(--accent-2-soft); color: var(--accent-2); }
.feature-card:nth-child(3n) .feature-card__ico { background: var(--pastel-amarillo); color: #b9892a; }

/* ============================================================
   STAT CARDS (banda de números reutilizable)
   ============================================================ */
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.1rem; }
.stat-band .stat-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.8rem 1.4rem; text-align: center; box-shadow: var(--shadow-xs); }
.stat-band .num { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem,4vw,2.8rem); color: var(--text); line-height: 1; }
.stat-band .num .suffix { color: var(--accent-2); }
.stat-band .lbl { color: var(--muted); font-size: .95rem; margin-top: .5rem; }

/* ============================================================
   SPEC TABLE / GEOMETRY TABLE
   ============================================================ */
.spec-table, .geometry-table, .size-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); border: 1px solid var(--line); }
.spec-table caption, .geometry-table caption, .size-table caption { text-align: left; font-family: var(--font-round); font-weight: 700; color: var(--muted); font-size: .85rem; padding: 0 0 .7rem; }
.spec-table th, .spec-table td,
.geometry-table th, .geometry-table td,
.size-table th, .size-table td { padding: .9rem 1.1rem; text-align: left; font-size: .95rem; border-bottom: 1px solid var(--line); }
.spec-table th { width: 42%; font-family: var(--font-round); font-weight: 700; color: var(--muted); }
.spec-table td { font-weight: 500; }
.geometry-table thead th, .size-table thead th { background: var(--accent-soft); color: var(--accent-deep); font-family: var(--font-round); font-weight: 700; }
.geometry-table tbody th, .size-table tbody th { font-family: var(--font-round); font-weight: 700; background: var(--surface-2); }
.geometry-table tr:last-child td, .geometry-table tr:last-child th,
.size-table tr:last-child td, .size-table tr:last-child th,
.spec-table tr:last-child td, .spec-table tr:last-child th { border-bottom: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-lg); }

/* ============================================================
   TEAM GRID — comunidad / equipo
   ============================================================ */
.team-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.team-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); transition: transform var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease); }
.team-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.team-card__photo { aspect-ratio: 4/3; overflow: hidden; }
.team-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }
.team-card:hover .team-card__photo img { transform: scale(1.05); }
.team-card__body { padding: 1.3rem 1.4rem 1.5rem; }
.team-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; }
.team-card__role { font-family: var(--font-round); font-weight: 600; color: var(--accent); font-size: .88rem; margin: .15rem 0 .6rem; }
.team-card p { color: var(--muted); font-size: .92rem; }

/* ============================================================
   FAQ / ACCORDION
   ============================================================ */
.faq { display: grid; gap: .9rem; max-width: 820px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow-xs); overflow: hidden; }
.faq__item summary { cursor: pointer; list-style: none; padding: 1.2rem 1.4rem; font-family: var(--font-display); font-weight: 700; font-size: 1.08rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: var(--r-pill); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 1.3rem; font-family: var(--font-round); transition: transform var(--t-base) var(--ease), background var(--t-fast) var(--ease); }
.faq__item[open] summary::after { transform: rotate(45deg); background: var(--accent); color: #fff; }
.faq__item .faq__body { padding: 0 1.4rem 1.3rem; color: var(--muted); }
.faq__item .faq__body p + p { margin-top: .7rem; }

/* ============================================================
   SIZE PILLS / COLOR DOTS
   ============================================================ */
.size-pills, .color-dots { display: flex; flex-wrap: wrap; gap: .6rem; }
.size-pill { font-family: var(--font-round); font-weight: 700; font-size: .92rem; padding: .55rem 1.1rem; border-radius: var(--r-pill); background: var(--surface); border: 2px solid var(--line); color: var(--text); cursor: default; }
.size-pill[aria-disabled="true"] { opacity: .4; text-decoration: line-through; }
.size-pill.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }
.color-dots { gap: .7rem; }
.color-dot { display: inline-flex; flex-direction: column; align-items: center; gap: .35rem; font-family: var(--font-round); font-weight: 600; font-size: .76rem; color: var(--muted); }
.color-dot .swatch { width: 36px; height: 36px; border-radius: 50%; border: 2px solid var(--line); box-shadow: var(--shadow-xs); }
.color-dot.is-active .swatch { border-color: var(--text); box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }

/* ============================================================
   CONTACT FORM
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(1.6rem, 4vw, 3rem); align-items: start; }
.contact-form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); padding: clamp(1.6rem, 4vw, 2.4rem); box-shadow: var(--shadow-sm); display: grid; gap: 1rem; }
.field { display: grid; gap: .4rem; }
.field label { font-family: var(--font-round); font-weight: 700; font-size: .9rem; }
.field input, .field select, .field textarea { width: 100%; padding: .85rem 1.1rem; border-radius: var(--r-md); border: 2px solid var(--line); background: var(--bg); font-family: var(--font-body); font-size: 1rem; color: var(--text); transition: border-color var(--t-fast) var(--ease); }
.field textarea { border-radius: var(--r-md); min-height: 130px; resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: none; border-color: var(--accent); }
.field--row { grid-template-columns: 1fr 1fr; display: grid; gap: 1rem; }
.form-msg { font-family: var(--font-round); font-weight: 600; color: var(--accent); min-height: 1.2em; }
.contact-info { display: grid; gap: 1.1rem; align-content: start; }
.contact-info__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-xs); display: flex; gap: 1rem; align-items: flex-start; }
.contact-info__ico { flex: none; width: 48px; height: 48px; border-radius: var(--r-md); background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; }
.contact-info__ico svg { width: 24px; height: 24px; }
.contact-info__card h3 { font-size: 1.05rem; margin-bottom: .2rem; }
.contact-info__card p, .contact-info__card a { color: var(--muted); font-size: .92rem; }
.contact-info__card a:hover { color: var(--accent); }

/* ============================================================
   STORE GRID (tarjetas de sucursal — versión página)
   ============================================================ */
.store-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.4rem; }
.store-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; transition: transform var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease); }
.store-tile:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.store-tile__media { aspect-ratio: 16/9; overflow: hidden; }
.store-tile__media img { width: 100%; height: 100%; object-fit: cover; }
.store-tile__body { padding: 1.4rem 1.5rem 1.6rem; display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.store-tile__city { font-family: var(--font-round); font-weight: 700; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.store-tile h3 { font-size: 1.3rem; }
.store-tile p { color: var(--muted); font-size: .93rem; }
.store-tile .store-hours { font-family: var(--font-round); font-weight: 600; color: var(--accent-2); font-size: .88rem; }
.store-tile .store-tile__cta { margin-top: auto; padding-top: .8rem; }

/* ============================================================
   PRODUCT DETAIL — galería + info (2 columnas)
   ============================================================ */
.product-detail { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(1.6rem, 4vw, 3.2rem); align-items: start; }
.product-gallery { display: grid; gap: 1rem; position: sticky; top: 6rem; }
.product-gallery__main { border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--shadow-md); background: var(--surface-2); position: relative; }
.product-gallery__main img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.product-gallery__badge { position: absolute; top: 1rem; left: 1rem; z-index: 2; font-family: var(--font-round); font-weight: 700; font-size: .68rem; letter-spacing: .1em; background: var(--text); color: var(--bg); padding: .32rem .7rem; border-radius: var(--r-pill); text-transform: uppercase; }
.product-gallery__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .8rem; }
.product-gallery__thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: var(--r-md); box-shadow: var(--shadow-xs); border: 2px solid var(--line); }

.product-info__type { font-family: var(--font-round); font-weight: 600; font-size: .8rem; }
.product-info h1 { font-size: clamp(2rem, 4vw, 2.8rem); letter-spacing: -.02em; margin: .5rem 0 .3rem; }
.product-info h1 em { font-style: italic; color: var(--accent-2); }
.product-info__blurb { color: var(--muted); font-size: 1.1rem; margin-bottom: 1.2rem; }
.product-info__price { display: flex; align-items: baseline; gap: .6rem; margin-bottom: 1.4rem; }
.product-info__price .from { font-size: .8rem; color: var(--muted); }
.product-info__price .amount { font-family: var(--font-display); font-weight: 700; font-size: 2.2rem; color: var(--text); }
.product-info__chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.4rem; }
.product-info__group { margin-bottom: 1.4rem; }
.product-info__group h2 { font-family: var(--font-round); font-weight: 700; font-size: .82rem; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: .7rem; }
.product-info__actions { display: flex; flex-wrap: wrap; gap: .7rem; margin: 1.6rem 0 1rem; }
.product-info__note { color: var(--muted); font-size: .85rem; }
.product-features { display: grid; gap: .7rem; margin-top: 1rem; }
.product-features li { display: flex; gap: .7rem; align-items: flex-start; color: var(--text); font-size: .95rem; }
.product-features li svg { flex: none; width: 20px; height: 20px; color: var(--accent); margin-top: .15rem; }

/* ============================================================
   RELATED GRID — modelos relacionados
   ============================================================ */
.related-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
.related-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-xs); transition: transform var(--t-base) var(--ease-soft), box-shadow var(--t-base) var(--ease); }
.related-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); }
.related-card img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.related-card__body { padding: 1rem 1.1rem 1.2rem; }
.related-card__name { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; }
.related-card__price { font-family: var(--font-round); font-weight: 700; color: var(--accent-2); font-size: .92rem; margin-top: .2rem; }

/* ============================================================
   CTA BAND — banda de llamada a la acción
   ============================================================ */
.cta-band { background: var(--grad-calido); border-radius: var(--r-xl); padding: clamp(2.2rem, 5vw, 3.6rem); text-align: center; box-shadow: var(--shadow-md); position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; inset: 0; background: url('img/pattern.png') center/360px; opacity: .06; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: var(--fs-h2); margin-bottom: .6rem; }
.cta-band h2 em { font-style: italic; color: var(--accent-2); }
.cta-band p { color: var(--muted); max-width: 540px; margin: 0 auto 1.6rem; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: .8rem; justify-content: center; }
.cta-band--salvia { background: var(--grad-leaf); color: #fff; }
.cta-band--salvia h2 { color: #fff; }
.cta-band--salvia h2 em { color: var(--accent-3); }
.cta-band--salvia p { color: rgba(255,255,255,.86); }

/* ============================================================
   COLECCIÓN — encabezado + filtros estáticos
   ============================================================ */
.collection-bar { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; margin-bottom: 2rem; }
.collection-bar .chip-filter { font-family: var(--font-round); font-weight: 700; font-size: .9rem; padding: .55rem 1.2rem; border-radius: var(--r-pill); background: var(--surface); border: 2px solid var(--line); color: var(--text); }
.collection-bar .chip-filter.is-active { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-deep); }

/* ============================================================
   UTILIDADES de página
   ============================================================ */
.section-narrow { max-width: 920px; margin-inline: auto; }
.lead-center { text-align: center; max-width: 720px; margin: 0 auto 2.6rem; }
.lead-center .eyebrow { margin-bottom: 1rem; }
.divider-soft { height: 1px; background: var(--line); border: 0; margin: clamp(2rem,5vw,3.5rem) 0; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-band { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .article-aside { position: static; }
  .contact-grid { grid-template-columns: 1fr; }
  .product-detail { grid-template-columns: 1fr; }
  .product-gallery { position: static; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .store-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .field--row { grid-template-columns: 1fr; }
  .product-gallery__thumbs { grid-template-columns: repeat(4, 1fr); }
}
