@font-face { font-family: "Fredoka"; src: url("/identidad-visual/fonts/Fredoka-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Fredoka"; src: url("/identidad-visual/fonts/Fredoka-Bold.ttf") format("truetype"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/identidad-visual/fonts/Poppins-Regular.ttf") format("truetype"); font-display: swap; }
@font-face { font-family: "Poppins"; src: url("/identidad-visual/fonts/Poppins-SemiBold.ttf") format("truetype"); font-weight: 600; font-display: swap; }

:root {
  --order-yellow: #fcd144;
  --order-green: #88af39;
  --order-dark: #173c2a;
  --order-coral: #e85f52;
  --order-ink: #17211b;
  --order-muted: #667169;
  --order-line: #dfe5df;
  --order-surface: #ffffff;
  --order-soft: #f5f8f2;
}

html { scroll-padding-top: 90px; }
.order-page { background: #fbfcf8; color: var(--order-ink); min-height: 100vh; padding-bottom: env(safe-area-inset-bottom); }
button, input, textarea { font: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(136, 175, 57, .48); outline-offset: 2px; }

.order-header {
  position: sticky; top: 0; z-index: 50; height: 72px; padding: 8px max(18px, calc((100vw - 1440px) / 2));
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--order-line); display: flex; align-items: center; justify-content: space-between;
}
.order-brand img { width: 164px; max-height: 48px; object-fit: contain; }
.order-header-actions { display: flex; align-items: center; gap: 8px; }
.icon-link, .header-cart { width: 44px; height: 44px; border: 0; background: transparent; color: var(--order-dark); display: grid; place-items: center; position: relative; }
.icon-link svg, .header-cart svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.header-cart span { position: absolute; top: 2px; right: 0; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--order-coral); color: #fff; font: 700 11px/20px Poppins, sans-serif; }

.order-layout { width: min(1440px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 32px; padding: 22px 24px 72px; align-items: start; }
.catalog-column { min-width: 0; }
.menu-intro { min-height: 310px; background: var(--order-yellow); display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 42%); overflow: hidden; border-radius: 8px; }
.menu-intro > div { padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: center; }
.menu-kicker { color: var(--order-dark); font-weight: 700; text-transform: uppercase; font-size: 12px; margin-bottom: 8px; }
.menu-intro h1 { font-size: clamp(42px, 6rem, 72px); line-height: .95; color: var(--order-dark); margin: 0 0 16px; letter-spacing: 0; }
.menu-intro p:last-child { max-width: 560px; font-size: 18px; line-height: 1.5; color: #284633; }
.menu-intro picture, .menu-intro img { width: 100%; height: 100%; min-height: 310px; object-fit: cover; }

.catalog-nav { position: sticky; top: 72px; z-index: 30; display: flex; gap: 8px; padding: 12px 0; background: #fbfcf8; overflow-x: auto; scrollbar-width: none; }
.catalog-nav::-webkit-scrollbar { display: none; }
.catalog-nav a { flex: 0 0 auto; padding: 9px 14px; border: 1px solid var(--order-line); border-radius: 6px; background: #fff; color: var(--order-dark); font-size: 13px; font-weight: 600; }
.catalog-nav a:hover { border-color: var(--order-green); background: var(--order-soft); }
.menu-status { min-height: 26px; margin: 4px 0 8px; color: var(--order-muted); font-size: 13px; }
.session-context { margin: 14px 0 4px; padding: 14px 16px; border-block: 1px solid var(--order-line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(180px, auto); gap: 20px; background: #fff; }
.session-context[hidden] { display: none; }
.session-context div { min-width: 0; display: grid; gap: 2px; }
.session-context span { color: var(--order-coral); font-size: 10px; font-weight: 700; text-transform: uppercase; }
.session-context strong { color: var(--order-dark); font-size: 14px; overflow-wrap: anywhere; }
.session-context small { color: var(--order-muted); font-size: 11px; overflow-wrap: anywhere; }
.menu-status.is-error { color: #a83b32; }

.catalog-section { padding: 48px 0 20px; border-top: 1px solid var(--order-line); }
.catalog-section:first-of-type { border-top: 0; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-heading > div:first-child { display: flex; align-items: baseline; gap: 12px; }
.section-number { color: var(--order-coral); font-weight: 700; font-size: 12px; }
.section-heading h2 { margin: 0; color: var(--order-dark); font-size: clamp(27px, 4vw, 38px); letter-spacing: 0; }
.section-heading p { color: var(--order-muted); font-size: 14px; }

.season-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.season-card { display: grid; grid-template-columns: 43% minmax(0, 1fr); min-height: 250px; border: 1px solid var(--order-line); background: var(--order-surface); border-radius: 8px; overflow: hidden; }
.season-card-media { position: relative; background: var(--order-soft); }
.season-card-media img { width: 100%; height: 100%; object-fit: cover; }
.season-card-body { padding: 20px; display: flex; flex-direction: column; min-width: 0; }
.season-card h3 { font-size: 24px; color: var(--order-dark); margin: 0 0 7px; overflow-wrap: anywhere; }
.season-description { color: var(--order-muted); font-size: 13px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.season-ingredients { display: flex; gap: 4px; margin: 14px 0; min-height: 30px; overflow: hidden; }
.season-ingredients img { width: 29px; height: 29px; border: 1px solid #e9ece7; border-radius: 50%; background: #fff; object-fit: contain; padding: 2px; flex: 0 0 auto; }
.season-card-footer { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.season-price { font-weight: 700; color: var(--order-dark); font-size: 17px; }
.add-command, .primary-command, .checkout-command, .whatsapp-command { border: 0; border-radius: 6px; font-weight: 700; min-height: 44px; }
.add-command { width: 44px; background: var(--order-yellow); color: var(--order-dark); font-size: 24px; }
.add-command:hover { background: #efbf25; }
.add-command.is-added { background: var(--order-green); color: #fff; }

.custom-section { scroll-margin-top: 122px; }
.builder-price { color: var(--order-dark); font: 700 22px Fredoka, sans-serif; }
.builder-progress { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; margin-bottom: 24px; }
.builder-step { border: 1px solid var(--order-line); background: #fff; color: var(--order-muted); border-radius: 6px; min-height: 52px; padding: 7px 5px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; }
.builder-step img { width: 23px; height: 23px; object-fit: contain; }
.builder-step.is-active { border-color: var(--order-green); background: var(--order-soft); color: var(--order-dark); }
.builder-step.is-complete { background: var(--order-dark); color: #fff; border-color: var(--order-dark); }
.builder-toolbar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.builder-toolbar > div { display: flex; align-items: baseline; gap: 10px; }
.builder-toolbar strong { color: var(--order-dark); font-size: 19px; }
.builder-toolbar span { color: var(--order-muted); font-size: 12px; }
.text-action { border: 0; background: transparent; color: var(--order-coral); font-size: 13px; font-weight: 600; padding: 8px; }
.ingredient-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; min-height: 284px; align-content: start; }
.ingredient-card { position: relative; min-height: 132px; border: 1px solid var(--order-line); background: #fff; border-radius: 7px; padding: 11px 8px 8px; display: grid; grid-template-rows: 58px auto auto; justify-items: center; text-align: center; }
.ingredient-card.is-selected { border-color: var(--order-green); box-shadow: inset 0 0 0 1px var(--order-green); background: #fbfff5; }
.ingredient-card img { width: 58px; height: 58px; object-fit: contain; }
.ingredient-card strong { font-size: 12px; line-height: 1.25; margin-top: 4px; overflow-wrap: anywhere; }
.ingredient-card small { color: var(--order-muted); font-size: 11px; }
.ingredient-stepper { position: absolute; inset: auto 5px 5px; height: 34px; display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; background: rgba(255,255,255,.96); border-top: 1px solid var(--order-line); }
.ingredient-stepper button { width: 32px; height: 30px; border: 0; background: transparent; color: var(--order-dark); font-size: 20px; }
.ingredient-stepper span { font-weight: 700; font-size: 13px; }
.ingredient-card:not(.is-selected) .ingredient-stepper .minus { visibility: hidden; }
.builder-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.secondary-command { min-height: 44px; border: 1px solid var(--order-line); background: #fff; border-radius: 6px; color: var(--order-dark); font-weight: 600; }
.primary-command { background: var(--order-dark); color: #fff; }
.primary-command:disabled, .checkout-command:disabled { opacity: .45; cursor: not-allowed; }

.drink-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.drink-card { display: grid; grid-template-columns: 70px minmax(0, 1fr) 44px; align-items: center; gap: 12px; min-height: 88px; padding: 10px; border: 1px solid var(--order-line); background: #fff; border-radius: 7px; }
.drink-card img { width: 64px; height: 64px; object-fit: contain; }
.drink-card strong { display: block; font-size: 13px; color: var(--order-dark); }
.drink-card span { color: var(--order-muted); font-size: 12px; }

.cart-panel { position: sticky; top: 94px; min-height: 430px; border: 1px solid var(--order-line); border-radius: 8px; background: #fff; padding: 22px; }
.cart-heading, .sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-bottom: 16px; border-bottom: 1px solid var(--order-line); }
.cart-heading span, .sheet-head span { color: var(--order-muted); font-size: 11px; font-weight: 600; text-transform: uppercase; }
.cart-heading h2, .sheet-head h2 { margin: 1px 0 0; color: var(--order-dark); font-size: 28px; }
.cart-count-label { text-transform: none !important; }
.cart-items { display: flex; flex-direction: column; max-height: min(46vh, 520px); overflow-y: auto; }
.cart-line { display: grid; grid-template-columns: 58px minmax(0, 1fr) auto; gap: 10px; padding: 14px 0; border-bottom: 1px solid var(--order-line); align-items: center; }
.cart-line img { width: 58px; height: 58px; border-radius: 6px; object-fit: cover; background: var(--order-soft); }
.cart-line strong { display: block; color: var(--order-dark); font-size: 13px; line-height: 1.3; overflow-wrap: anywhere; }
.cart-line small { color: var(--order-muted); font-size: 11px; }
.line-stepper { display: grid; grid-template-columns: 30px 24px 30px; align-items: center; justify-items: center; margin-top: 5px; }
.line-stepper button { width: 28px; height: 28px; border: 1px solid var(--order-line); background: #fff; border-radius: 4px; color: var(--order-dark); }
.line-remove { width: 34px; height: 34px; border: 0; background: transparent; color: var(--order-coral); font-size: 20px; }
.cart-empty { padding: 42px 16px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; color: var(--order-muted); }
.cart-empty img { opacity: .72; }
.cart-empty[hidden] { display: none; }
.cart-totals { padding: 16px 0; }
.cart-totals div, .checkout-summary { display: flex; justify-content: space-between; align-items: center; color: var(--order-dark); }
.cart-totals strong { font-size: 21px; }
.cart-totals small { display: block; color: var(--order-muted); font-size: 11px; margin-top: 4px; }
.checkout-command { width: 100%; background: var(--order-dark); color: #fff; }
.checkout-command:not(:disabled):hover { background: #0e2f20; }

.mobile-cart-bar { display: none; }
dialog { border: 0; padding: 0; color: var(--order-ink); }
dialog::backdrop { background: rgba(17, 30, 23, .62); }
.sheet-dialog { width: min(520px, 100%); max-height: 88vh; margin: auto 0 0 auto; border-radius: 8px 8px 0 0; padding: 22px max(18px, env(safe-area-inset-right)) calc(22px + env(safe-area-inset-bottom)); }
.dialog-close { width: 42px; height: 42px; border: 0; background: var(--order-soft); border-radius: 50%; color: var(--order-dark); font-size: 26px; }

.checkout-dialog { width: min(600px, calc(100% - 24px)); max-height: calc(100vh - 24px); border-radius: 8px; margin: auto; }
.checkout-dialog form { padding: 24px; overflow-y: auto; max-height: calc(100vh - 24px); }
.field-label, .payment-fieldset legend { display: block; color: var(--order-dark); font-size: 12px; font-weight: 700; margin: 16px 0 7px; }
.field-label-row { display: flex; align-items: end; justify-content: space-between; gap: 12px; }
.location-action { border: 0; background: transparent; color: var(--order-green); padding: 7px 0; font-size: 12px; font-weight: 700; }
.checkout-dialog input[type="text"], .checkout-dialog input[type="date"], .checkout-dialog input:not([type]), .checkout-dialog textarea, .address-control input { width: 100%; min-height: 48px; border: 1px solid #cbd4cc; border-radius: 6px; background: #fff; color: var(--order-ink); padding: 11px 13px; }
.checkout-dialog select { width: 100%; min-height: 48px; border: 1px solid #cbd4cc; border-radius: 6px; background: #fff; color: var(--order-ink); padding: 11px 13px; }
.schedule-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 12px; }
.schedule-grid .field-label { margin-top: 16px; }
.schedule-grid input, .schedule-grid select { font-variant-numeric: tabular-nums; }
.schedule-grid select:disabled { background: #f2f4f2; color: var(--order-muted); }
.checkout-dialog textarea { resize: vertical; min-height: 72px; }
.address-control { display: grid; grid-template-columns: minmax(0, 1fr) 48px; }
.address-control input { border-radius: 6px 0 0 6px; }
.address-control button { border: 1px solid #cbd4cc; border-left: 0; border-radius: 0 6px 6px 0; background: var(--order-soft); color: var(--order-dark); display: grid; place-items: center; }
.address-control svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.field-feedback { min-height: 19px; color: var(--order-muted); font-size: 11px; margin-top: 4px; }
.field-feedback.is-ok { color: #46751d; }
.field-feedback.is-error, .form-error { color: #a83b32; }
.payment-fieldset { border: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; }
.payment-fieldset legend { width: 100%; }
.payment-fieldset input { position: absolute; opacity: 0; pointer-events: none; }
.payment-fieldset span { min-height: 44px; border: 1px solid var(--order-line); border-radius: 6px; display: grid; place-items: center; color: var(--order-dark); font-size: 12px; font-weight: 600; }
.payment-fieldset input:checked + span { background: var(--order-dark); color: #fff; border-color: var(--order-dark); }
.checkout-summary { margin-top: 20px; padding: 14px 0; border-top: 1px solid var(--order-line); border-bottom: 1px solid var(--order-line); }
.checkout-summary strong { font-size: 22px; }
.privacy-note { color: var(--order-muted); font-size: 10px; line-height: 1.5; margin: 12px 0; }
.privacy-note a { text-decoration: underline; color: var(--order-dark); }
.form-error { min-height: 20px; font-size: 12px; }
.whatsapp-command { width: 100%; background: #148943; color: #fff; display: flex; align-items: center; justify-content: center; gap: 9px; }
.whatsapp-command svg { width: 22px; height: 22px; fill: currentColor; }

@media (max-width: 1120px) {
  .order-layout { grid-template-columns: minmax(0, 1fr) 320px; gap: 20px; }
  .season-grid { grid-template-columns: 1fr; }
  .ingredient-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .drink-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .order-header { height: 64px; padding-inline: 14px; }
  .order-brand img { width: 142px; }
  .order-layout { display: block; padding: 12px 12px 104px; }
  .session-context { grid-template-columns: 1fr; gap: 10px; }
  .cart-panel { display: none; }
  .menu-intro { min-height: 235px; grid-template-columns: 58% 42%; }
  .menu-intro > div { padding: 24px 18px; }
  .menu-intro h1 { font-size: 40px; }
  .menu-intro p:last-child { font-size: 14px; }
  .menu-intro picture, .menu-intro img { min-height: 235px; }
  .catalog-nav { top: 64px; }
  .mobile-cart-bar { position: fixed; z-index: 45; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); min-height: 56px; padding: 0 18px; border: 0; border-radius: 7px; background: var(--order-dark); color: #fff; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 12px 28px rgba(23,60,42,.28); }
  .mobile-cart-bar:disabled { transform: translateY(90px); opacity: 0; pointer-events: none; }
  .mobile-cart-bar span { display: flex; gap: 5px; }
  .header-cart { display: grid; }
}

@media (max-width: 600px) {
  .menu-intro { grid-template-columns: 1fr; }
  .menu-intro picture { height: 150px; }
  .menu-intro picture, .menu-intro img { min-height: 150px; }
  .section-heading { align-items: start; flex-direction: column; gap: 6px; }
  .section-heading > div:first-child { align-items: start; }
  .section-heading p { margin-left: 28px; }
  .catalog-section { padding-top: 38px; }
  .season-card { grid-template-columns: 40% minmax(0, 1fr); min-height: 218px; }
  .season-card-body { padding: 14px; }
  .season-card h3 { font-size: 20px; }
  .season-description { -webkit-line-clamp: 2; }
  .season-ingredients { margin: 9px 0; }
  .season-ingredients img { width: 25px; height: 25px; }
  .ingredient-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 284px; }
  .ingredient-card { min-height: 132px; }
  .builder-step { min-height: 48px; font-size: 9px; }
  .builder-step img { width: 20px; height: 20px; }
  .drink-grid { grid-template-columns: 1fr; }
  .checkout-dialog { width: 100%; max-height: 94vh; margin: auto 0 0; border-radius: 8px 8px 0 0; }
  .checkout-dialog form { max-height: 94vh; padding: 18px; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
  .schedule-grid { grid-template-columns: 1fr; gap: 0; }
}

@media (prefers-reduced-motion: no-preference) {
  .add-command, .primary-command, .checkout-command, .mobile-cart-bar { transition: transform .16s ease, background-color .16s ease, opacity .2s ease; }
  .add-command:active, .primary-command:active, .checkout-command:active { transform: scale(.97); }
}
