﻿:root {
  font-family: Inter, "Segoe UI", sans-serif;
  color: #251819;
  background: #faf8f7;
  --ink: #251819;
  --red: #b21d2c;
  --red-hover: #971624;
  --edge: #e8dcdc;
  --muted: #675455;
  --blush: #f6eaea;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #d73542; outline-offset: 3px; }
.wrap { width: min(1180px, calc(100% - 48px)); margin: auto; }
.bar { color: var(--ink); background: #fff; border-bottom: 1px solid var(--edge); position: sticky; top: 0; z-index: 2; }
.nav { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 20px; }
.nav nav { display: flex; gap: 28px; }
.nav nav a, .brand { text-decoration: none; }
.nav nav a:hover { color: var(--red); text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-size: 1.43rem; font-weight: 850; letter-spacing: -.065em; line-height: 1; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .61rem; letter-spacing: .2em; text-transform: uppercase; }
.brand-mark { flex: 0 0 42px; width: 42px; height: 42px; border-radius: 50%; background: #f4fafb url("/genesis-logo.jpg") center -4px / 60px auto no-repeat; }
.cart-trigger { gap: 9px; }
.cart-count { min-width: 24px; padding: 2px 6px; border-radius: 30px; background: #fff; color: var(--red-hover); line-height: 1.25; }
.hero { background: radial-gradient(ellipse at 92% 10%, #63222d, #2a151b 57%, #21131a); color: #fff; overflow: hidden; }
.hero-inner { display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 44px; padding-block: 61px; }
.eyebrow { text-transform: uppercase; font-weight: 800; letter-spacing: .12em; font-size: .78rem; color: var(--red-hover); margin: 0 0 10px; }
.hero .eyebrow { color: #ffb6bb; }
h1, h2, h3, p { margin-top: 0; }
h1 { font-size: clamp(2.8rem, 6vw, 5.55rem); line-height: .99; letter-spacing: -.075em; margin-bottom: 22px; }
h2 { font-size: clamp(2rem, 4vw, 3.35rem); letter-spacing: -.055em; margin-bottom: 10px; line-height: 1.05; }
h3 { font-size: 1.15rem; line-height: 1.25; margin-bottom: 9px; }
.hero p:not(.eyebrow) { color: #f2dfe1; font-size: 1.13rem; max-width: 35ch; margin-bottom: 26px; line-height: 1.5; }
.hero .button { background: #fff; color: var(--red-hover); }
.hero .button:hover { background: #ffe3e5; }
.hero-visual { display: grid; grid-template-columns: minmax(0, 1fr) minmax(88px, 30%); align-items: center; gap: clamp(10px, 1.7vw, 22px); }
.hero-logo { width: 100%; height: auto; display: block; border-radius: 13px; }
.showcase { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.showcase img { width: 100%; height: clamp(94px, 11vw, 140px); object-fit: contain; background: #fff; border-radius: 14px; padding: 9px; }
.button, .outline, .chip { border-radius: 9px; padding: 10px 16px; border: 1px solid var(--edge); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; color: var(--ink); background: #fff; min-height: 42px; }
.button { background: var(--red); border-color: transparent; color: white; padding: 11px 17px; }
.button:hover { background: var(--red-hover); }
.outline:hover, .chip:hover { border-color: var(--red); }
.chip { border-radius: 100px; white-space: nowrap; font-size: .91rem; }
.chip[aria-pressed=true] { background: var(--red); color: white; border-color: var(--red); }
.section { padding-block: 56px; }
#catalogo, #contacto { scroll-margin-top: 78px; }
.section-head, .contact-inner { display: flex; align-items: end; justify-content: space-between; gap: 22px; }
.search { width: min(100%, 325px); }
label { display: grid; gap: 6px; font-size: .92rem; font-weight: 650; }
input, textarea { background: #fff; color: var(--ink); border: 1px solid #cbbaba; border-radius: 8px; padding: 10px 12px; width: 100%; min-width: 0; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 25px 0 15px; }
.muted, small { color: var(--muted); }
.grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.card, .panel, .inquiry { background: #fff; border: 1px solid var(--edge); border-radius: 15px; overflow: hidden; }
.card { display: flex; flex-direction: column; }
.photo { height: 180px; background: #fff; display: grid; place-items: center; border-bottom: 1px solid var(--edge); }
.photo img { max-height: 155px; max-width: 90%; object-fit: contain; }
.card-info { padding: 15px; display: flex; flex-direction: column; flex: 1; }
.detail { white-space: pre-line; overflow-wrap: anywhere; color: var(--muted); font-size: .92rem; line-height: 1.45; margin-bottom: 10px; }
.detail:empty { display: none; }
.price { font-weight: 800; margin: 0 0 7px; }
.availability { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.actions { margin-top: auto; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.actions a { width: 100%; font-size: .85rem; }
.actions button { padding-inline: 11px; }
#more { margin-top: 20px; }
.contact { background: var(--blush); padding-block: 50px; }
.contact-inner { align-items: center; }
.contact a { display: inline-block; margin-bottom: 8px; }
.footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 24px; }
.footer a { font-size: .9rem; }
dialog { width: min(500px, calc(100% - 25px)); border: 1px solid var(--edge); border-radius: 18px; padding: 27px; color: var(--ink); }
dialog::backdrop { background: #211219a8; }
dialog h2 { padding-right: 25px; font-size: 1.7rem; }
.close { position: absolute; right: 14px; top: 12px; border: 0; background: transparent; font-size: 1.7rem; min-width: 36px; min-height: 36px; }
.panel, dialog form { display: grid; gap: 13px; }
.panel { max-width: 420px; padding: 20px; }
.admin-heading { font-size: clamp(2.5rem, 5vw, 4rem); }
.admin-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; border-bottom: 1px solid var(--edge); padding: 10px 0; }
.admin-row small, .inquiry small, .cart-row small { display: block; margin-top: 4px; }
.inquiry { padding: 15px; margin-bottom: 12px; }
.inquiry .detail { margin-top: 12px; }
.inquiry button { margin-left: 8px; }
.cart-dialog { margin: 0 0 0 auto; border-radius: 16px 0 0 16px; width: min(100%, 490px); max-height: 100dvh; height: 100dvh; padding: 0; }
.cart-dialog[open] { display: flex; flex-direction: column; }
.cart-header, .cart-footer { padding: 22px; }
.cart-header { border-bottom: 1px solid var(--edge); }
.cart-header p { margin-bottom: 0; }
.cart-list { list-style: none; margin: 0; padding: 0 22px; overflow-y: auto; }
.cart-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; padding-block: 15px; border-bottom: 1px solid var(--edge); overflow-wrap: anywhere; }
.cart-controls { display: flex; gap: 7px; align-items: center; }
.cart-controls .outline { min-width: 36px; min-height: 36px; padding: 0 8px; }
.cart-quantity { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-remove { color: var(--red-hover); background: none; border: 0; text-decoration: underline; padding: 8px; }
.cart-footer { display: grid; gap: 8px; margin-top: auto; border-top: 1px solid var(--edge); }
.cart-footer p { margin-bottom: 0; }
#cart-announcement:empty { display: none; }
#cart-announcement:not(:empty) { position: fixed; margin: 0; z-index: 3; right: 16px; bottom: 16px; max-width: min(350px, calc(100% - 32px)); border-radius: 10px; padding: 10px 15px; background: var(--ink); color: #fff; pointer-events: none; }
@media (max-width: 950px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 700px) {
  .wrap { width: calc(100% - 30px); }
  .nav { min-height: 70px; }
  .nav nav { gap: 12px; font-size: .9rem; }
  .hero-inner { gap: 26px; grid-template-columns: 1fr; padding-block: 33px; }
  .hero-visual { width: min(100%, 390px); }
  .hero-logo { max-height: 160px; width: auto; max-width: 100%; object-fit: contain; }
  .showcase img { height: 80px; }
  .section { padding-block: 34px; }
  .section-head, .contact-inner { align-items: start; flex-direction: column; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .photo { height: 125px; }
  .photo img { max-height: 105px; }
  .card-info { padding: 11px; }
}
@media (max-width: 470px) { .nav nav { display: none; } }
@media (max-width: 360px) { .grid { grid-template-columns: 1fr; } }
img[src="/fotos/856.jpg"], img[src="/fotos/856.png"] { transform: rotate(180deg); }
