:root {
  --ink: #171916;
  --muted: #70746b;
  --paper: #f4f4f0;
  --card: #ffffff;
  --line: #dedfd9;
  --green: #b5d83e;
  --green-dark: #8bad1d;
  --max-width: 1240px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: "DM Sans", sans-serif; }
a { color: inherit; text-decoration: none; }

.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.header-inner { align-items: center; display: grid; grid-template-columns: 1fr auto 1fr; margin: auto; max-width: var(--max-width); padding: 22px 32px; }
.brand { align-items: center; display: inline-flex; font-family: "Barlow Condensed", sans-serif; font-size: 1.55rem; font-weight: 800; gap: 12px; letter-spacing: .08em; }
.brand-logo { border: 1px solid var(--line); border-radius: 50%; height: 38px; object-fit: cover; width: 38px; }
.main-nav { display: flex; gap: 30px; justify-content: center; }
.main-nav a, .header-bag { font-size: .76rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; transition: color .2s ease; }
.main-nav a:hover, .header-bag:hover { color: var(--green-dark); }
.header-actions { align-items: center; display: flex; gap: 20px; justify-self: end; }
.header-bag { justify-self: end; }
.login-link { font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.user-profile { align-items: center; display: flex; gap: 8px; }
.user-profile img { border-radius: 50%; height: 28px; object-fit: cover; width: 28px; }
.user-profile span, .user-profile a { font-size: .68rem; font-weight: 700; max-width: 110px; overflow: hidden; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.user-profile a { color: var(--muted); }
.profile-orders, .footer-link { background: none; border: 0; color: inherit; cursor: pointer; font-size: .68rem; font-weight: 700; padding: 0; text-transform: uppercase; }
.profile-orders:hover, .footer-link:hover { color: var(--green-dark); }
.header-bag span { color: var(--muted); font-weight: 400; margin-left: 6px; }

.hero { align-items: flex-end; background: linear-gradient(90deg, rgba(15, 17, 14, .73), rgba(15, 17, 14, .12)), url("Baner.jpg") center 45% / cover; color: white; display: flex; min-height: min(670px, 75vh); position: relative; }
.hero-content { margin: 0 auto; max-width: var(--max-width); padding: 80px 32px 76px; width: 100%; }
.eyebrow { font-size: .7rem; font-weight: 700; letter-spacing: .16em; margin: 0 0 18px; text-transform: uppercase; }
h1, h2, h3 { font-family: "Barlow Condensed", sans-serif; margin: 0; }
h1 { font-size: clamp(4rem, 10vw, 8.5rem); font-weight: 800; letter-spacing: -.035em; line-height: .82; text-transform: uppercase; }
h1.hero-title { font-size: 6.5rem; line-height: .9; }
h1 em, h2 em { color: var(--green); font-style: normal; }
.hero-copy { font-size: 1rem; line-height: 1.5; margin: 28px 0 25px; max-width: 355px; }
.hero-stamp { bottom: 37px; font-family: "Barlow Condensed", sans-serif; font-size: 2rem; font-weight: 800; line-height: .8; margin: 0; opacity: .8; position: absolute; right: 32px; text-align: right; }
.button { align-items: center; border: 0; display: inline-flex; font-size: .7rem; font-weight: 700; gap: 14px; justify-content: center; letter-spacing: .05em; min-height: 48px; padding: 0 20px; text-transform: uppercase; transition: background .2s ease, color .2s ease, transform .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-light { background: white; color: var(--ink); }
.button-light:hover { background: var(--green); }

.style-bar { align-items: center; border-bottom: 1px solid var(--line); display: flex; gap: 56px; justify-content: center; padding: 25px 32px; }
.style-bar .eyebrow { color: var(--muted); margin: 0; }
.style-links { display: flex; gap: 32px; }
.style-link { border-bottom: 2px solid transparent; font-size: .8rem; font-weight: 700; padding-bottom: 4px; text-transform: uppercase; }
.style-link span { color: var(--muted); font-size: .65rem; font-weight: 400; margin-left: 4px; }
.style-link:hover, .style-link.active { border-color: var(--green-dark); }

.catalog-section { margin: auto; max-width: var(--max-width); padding: 105px 32px 120px; }
.section-heading { align-items: end; display: flex; justify-content: space-between; margin-bottom: 44px; }
.section-heading h2 { font-size: clamp(2.7rem, 5vw, 4.6rem); letter-spacing: -.02em; line-height: .85; text-transform: uppercase; }
.section-intro { color: var(--muted); font-size: .9rem; line-height: 1.6; margin: 0; max-width: 275px; }
.product-grid { display: grid; gap: 45px 18px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-card { min-width: 0; transition: transform .3s ease; }
.product-card:hover { transform: translateY(-8px); }
.product-image { aspect-ratio: 4 / 3; background: #e4e4de; overflow: hidden; position: relative; }
.product-image img { display: block; height: 100%; object-fit: contain; transition: transform .5s ease; width: 100%; }
.product-card:hover .product-image img { transform: scale(1.04); }
.product-tag { background: var(--green); font-size: .62rem; font-weight: 700; left: 12px; letter-spacing: .08em; line-height: 1.2; max-width: calc(100% - 24px); padding: 7px 9px; position: absolute; text-transform: uppercase; top: 12px; z-index: 1; }
.product-info { display: flex; flex-direction: column; gap: 19px; padding-top: 16px; }
.product-type { color: var(--muted); font-size: .65rem; letter-spacing: .08em; margin: 0 0 7px; text-transform: uppercase; }
.product-info h3 { font-size: 1.65rem; letter-spacing: .01em; line-height: .9; text-transform: uppercase; }
.price { color: var(--muted); font-size: .82rem; margin: 9px 0 0; }
.button-green { background: var(--green); color: var(--ink); width: 100%; }
.button-green:hover { background: var(--green-dark); }

.trust-strip { background: var(--green); display: grid; grid-template-columns: repeat(3, 1fr); margin: 0; padding: 30px max(32px, calc((100vw - var(--max-width)) / 2)); }
.trust-strip div { align-items: center; border-right: 1px solid rgba(23, 25, 22, .22); display: flex; gap: 15px; justify-content: center; }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.7rem; }
.trust-strip span { font-size: .76rem; font-weight: 700; text-transform: uppercase; }
.statement { background: var(--ink); color: white; padding: 105px 32px; text-align: center; }
.statement .eyebrow { color: var(--green); }
.statement h2 { font-size: clamp(3.6rem, 8vw, 7rem); letter-spacing: -.03em; line-height: .82; text-transform: uppercase; }
.site-footer { align-items: center; display: flex; gap: 28px; justify-content: space-between; margin: auto; max-width: var(--max-width); padding: 34px 32px; }
.site-footer p, .site-footer a { color: var(--muted); font-size: .75rem; margin: 0; }
.site-footer a:hover { color: var(--ink); }

@media (max-width: 900px) {
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero { min-height: 620px; }
  .style-bar { gap: 32px; }
  .style-links { gap: 20px; }
}

@media (max-width: 600px) {
  .header-inner { grid-template-columns: 1fr auto; padding: 18px 20px; }
  .brand-logo { height: 32px; width: 32px; }
  .main-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; margin-top: 18px; }
  .header-actions { gap: 10px; grid-column: 2; grid-row: 1; }
  .user-profile span { display: none; }
  .hero-content, .catalog-section { padding-left: 20px; padding-right: 20px; }
  .hero { min-height: 590px; }
  h1.hero-title { font-size: 2.2rem; }
  .hero-content { padding-bottom: 52px; }
  .hero-stamp { bottom: 25px; right: 20px; }
  .style-bar { align-items: flex-start; flex-direction: column; gap: 18px; padding: 22px 20px; }
  .style-links { flex-wrap: wrap; gap: 16px 22px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 25px; margin-bottom: 34px; }
  .section-intro { max-width: 330px; }
  .product-grid { gap: 38px 12px; grid-template-columns: 1fr; }
  .product-info h3 { font-size: 1.7rem; }
  .trust-strip { gap: 22px; grid-template-columns: 1fr; padding: 28px 20px; }
  .trust-strip div { border-bottom: 1px solid rgba(23, 25, 22, .22); border-right: 0; justify-content: flex-start; padding-bottom: 18px; }
  .trust-strip div:last-child { border-bottom: 0; padding-bottom: 0; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 14px; padding: 30px 20px; }
}

button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
.header-bag { background: none; border: 0; color: inherit; }
.button-dark { background: var(--ink); color: white; width: 100%; }
.button-dark:hover { background: #394037; }
.button:disabled { cursor: not-allowed; opacity: .4; transform: none; }
.cart-drawer { background: var(--card); box-shadow: -10px 0 40px rgba(23, 25, 22, .14); display: none; flex-direction: column; height: 100vh; max-width: 430px; padding: 34px; position: fixed; right: 0; top: 0; transform: translateX(105%); transition: transform .3s ease; width: 100%; z-index: 20; }
.cart-drawer.is-open { display: flex; transform: translateX(0); }
.drawer-head { align-items: flex-start; display: flex; justify-content: space-between; }
.drawer-head h2, .ticket-chat h2, .admin-chat h2 { font-size: 2.5rem; line-height: .9; text-transform: uppercase; }
.icon-button { background: none; border: 0; font-size: 2rem; line-height: 1; }
.cart-items { flex: 1; overflow-y: auto; padding: 28px 0; }
.cart-row { align-items: flex-start; border-bottom: 1px solid var(--line); display: flex; gap: 14px; padding: 15px 0; }
.cart-row img { background: #e4e4de; height: 78px; object-fit: contain; width: 78px; }
.cart-row strong, .cart-row span { display: block; }
.cart-row strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.25rem; text-transform: uppercase; }
.cart-row span { color: var(--muted); font-size: .78rem; margin-top: 4px; }
.cart-footer { background: var(--card); }
.quantity { align-items: center; display: flex; gap: 12px; margin-top: 14px; }
.quantity button { background: var(--paper); border: 0; height: 25px; width: 25px; }
.quantity .remove { background: none; color: var(--muted); font-size: .65rem; margin-left: 6px; text-decoration: underline; width: auto; }
.cart-breakdown { padding: 12px 0; }
.cart-breakdown > div, .checkout-summary > div { align-items: center; display: flex; font-size: .78rem; justify-content: space-between; padding: 5px 0; }
.cart-breakdown .cart-summary, .checkout-summary .checkout-total { border-top: 1px solid var(--ink); font-weight: 700; margin-top: 8px; padding-top: 12px; }
.cart-summary, .summary-total { align-items: center; border-top: 1px solid var(--ink); display: flex; justify-content: space-between; padding: 18px 0; }
.cart-summary strong, .summary-total strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.8rem; }
.security-note { color: var(--muted); font-size: .7rem; line-height: 1.5; margin: 12px 0 0; }
.checkout-summary { background: var(--paper); margin: 20px 0; padding: 12px 16px; }
.modal-backdrop { align-items: center; background: rgba(23, 25, 22, .6); display: none; inset: 0; justify-content: center; opacity: 0; pointer-events: none; position: fixed; transition: opacity .2s ease; z-index: 30; }
.modal-backdrop.is-open { display: flex; opacity: 1; pointer-events: auto; }
.modal { background: var(--card); max-height: 90vh; max-width: 530px; overflow-y: auto; padding: 34px; transform: translateY(12px); transition: transform .2s ease; width: calc(100% - 32px); }
.modal-backdrop.is-open .modal { transform: translateY(0); }
.login-modal { position: relative; }
.login-modal h2 { font-size: 3.8rem; line-height: .85; text-transform: uppercase; }
.modal-close { position: absolute; right: 22px; top: 18px; }
.modal label { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .07em; margin-top: 18px; text-transform: uppercase; }
.modal input, .modal textarea, .message-form input, .admin-chat select { background: var(--paper); border: 1px solid var(--line); border-radius: 0; display: block; margin-top: 8px; padding: 13px; width: 100%; }
.modal textarea { min-height: 84px; resize: vertical; }
.modal .button { margin-top: 24px; }
.orders-modal, .terms-modal { max-width: 650px; }
.orders-list { display: flex; flex-direction: column; gap: 2px; margin-top: 24px; }
.my-order { align-items: center; background: var(--paper); display: flex; gap: 20px; justify-content: space-between; padding: 18px; }
.my-order h3 { font-size: 1.7rem; text-transform: uppercase; }
.my-order time { color: var(--muted); display: block; font-size: .72rem; margin-top: 6px; }
.my-order .eyebrow { margin-bottom: 6px; }
.my-order-meta { align-items: flex-end; display: flex; flex-direction: column; gap: 8px; }
.my-order-meta > strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.35rem; }
.order-state { align-items: center; display: flex; font-size: .68rem; font-weight: 700; gap: 7px; text-transform: uppercase; }
.order-state.pendiente { color: var(--green-dark); }.order-state.pagado { color: #5d9c66; }.order-state.enviado { color: #5484a4; }.order-state.cancelado { color: #b34c45; }
.my-order .button { min-height: 38px; padding: 0 14px; }
.terms-content { color: var(--muted); font-size: .85rem; line-height: 1.65; margin-top: 25px; }
.terms-content h3 { color: var(--ink); font-size: 1.45rem; margin: 24px 0 5px; text-transform: uppercase; }
.terms-content p { margin: 0 0 12px; }
.muted, .form-error { color: var(--muted); font-size: .8rem; line-height: 1.5; }
.form-error { color: #b33a35; min-height: 1.2em; }
.empty-state { color: var(--muted); font-size: .85rem; line-height: 1.5; }
.order-page, .admin-page { margin: auto; max-width: var(--max-width); padding: 52px 32px 110px; }
.back-link { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.order-layout { display: grid; gap: 60px; grid-template-columns: minmax(0, 1fr) 360px; padding: 72px 0 55px; }
.order-page h1, .admin-page h1 { font-size: clamp(4rem, 9vw, 8rem); line-height: .78; text-transform: uppercase; }
.order-lead { color: var(--muted); font-size: 1rem; margin: 28px 0 30px; }
.order-status { align-items: center; display: flex; font-size: .78rem; gap: 10px; text-transform: uppercase; }
.order-status strong { margin-left: 6px; }
.status-dot { background: var(--green-dark); border-radius: 50%; display: inline-block; height: 9px; width: 9px; }
.status-dot.pagado { background: #5d9c66; }.status-dot.enviado { background: #5484a4; }.status-dot.cancelado { background: #b34c45; }
.payment-note { background: var(--green); margin-top: 58px; max-width: 500px; padding: 28px; }
.payment-note h3 { font-size: 1.8rem; text-transform: uppercase; }.payment-note p { font-size: .85rem; line-height: 1.7; }.payment-note small { font-size: .73rem; }
.order-card { align-self: start; background: var(--ink); color: white; padding: 30px; }.order-card .eyebrow { color: var(--green); }.summary-row { border-bottom: 1px solid rgba(255,255,255,.18); display: flex; font-size: .78rem; justify-content: space-between; padding: 15px 0; }.summary-total { border-color: white; margin-top: 10px; }.customer-data { color: #b9beb5; font-size: .78rem; line-height: 1.7; margin: 30px 0 0; }.customer-data strong { color: white; }
.ticket-chat { background: white; border-top: 1px solid var(--line); padding-top: 34px; }.chat-head { align-items: flex-end; display: flex; justify-content: space-between; }.live-indicator { color: var(--green-dark); font-size: .72rem; font-weight: 700; }.messages { background: var(--paper); display: flex; flex-direction: column; gap: 10px; height: 340px; margin: 25px 0 0; overflow-y: auto; padding: 20px; }.message { background: white; max-width: 78%; padding: 13px 15px; }.message.customer { align-self: flex-start; }.message.admin { align-self: flex-end; background: var(--green); }.message p { font-size: .85rem; margin: 0 0 6px; white-space: pre-wrap; }.message a { font-size: .74rem; font-weight: 700; text-decoration: underline; }.message time { color: var(--muted); display: block; font-size: .65rem; margin-top: 8px; }.message-form { display: flex; gap: 8px; margin-top: 12px; }.message-form input { margin: 0; }.message-form .button { min-width: 120px; }.file-button { align-items: center; background: var(--paper); display: flex; font-size: 1.5rem; justify-content: center; width: 48px; }.file-button input { display: none; }
.admin-body { background: var(--paper); }.admin-body > .site-header, .admin-body > .site-footer, .admin-body > .cart-drawer, .admin-body > .modal-backdrop { display: none !important; }.admin-top { align-items: flex-end; display: flex; justify-content: space-between; }.admin-toolbar { align-items: center; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-top: 60px; padding-bottom: 15px; }.filter-tabs { display: flex; gap: 20px; }.filter { background: none; border: 0; border-bottom: 2px solid transparent; font-size: .72rem; font-weight: 700; padding: 8px 0; text-transform: uppercase; }.filter.active { border-color: var(--green-dark); }.admin-toolbar > span { color: var(--muted); font-size: .75rem; }.admin-content { display: grid; gap: 18px; grid-template-columns: minmax(280px, .8fr) 1.4fr; margin-top: 20px; }.order-list { display: flex; flex-direction: column; gap: 2px; }.order-list-item { align-items: center; background: white; border: 0; display: flex; gap: 12px; justify-content: flex-start; padding: 18px; text-align: left; }.order-list-item:hover { background: var(--green); }.order-list-item > span:nth-child(2) { display: flex; flex: 1; flex-direction: column; gap: 5px; }.order-list-item strong { font-family: "Barlow Condensed", sans-serif; font-size: 1.3rem; }.order-list-item small { color: var(--muted); font-size: .7rem; }.order-list-item b { font-size: .75rem; }.admin-chat { background: white; min-height: 560px; padding: 26px; }.admin-chat-head { align-items: flex-start; display: flex; justify-content: space-between; }.admin-chat-head .eyebrow { margin-bottom: 8px; }.admin-chat select { margin: 0; width: auto; }
@media (max-width: 700px) { .cart-drawer { padding: 24px 20px; }.order-page, .admin-page { padding-left: 20px; padding-right: 20px; }.order-layout, .admin-content { grid-template-columns: 1fr; padding-top: 48px; }.payment-note { margin-top: 40px; }.admin-toolbar { align-items: flex-start; flex-direction: column; gap: 15px; margin-top: 40px; }.filter-tabs { flex-wrap: wrap; gap: 8px 16px; }.admin-top { align-items: flex-start; flex-direction: column; gap: 25px; }.admin-chat { min-height: 500px; padding: 18px; }.chat-head, .admin-chat-head { align-items: flex-start; flex-direction: column; gap: 15px; }.message-form .button { min-width: 82px; padding: 0 10px; }.message-form .button span { display: none; } }
@media (max-width: 768px) {
  .cart-footer { background: var(--card); bottom: 0; box-shadow: 0 -8px 18px rgba(23, 25, 22, .08); padding: 8px 0 max(8px, env(safe-area-inset-bottom)); position: sticky; z-index: 25; }
  .cart-footer .button { min-height: 56px; }
  .cart-summary { padding: 14px 0; }
  .my-order { align-items: flex-start; flex-direction: column; gap: 14px; }
  .my-order-meta { align-items: stretch; width: 100%; }
  .my-order-meta .button { width: 100%; }
  .site-footer .footer-link { text-align: left; }
}
