/* Fase 8 · experiencia visual y compra (sin modificar lógica comercial).
   Cambios reversibles, carga al final de las hojas existentes. */
:root {
  --experience-ink: #2c312c;
  --experience-border: #dfe6dc;
  --experience-shadow: 0 14px 36px rgba(44, 49, 44, .075);
}

/* Legibilidad y controles principales. */
.site-header .header-search input { font-size: 14px; }
.site-header .header-search button { font-size: 12px; }
.site-header .header-location, .site-header .cart-label { font-size: 13px; }
.site-header .header-search:focus-within { box-shadow: 0 0 0 3px rgba(255, 152, 0, .19); }
.site-header .cart-trigger { transition: transform .2s ease, box-shadow .2s ease; }
.site-header .cart-trigger:hover { transform: translateY(-2px); box-shadow: 0 7px 20px #2c312c16; }

/* Portada editorial con dos caminos claros para descubrir y comprar. */
[data-page="home"] .hero-section { margin-top: 24px; }
[data-page="home"] .hero-slides { border-radius: 26px; box-shadow: var(--experience-shadow); }
[data-page="home"] .hero-slide { min-height: 500px; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); }
[data-page="home"] .hero-copy { padding: clamp(32px, 5vw, 76px); }
[data-page="home"] .hero-copy .eyebrow { font-size: 11px; letter-spacing: 1.5px; margin-bottom: 22px; }
[data-page="home"] .hero-copy h1 { font-size: clamp(54px, 5.2vw, 82px); line-height: 1.01; letter-spacing: -.055em; max-width: 620px; }
[data-page="home"] .hero-copy > p:not(.eyebrow) { font-size: 15px; max-width: 490px; line-height: 1.7; }
[data-page="home"] .hero-small { font-size: 12px; margin-top: 20px; }
[data-page="home"] .hero-small .icon { width: 18px; height: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.hero-actions .button { min-height: 50px; padding: 14px 22px; font-size: 14px; border-radius: 12px; gap: 15px; }
.hero-actions .hero-secondary-link { display: inline-flex; align-items: center; min-height: 50px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 12px; color: #fff; font-weight: 700; font-size: 13px; transition: background .2s ease; }
.hero-actions .hero-secondary-link:hover { background: rgba(255,255,255,.14); }
.hero-actions .hero-secondary-link:focus-visible { outline: 2px solid #ff9800; outline-offset: 3px; }
[data-page="home"] .hero-image > img { object-position: center 55%; }

/* Tres ventajas informativas, vinculadas a contenido real (sin promesas nuevas). */
.quick-paths { padding-top: 15px; }
.quick-paths-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.quick-path { display: flex; gap: 13px; align-items: center; min-width: 0; border: 1px solid #e2e8de; border-radius: 17px; padding: 16px 18px; background: #fafbf7; transition: transform .2s ease, border-color .2s ease; }
.quick-path:hover { border-color: #8f9b8b; transform: translateY(-2px); }
.quick-path-icon { display: grid; place-items: center; flex: 0 0 42px; height: 42px; border-radius: 13px; background: #e8f0e3; color: #2c312c; }
.quick-path-icon .icon { width: 22px; height: 22px; }
.quick-path:nth-child(2) .quick-path-icon { background: #fff0d8; }
.quick-path strong, .quick-path small { display: block; }
.quick-path strong { font-size: 14px; line-height: 1.35; }
.quick-path small { margin-top: 2px; font-size: 12px; line-height: 1.4; color: #545b51; }
.quick-path-arrow { margin-left: auto; color: #2c312c; font-size: 20px; flex: 0 0 auto; }

/* Secciones y categorías: más contraste, espacio y jerarquía. */
[data-page="home"] .categories-section { padding-top: 44px; }
.section-title { letter-spacing: -.035em; }
.section-subtitle { font-size: 13px; line-height: 1.6; }
.section-head .eyebrow { font-size: 10px; }
.category-card { background: #fff; border-color: #e8ece5; box-shadow: 0 5px 16px rgba(44,49,44,.035); transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.category-card:hover { transform: translateY(-4px); box-shadow: var(--experience-shadow); }
.category-label { font-size: 16px; font-weight: 750; }
.category-label small { font-size: 10px; letter-spacing: .09em; }
.category-card .category-image { height: 145px; }
.category-card .category-image::before { top: 14px; }

/* Fichas de productos compartidas entre inicio y los catálogos. */
.product-card { border-color: #e4e9e1; border-radius: 19px; box-shadow: 0 3px 12px rgba(44,49,44,.045); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.product-card:hover { transform: translateY(-4px); border-color: #c3d0bf; box-shadow: var(--experience-shadow); }
.product-visual { background: linear-gradient(170deg, #f9faf7 0%, #f1f5ed 100%); }
.product-img-link { height: 200px; padding: 28px 18px 16px; }
.product-img-link img { border-radius: 8px; }
.product-info { padding: 16px 17px 17px; }
.product-category { font-size: 11px; letter-spacing: .04em; }
.product-info h3 { font-size: 17px; line-height: 1.35; margin-bottom: 8px; }
.product-description { font-size: 12px; line-height: 1.65; }
.product-unit { font-size: 12px; }
.product-price strong { font-size: 23px; line-height: 1.2; }
.product-price small { font-size: 12px; }
.product-badge { border-radius: 999px; font-size: 10px; }
.product-card .add-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 45px; width: auto; height: auto; padding: 9px 13px; border-radius: 999px; font-size: 22px; font-weight: 650; }
.product-card .add-btn .add-btn-label { font-size: 12px; line-height: 1; font-weight: 750; }
.product-card .add-btn > span[aria-hidden] { font-size: 22px; line-height: 1; }
.product-bottom { gap: 10px; }
.product-quantity { border-color: #a7b7a1; }
.product-quantity button:focus-visible, .add-btn:focus-visible { outline-color: #2c312c; outline-offset: 3px; }
.product-consult { border-radius: 999px; padding-inline: 13px; font-size: 12px; }
.product-card.is-unavailable { opacity: .9; }
.product-carousel { padding-top: 8px; padding-bottom: 20px; }
.product-carousel > .product-card { flex-basis: calc((100% - 60px) / 4); }
.catalog-note { font-size: 12px; line-height: 1.5; }

/* Checkout: progreso visible y selección de modalidad más clara. */
[data-page="compra"] { background: #f8f9f5; }
.purchase-header { box-shadow: 0 4px 16px rgba(44,49,44,.04); }
.purchase-heading { max-width: 750px; }
.purchase-heading .eyebrow { font-size: 11px; }
.purchase-heading h1 { font-size: clamp(34px, 4.2vw, 50px); }
.purchase-steps button { border-color: #dce4d7; border-radius: 14px; font-size: 12px; background: #fff; transition: border-color .18s ease, background .18s ease; }
.purchase-steps button:not(:disabled):hover { border-color: #768c6e; }
.purchase-steps button > span:first-child { width: 29px; height: 29px; font-size: 12px; }
.purchase-panel, .purchase-summary { border-color: #e0e7dc; border-radius: 20px; box-shadow: 0 10px 28px rgba(44,49,44,.045); }
.purchase-panel h2, .purchase-summary h2 { font-size: 24px; }
.purchase-option { border: 1px solid #c5d0c0; border-radius: 15px; padding: 18px; transition: border-color .2s ease, background .2s ease; }
.purchase-option:has(input:checked) { background: #f0f5ea; border-color: #2c312c; }
.purchase-option strong { font-size: 16px; }
.purchase-field label { font-size: 14px; }
.purchase-field input, .purchase-field select, .purchase-field textarea { border-radius: 11px; min-height: 50px; }
.purchase-field input:focus-visible, .purchase-field select:focus-visible, .purchase-field textarea:focus-visible { box-shadow: 0 0 0 3px #ff980033; }
.purchase-actions .button { min-height: 50px; border-radius: 12px; font-size: 14px; }
.purchase-summary { background: #fff; }
.purchase-badge { border-radius: 999px; }

@media (max-width: 1100px) {
  .product-carousel > .product-card { flex-basis: calc((100% - 38px) / 3); }
  .quick-path { padding: 14px; gap: 10px; }
}
@media (max-width: 950px) {
  .quick-paths-grid { grid-template-columns: 1fr 1fr; }
  .quick-path:last-child { grid-column: 1 / -1; }
  .category-card .category-image { height: 126px; }
}
@media (max-width: 700px) {
  .container { width: calc(100% - 32px); }
  .topbar { font-size: 10px; line-height: 1.4; }
  .site-header .header-search { min-height: 46px; }
  .site-header .header-search input { font-size: 16px; }
  .site-header .header-search button { font-size: 12px; min-height: 36px; }
  [data-page="home"] .hero-section { margin-top: 14px; }
  [data-page="home"] .hero-slides { border-radius: 20px; }
  [data-page="home"] .hero-slide { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  [data-page="home"] .hero-copy { padding: 35px 27px 32px; }
  [data-page="home"] .hero-copy .eyebrow { font-size: 10px; margin-bottom: 17px; }
  [data-page="home"] .hero-copy h1 { font-size: clamp(45px, 12vw, 62px); letter-spacing: -.045em; margin-bottom: 15px; }
  [data-page="home"] .hero-copy > p:not(.eyebrow) { font-size: 14px; margin-bottom: 20px; }
  .hero-actions { width: 100%; gap: 10px; }
  .hero-actions .button { min-height: 48px; font-size: 13px; padding-inline: 18px; }
  .hero-actions .hero-secondary-link { min-height: 48px; font-size: 12px; }
  [data-page="home"] .hero-small { font-size: 11px; }
  [data-page="home"] .hero-image { height: 215px; }
  .quick-paths { padding-top: 12px; }
  .quick-paths-grid { grid-template-columns: 1fr; gap: 8px; }
  .quick-path:last-child { grid-column: auto; }
  .quick-path { padding: 11px 15px; border-radius: 14px; }
  .quick-path-icon { flex-basis: 38px; height: 38px; }
  .quick-path strong { font-size: 13px; }
  .quick-path small { font-size: 11px; }
  [data-page="home"] .categories-section { padding-top: 34px; }
  .section-head .eyebrow { font-size: 10px; }
  .section-title { font-size: clamp(25px, 6vw, 32px); }
  .section-subtitle { font-size: 12px; }
  .simple-link { font-size: 11px; }
  .category-card { font-size: 13px; border-radius: 15px; }
  .category-card .category-image { height: 72px; }
  .category-label { font-size: 14px; }
  .category-label small { font-size: 9px; }
  .product-carousel > .product-card { flex-basis: min(73vw, 252px); }
  .product-img-link { height: 184px; padding: 24px 18px 12px; }
  .product-info { padding: 14px; }
  .product-info h3 { font-size: 16px; }
  .product-category { font-size: 10px; }
  .product-description { font-size: 12px; }
  .product-unit { font-size: 11px; }
  .product-price strong { font-size: 22px; }
  .catalog-note { font-size: 11px; }
  .products-grid .product-card .product-bottom { display: grid; grid-template-columns: minmax(0, 1fr); align-items: stretch; }
  .products-grid .product-actions { width: 100%; }
  .products-grid .add-btn, .products-grid .product-consult, .products-grid .product-quantity { width: 100%; }
  .products-grid .add-btn { justify-content: center; }
  .purchase-steps { gap: 6px; }
  .purchase-steps button { font-size: 11px; min-height: 75px; }
  .purchase-panel, .purchase-summary { padding: 20px 17px; }
  .purchase-panel h2, .purchase-summary h2 { font-size: 22px; }
}
@media (max-width: 380px) {
  .hero-actions .button, .hero-actions .hero-secondary-link { width: 100%; justify-content: center; }
  .product-carousel > .product-card { flex-basis: min(82vw, 252px); }
  .quick-path-arrow { font-size: 17px; }
  .products-grid .product-price strong { font-size: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .quick-path, .product-card, .category-card, .site-header .cart-trigger { transition: none; }
  .quick-path:hover, .product-card:hover, .category-card:hover, .site-header .cart-trigger:hover { transform: none; }
}
