@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=Playfair+Display:ital,wght@0,400;0,600;0,700;1,400&display=swap');

:root {
  --cream: #FAF7F2;
  --cream-dark: #F0EBE3;
  --white: #FFFFFF;
  --black: #1A1A1A;
  --sage: #8BA888;
  --sage-dark: #6E8F6B;
  --strawberry: #D64550;
  --strawberry-light: #F4E0E2;
  --gold: #C9A96E;
  --mango: #F5A623;
  --kiwi: #7CB342;
  --shadow: 0 4px 24px rgba(26, 26, 26, 0.08);
  --shadow-lg: 0 12px 48px rgba(26, 26, 26, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --header-h: 64px;
  --mobile-bar-h: 76px;
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--black);
  line-height: 1.6;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  width: min(1140px, 92%);
  margin: 0 auto;
}

/* ── Header ── */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(250, 247, 242, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(139, 168, 136, 0.15);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo-img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.logo-img-sm {
  height: 40px;
  width: 40px;
}

.logo-img-lg {
  height: 110px;
  width: 110px;
  margin: 0 auto 20px;
  display: block;
}

.logo-img-footer {
  height: 72px;
  width: 72px;
  margin-bottom: 16px;
}

.logo-text p {
  font-size: 0.7rem;
  color: var(--sage);
  letter-spacing: 3px;
  text-transform: uppercase;
  font-weight: 600;
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-brand h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.footer-brand p {
  opacity: 0.7;
  font-size: 0.9rem;
  max-width: 280px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 32px;
}

.nav a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--black);
  opacity: 0.75;
  transition: var(--transition);
  position: relative;
}

.nav a:hover {
  opacity: 1;
  color: var(--sage-dark);
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--sage);
  transition: var(--transition);
}

.nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border: none;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.btn-header-order {
  display: none;
}

.btn-primary {
  background: var(--strawberry);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(214, 69, 80, 0.3);
}

.btn-primary:hover {
  background: #c03a44;
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(214, 69, 80, 0.4);
}

.btn-secondary {
  background: var(--sage);
  color: var(--white);
}

.btn-secondary:hover {
  background: var(--sage-dark);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--black);
  border: 2px solid var(--black);
}

.btn-outline:hover {
  background: var(--black);
  color: var(--white);
}

.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--black);
  margin: 6px 0;
  transition: var(--transition);
}

.nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 26, 26, 0.45);
  z-index: 99;
  backdrop-filter: blur(2px);
}

.nav-backdrop.show {
  display: block;
}

body.nav-open {
  overflow: hidden;
}

.mobile-cart-bar {
  display: none;
}

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  padding-top: 80px;
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-bg.jpeg') center/cover no-repeat;
  z-index: 0;
}

.hero-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(250,247,242,0.85) 0%, rgba(250,247,242,0.6) 50%, rgba(250,247,242,0.9) 100%);
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  padding: 60px 0;
}

.hero-text h2 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 20px;
}

.hero-text h2 em {
  font-style: italic;
  color: var(--strawberry);
}

.hero-text p {
  font-size: 1.1rem;
  color: #555;
  margin-bottom: 12px;
  max-width: 480px;
}

.hero-tags {
  display: flex;
  gap: 16px;
  margin: 28px 0 36px;
  flex-wrap: wrap;
}

.hero-tag {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: var(--white);
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 500;
  box-shadow: var(--shadow);
}

.hero-tag .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.hero-tag:nth-child(1) .dot { background: var(--sage); }
.hero-tag:nth-child(2) .dot { background: var(--gold); }
.hero-tag:nth-child(3) .dot { background: var(--strawberry); }

.hero-image {
  position: relative;
}

.hero-image img {
  border-radius: 24px;
  box-shadow: var(--shadow-lg);
  width: 100%;
  aspect-ratio: 4/5;
  object-fit: cover;
}

.hero-image::before {
  content: '';
  position: absolute;
  top: -20px;
  right: -20px;
  width: 120px;
  height: 120px;
  border: 3px solid var(--sage);
  border-radius: 50%;
  opacity: 0.4;
}

.hero-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* ── Sections ── */
section {
  padding: 100px 0;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header .label {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--sage);
  margin-bottom: 12px;
}

.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  color: #666;
  max-width: 560px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── Products ── */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 28px;
}

.product-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  position: relative;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.product-card-image {
  position: relative;
  height: 240px;
  overflow: hidden;
}

.product-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.product-card:hover .product-card-image img {
  transform: scale(1.05);
}

.product-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--white);
  background: var(--sage);
}

.product-card-body {
  padding: 24px;
}

.product-card-body h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.product-card-body p {
  font-size: 0.9rem;
  color: #777;
  margin-bottom: 16px;
}

.product-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--strawberry);
}

.product-add {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--sage);
  color: var(--white);
  font-size: 1.4rem;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.product-add:hover {
  background: var(--sage-dark);
  transform: scale(1.1);
}

.product-add.added {
  background: var(--strawberry);
}

/* ── About ── */
.about {
  background: var(--white);
}

/* ── Encuesta Comunidad ── */
.encuesta-section {
  background: var(--cream);
}

.encuesta-card {
  max-width: 720px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px 36px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(139, 168, 136, 0.2);
  text-align: center;
}

.encuesta-total {
  font-size: 1.05rem;
  color: #555;
  margin-bottom: 32px;
  line-height: 1.6;
}

.encuesta-total strong {
  color: var(--strawberry);
  font-size: 1.3rem;
  font-family: var(--font-display);
}

.encuesta-opciones {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}

.encuesta-opcion {
  display: grid;
  grid-template-columns: 72px 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  background: var(--cream);
  transition: var(--transition);
}

.encuesta-opcion:hover:not(.deshabilitado) {
  border-color: var(--sage);
}

.encuesta-opcion.votado {
  border-color: var(--sage);
  background: #f0f7f0;
  box-shadow: 0 0 0 1px var(--sage);
}

.encuesta-opcion.deshabilitado {
  opacity: 0.55;
}

.encuesta-opcion-icon {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
}

.encuesta-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.encuesta-emoji {
  position: absolute;
  bottom: -2px;
  right: -2px;
  font-size: 1.2rem;
  background: var(--white);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.encuesta-opcion-info h4 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.encuesta-barra {
  height: 6px;
  background: var(--cream-dark);
  border-radius: 50px;
  overflow: hidden;
  margin-bottom: 6px;
}

.encuesta-barra-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--sage), var(--sage-dark));
  border-radius: 50px;
  transition: width 0.6s ease;
}

.encuesta-votos {
  font-size: 0.8rem;
  color: #888;
}

.encuesta-votos strong {
  color: var(--black);
}

.btn-encuesta {
  padding: 10px 20px;
  border: none;
  border-radius: 50px;
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.btn-encuesta:hover:not(:disabled) {
  background: var(--strawberry);
  transform: translateY(-1px);
}

.btn-encuesta:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.btn-encuesta-active {
  background: var(--sage) !important;
  opacity: 1 !important;
}

.encuesta-mensaje {
  margin-top: 24px;
  font-size: 0.9rem;
  color: #888;
}

.encuesta-mensaje.encuesta-gracias {
  color: var(--sage-dark);
  font-weight: 500;
}

.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.about-image {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.about-image img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}

.about-values {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 32px;
}

.value-card {
  text-align: center;
  padding: 24px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
}

.value-card h4 {
  font-family: var(--font-display);
  font-size: 1rem;
  margin-bottom: 6px;
  color: var(--sage-dark);
}

.value-card p {
  font-size: 0.8rem;
  color: #888;
}

/* ── Order Form ── */
.order-section {
  background: linear-gradient(180deg, var(--cream) 0%, var(--cream-dark) 100%);
}

.order-wrapper {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
  align-items: start;
}

.order-left {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.pedido-builder {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
}

.builder-title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 24px;
}

.builder-step {
  margin-bottom: 24px;
}

.builder-step-row {
  display: flex;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
  padding-top: 8px;
  border-top: 2px solid var(--cream-dark);
}

.builder-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.builder-hint {
  font-weight: 400;
  color: #888;
  font-size: 0.85rem;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.option-grid-check {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.option-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 16px 12px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: var(--transition);
  background: var(--cream);
  position: relative;
}

.option-card input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.option-grid-empaques {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.option-card-empaque {
  min-height: 180px;
  justify-content: flex-start;
  padding: 14px 10px 16px;
}

.option-thumb {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 8px;
  border: 2px solid var(--white);
  box-shadow: var(--shadow);
}

.option-thumb-empaque {
  width: 100%;
  max-width: 120px;
  height: auto;
  max-height: 100px;
  object-fit: contain;
  margin-bottom: 10px;
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  filter: drop-shadow(0 4px 10px rgba(26, 26, 26, 0.12));
}

.builder-loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
  padding: 16px;
}

.option-card:hover {
  border-color: var(--sage);
}

.option-card.selected {
  border-color: var(--sage);
  background: #f0f7f0;
  box-shadow: 0 0 0 1px var(--sage);
}

.option-icon {
  font-size: 1.8rem;
  margin-bottom: 8px;
}

.option-name {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.option-desc {
  font-size: 0.75rem;
  color: #888;
  line-height: 1.3;
}

.option-extra {
  font-size: 0.8rem;
  color: var(--strawberry);
  font-weight: 600;
  margin-top: 6px;
}

.builder-precio {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.builder-precio span {
  font-size: 0.8rem;
  color: #888;
}

.builder-precio strong {
  font-size: 1.2rem;
  color: var(--strawberry);
}

.qty-selector {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
}

.product-size {
  font-size: 0.85rem;
  color: var(--sage);
  font-weight: 600;
}

.product-card-info .product-add {
  display: none;
}

.cart-item-detail {
  display: block;
  font-size: 0.75rem;
  color: #888;
  line-height: 1.4;
}

.cart-item-price {
  display: block;
  font-size: 0.8rem;
  color: var(--strawberry);
  font-weight: 600;
  margin-top: 4px;
}

.order-form {
  background: var(--white);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--black);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  border: 2px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cream);
  transition: var(--transition);
  color: var(--black);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--sage);
  background: var(--white);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-group textarea {
  resize: vertical;
  min-height: 80px;
}

.form-hint {
  font-size: 0.85rem;
  color: #888;
  margin: -4px 0 12px;
}

.map-actions {
  margin-bottom: 12px;
}

.map-container {
  width: 100%;
  height: 320px;
  min-height: 320px;
  border-radius: var(--radius-sm);
  border: 2px solid var(--cream-dark);
  overflow: hidden;
  background: #e8e4df;
  position: relative;
}

.map-container .leaflet-container {
  width: 100%;
  height: 100%;
  z-index: 1;
  font-family: inherit;
}

.map-container.mapa-cargando::before {
  content: 'Cargando mapa...';
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #666;
  font-size: 0.95rem;
  z-index: 0;
  pointer-events: none;
}

.ubicacion-info {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: #666;
  border: 2px dashed var(--cream-dark);
  line-height: 1.5;
}

.ubicacion-info.ubicacion-ok {
  border-color: var(--sage);
  background: #f0f7f0;
  color: var(--black);
}

/* ── Cart Sidebar ── */
.cart-panel {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
  scroll-margin-top: calc(var(--header-h) + 12px);
}

.cart-panel h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.cart-count {
  background: var(--strawberry);
  color: var(--white);
  font-size: 0.75rem;
  font-family: var(--font-body);
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cart-items {
  max-height: 320px;
  overflow-y: auto;
  margin-bottom: 20px;
}

.cart-empty {
  text-align: center;
  padding: 40px 0;
  color: #aaa;
  font-size: 0.9rem;
}

.cart-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--cream-dark);
}

.cart-item-info h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

.cart-item-info span {
  font-size: 0.8rem;
  color: #888;
}

.cart-item-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.qty-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid var(--cream-dark);
  background: var(--white);
  cursor: pointer;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.qty-btn:hover {
  border-color: var(--sage);
  color: var(--sage);
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 0;
  border-top: 2px solid var(--cream-dark);
  margin-bottom: 20px;
}

.cart-total span:first-child {
  font-weight: 600;
}

.cart-total span:last-child {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--strawberry);
}

/* ── Delivery Info ── */
.delivery-info {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.delivery-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px;
  text-align: center;
  box-shadow: var(--shadow);
}

.delivery-card .icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.delivery-card h3 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.delivery-card p {
  font-size: 0.9rem;
  color: #777;
}

/* ── Footer ── */
.footer {
  background: var(--black);
  color: var(--white);
  padding: 60px 0 30px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer h3 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 12px;
}

.footer p {
  opacity: 0.7;
  font-size: 0.9rem;
}

.footer h4 {
  font-size: 0.85rem;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 16px;
  color: var(--sage);
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  opacity: 0.7;
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer-links a:hover {
  opacity: 1;
  color: var(--sage);
}

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  text-align: center;
  font-size: 0.8rem;
  opacity: 0.5;
}

/* ── Toast ── */
.toast {
  position: fixed;
  bottom: 32px;
  right: 32px;
  padding: 16px 28px;
  border-radius: 50px;
  color: var(--white);
  font-weight: 500;
  font-size: 0.9rem;
  z-index: 1000;
  transform: translateY(100px);
  opacity: 0;
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.toast.success { background: var(--sage); }
.toast.error { background: var(--strawberry); }

/* ── Success Modal ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(26,26,26,0.5);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}

.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  text-align: center;
  max-width: 440px;
  width: 90%;
  transform: scale(0.9);
  transition: var(--transition);
}

.modal-overlay.show .modal {
  transform: scale(1);
}

.modal-icon {
  font-size: 3rem;
  margin-bottom: 16px;
}

.modal h3 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  margin-bottom: 12px;
}

.modal p {
  color: #666;
  margin-bottom: 8px;
}

.modal .order-number {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--strawberry);
  margin: 16px 0 24px;
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .hero-content,
  .about-grid,
  .order-wrapper {
    grid-template-columns: 1fr;
  }

  .order-wrapper {
    display: flex;
    flex-direction: column;
    gap: 20px;
  }

  .order-left {
    display: contents;
  }

  .pedido-builder {
    order: 1;
  }

  .cart-panel {
    order: 2;
    position: sticky;
    top: calc(var(--header-h) + 8px);
    z-index: 20;
  }

  .order-form {
    order: 3;
  }

  .builder-step-row {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-image {
    order: -1;
    max-width: 340px;
    margin: 0 auto;
  }

  .hero-image::before {
    width: 80px;
    height: 80px;
    top: -12px;
    right: -12px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .header {
    padding-top: var(--safe-top);
  }

  .header-inner {
    padding: 10px 0;
    gap: 10px;
  }

  .logo-img {
    height: 44px;
    width: 44px;
  }

  .btn-header-order {
    display: inline-flex !important;
    padding: 10px 16px;
    font-size: 0.82rem;
    white-space: nowrap;
  }

  .menu-toggle {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }

  .nav {
    display: none;
    position: fixed;
    top: calc(var(--header-h) + var(--safe-top));
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--white);
    flex-direction: column;
    padding: 24px 20px calc(24px + var(--safe-bottom));
    gap: 0;
    box-shadow: var(--shadow-lg);
    z-index: 100;
    overflow-y: auto;
  }

  .nav.open {
    display: flex;
  }

  .nav a {
    font-size: 1.05rem;
    padding: 16px 0;
    border-bottom: 1px solid var(--cream-dark);
    width: 100%;
    opacity: 1;
  }

  .nav a::after {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: calc(var(--header-h) + var(--safe-top) + 16px);
    padding-bottom: 32px;
  }

  .hero-content {
    padding: 28px 0;
    gap: 24px;
  }

  .hero-text h2 {
    font-size: clamp(1.85rem, 8vw, 2.6rem);
  }

  .hero-text p {
    font-size: 1rem;
  }

  .hero-tags {
    gap: 10px;
    margin: 20px 0 24px;
  }

  .hero-tag {
    font-size: 0.8rem;
    padding: 8px 14px;
  }

  .hero-buttons .btn {
    width: 100%;
    padding: 16px 24px;
    font-size: 1rem;
  }

  .container {
    width: min(1140px, 94%);
  }

  section {
    padding: 48px 0;
  }

  .section-header {
    margin-bottom: 32px;
  }

  .section-header h2 {
    font-size: clamp(1.6rem, 6vw, 2.2rem);
  }

  .section-header p {
    font-size: 0.95rem;
  }

  .about-image {
    max-width: 100%;
  }

  .encuesta-card {
    padding: 24px 18px;
  }

  .encuesta-opcion {
    grid-template-columns: 56px 1fr;
    grid-template-rows: auto auto;
    padding: 16px;
    gap: 12px;
  }

  .encuesta-opcion-icon {
    width: 56px;
    height: 56px;
  }

  .encuesta-opcion .btn-encuesta {
    grid-column: 1 / -1;
    width: 100%;
    margin-top: 4px;
    padding: 14px;
    min-height: 48px;
  }

  .order-wrapper {
    gap: 16px;
  }

  .pedido-builder,
  .order-form,
  .cart-panel {
    padding: 20px 16px;
    border-radius: 14px;
  }

  .cart-panel {
    border: 2px solid rgba(139, 168, 136, 0.35);
    box-shadow: var(--shadow-lg);
  }

  .builder-title {
    font-size: 1.15rem;
    margin-bottom: 18px;
  }

  .builder-label {
    font-size: 0.88rem;
  }

  .option-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .option-grid-check {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .option-card {
    padding: 14px 10px;
    min-height: 108px;
  }

  .option-thumb {
    width: 62px;
    height: 62px;
  }

  .option-thumb-empaque {
    max-width: 100%;
    max-height: 110px;
  }

  .option-card-empaque {
    min-height: 170px;
  }

  .option-name {
    font-size: 0.85rem;
  }

  .option-desc {
    font-size: 0.7rem;
  }

  .builder-step-row .btn {
    width: 100%;
    padding: 16px;
    font-size: 1rem;
    min-height: 52px;
  }

  .qty-btn {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }

  .qty-selector {
    gap: 16px;
  }

  .form-row,
  .delivery-info,
  .about-values {
    grid-template-columns: 1fr;
  }

  .form-group input,
  .form-group select,
  .form-group textarea {
    font-size: 16px;
    padding: 15px 16px;
    min-height: 52px;
  }

  .form-group textarea {
    min-height: 100px;
  }

  #btnMiUbicacion {
    width: 100%;
    min-height: 48px;
    padding: 14px;
  }

  .map-container {
    height: 240px;
    min-height: 240px;
  }

  .btn-maps {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }

  #submitBtn {
    min-height: 56px !important;
    font-size: 1.05rem !important;
  }

  .cart-items {
    max-height: none;
  }

  .cart-item {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    padding: 14px 0;
  }

  .cart-item-controls {
    align-self: flex-end;
  }

  .cart-total span:last-child {
    font-size: 1.5rem;
  }

  .delivery-card {
    padding: 24px 20px;
  }

  .footer {
    padding: 40px 0 calc(28px + var(--safe-bottom));
  }

  .products-grid {
    grid-template-columns: 1fr;
  }

  .toast {
    left: 16px;
    right: 16px;
    bottom: calc(16px + var(--safe-bottom));
    text-align: center;
    border-radius: var(--radius-sm);
    padding: 14px 20px;
  }

  body.has-mobile-cart .toast {
    bottom: calc(var(--mobile-bar-h) + 12px + var(--safe-bottom));
  }

  .modal {
    width: calc(100% - 28px);
    max-height: 88vh;
    overflow-y: auto;
    padding: 28px 22px;
    margin: 14px;
  }

  .modal .btn {
    width: 100%;
    min-height: 52px;
  }

  .mobile-cart-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 90;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    border-top: 1px solid rgba(139, 168, 136, 0.35);
    padding: 12px 16px calc(12px + var(--safe-bottom));
    box-shadow: 0 -8px 32px rgba(26, 26, 26, 0.12);
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .mobile-cart-bar.visible {
    display: flex;
  }

  .mobile-cart-info {
    flex: 1;
    min-width: 0;
  }

  .mobile-cart-info strong {
    display: block;
    font-size: 1.05rem;
    color: var(--strawberry);
    line-height: 1.2;
  }

  .mobile-cart-info span {
    font-size: 0.78rem;
    color: #666;
  }

  .mobile-cart-bar .btn {
    flex-shrink: 0;
    padding: 14px 18px;
    min-height: 48px;
    font-size: 0.9rem;
  }

  body.has-mobile-cart {
    padding-bottom: calc(var(--mobile-bar-h) + var(--safe-bottom));
  }
}

@media (max-width: 480px) {
  .hero-text h2 {
    font-size: 1.75rem;
  }

  .option-grid,
  .option-grid-check {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .admin-header-inner {
    flex-wrap: wrap;
    gap: 10px;
  }

  .admin-header h1 {
    font-size: 1rem;
  }

  .admin-header-inner > div:last-child {
    width: 100%;
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat-card {
    padding: 16px;
  }

  .stat-card .value {
    font-size: 1.5rem;
  }

  .stat-card.ingresos .value {
    font-size: 1.15rem;
  }

  .filters-block .filters {
    gap: 6px;
  }

  .filter-btn,
  .admin-tab {
    padding: 10px 14px;
    font-size: 0.78rem;
  }

  .prep-cards {
    grid-template-columns: 1fr;
  }

  .prep-grid {
    grid-template-columns: 1fr 1fr;
  }

  .sede-chip {
    min-width: 0;
    flex: 1 1 calc(50% - 6px);
  }
}

@media (hover: none) and (pointer: coarse) {
  .btn-primary:hover,
  .btn-secondary:hover {
    transform: none;
  }

  .option-card:active {
    transform: scale(0.98);
  }

  .product-card:hover {
    transform: none;
  }
}

/* ── Admin Styles ── */
.admin-body {
  background: #F4F6F4;
  min-height: 100vh;
}

.admin-login {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.login-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 48px;
  width: min(400px, 100%);
  box-shadow: var(--shadow-lg);
  text-align: center;
}

.login-card .logo-img-lg {
  margin-bottom: 20px;
}

.login-card h2 {
  font-family: var(--font-display);
  margin-bottom: 8px;
}

.login-card p {
  color: #888;
  font-size: 0.9rem;
  margin-bottom: 28px;
}

.admin-dashboard {
  display: none;
}

.admin-dashboard.active {
  display: block;
}

.admin-header {
  background: var(--white);
  border-bottom: 1px solid #e8e8e8;
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 50;
}

.admin-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-header h1 {
  font-family: var(--font-display);
  font-size: 1.3rem;
}

.admin-main {
  padding: 32px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
}

.stat-card .label {
  font-size: 0.8rem;
  color: #888;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.stat-card .value {
  font-size: 2rem;
  font-weight: 700;
  font-family: var(--font-display);
}

.stat-card.pendiente .value { color: var(--mango); }
.stat-card.preparacion .value { color: var(--sage); }
.stat-card.entregado .value { color: var(--kiwi); }
.stat-card.ingresos .value { color: var(--strawberry); font-size: 1.5rem; }

.filters {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.filter-btn {
  padding: 8px 20px;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.filter-btn:hover,
.filter-btn.active {
  border-color: var(--sage);
  background: var(--sage);
  color: var(--white);
}

.orders-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--mango);
}

.order-card.en_preparacion { border-left-color: var(--sage); }
.order-card.entregado { border-left-color: var(--kiwi); }
.order-card.cancelado { border-left-color: #ccc; opacity: 0.7; }

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 12px;
}

.order-card-header h3 {
  font-size: 1rem;
  font-weight: 700;
}

.order-card-header .order-id {
  color: var(--strawberry);
  font-size: 0.85rem;
}

.order-status {
  padding: 4px 14px;
  border-radius: 50px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-status.pendiente { background: #FFF3E0; color: #E65100; }
.order-status.en_preparacion { background: #E8F5E9; color: #2E7D32; }
.order-status.entregado { background: #E8F5E9; color: #1B5E20; }
.order-status.cancelado { background: #F5F5F5; color: #999; }

.order-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.order-details .detail-label {
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.order-products {
  background: var(--cream);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  margin-bottom: 16px;
  font-size: 0.9rem;
}

.order-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-maps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  background: var(--strawberry);
  color: var(--white) !important;
  border-radius: 50px;
  font-size: 0.85rem;
  font-weight: 600;
  transition: var(--transition);
  text-decoration: none;
}

.btn-maps:hover {
  background: #c03a44;
  transform: translateY(-1px);
}

.order-actions .btn {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.8rem;
}

.btn-danger {
  background: transparent;
  color: var(--strawberry);
  border: 2px solid var(--strawberry);
}

.btn-danger:hover {
  background: var(--strawberry);
  color: var(--white);
}

.empty-orders {
  text-align: center;
  padding: 60px;
  color: #aaa;
}

.sede-resumen {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.sede-chip {
  background: var(--white);
  border: 2px solid #e8e8e8;
  border-radius: var(--radius-sm);
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 160px;
}

.sede-chip strong {
  font-size: 0.95rem;
}

.sede-chip span {
  font-size: 0.8rem;
  color: #777;
}

.sede-chip.active {
  border-color: var(--sage);
  background: #f0f7f0;
}

.admin-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.admin-tab {
  padding: 10px 22px;
  border-radius: 50px;
  border: 2px solid #e0e0e0;
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
}

.admin-tab:hover,
.admin-tab.active {
  border-color: var(--strawberry);
  background: var(--strawberry);
  color: var(--white);
}

.filters-block {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.filters-block .filters {
  margin-bottom: 0;
  align-items: center;
}

.filters-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-right: 8px;
}

.sede-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 50px;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
}

.sede-badge.sede-monteria {
  background: #E3F2FD;
  color: #1565C0;
}

.sede-badge.sede-tierralta {
  background: #FFF3E0;
  color: #E65100;
}

.preparacion-panel {
  margin-bottom: 24px;
}

.prep-intro {
  margin-bottom: 20px;
}

.prep-intro h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.prep-intro p {
  color: #777;
  font-size: 0.9rem;
}

.prep-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.prep-card,
.prep-total-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}

.prep-total-card {
  border: 2px solid var(--sage);
  background: #f8fbf8;
}

.prep-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.prep-card-header h3,
.prep-total-card h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.prep-meta {
  display: flex;
  gap: 12px;
  font-size: 0.85rem;
  color: #666;
}

.prep-meta span {
  background: var(--cream);
  padding: 4px 10px;
  border-radius: 50px;
}

.prep-block {
  margin-bottom: 18px;
}

.prep-block h4 {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #888;
  margin-bottom: 12px;
}

.prep-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.prep-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: #f5f5f5;
  opacity: 0.6;
}

.prep-item-active {
  background: #fff8f0;
  border: 2px solid var(--mango);
  opacity: 1;
}

.prep-thumb {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
}

.prep-name {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
}

.prep-qty {
  display: block;
  font-size: 1.4rem;
  color: var(--strawberry);
  line-height: 1.1;
}

.prep-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.prep-tag {
  padding: 8px 14px;
  border-radius: 50px;
  background: #f0f0f0;
  font-size: 0.85rem;
  color: #888;
}

.prep-tag-active {
  background: #eef5ee;
  color: var(--black);
  border: 1px solid var(--sage);
}

.prep-empty {
  text-align: center;
  padding: 48px 24px;
  background: var(--white);
  border-radius: var(--radius);
  color: #888;
}

.prep-empty small {
  display: block;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .login-card {
    padding: 32px 24px;
  }

  .order-card-header {
    flex-direction: column;
  }

  .order-card {
    padding: 18px 16px;
  }

  .order-details {
    grid-template-columns: 1fr;
  }

  .order-actions {
    flex-wrap: wrap;
  }

  .order-actions .btn {
    flex: 1 1 calc(50% - 6px);
    min-height: 44px;
  }

  .admin-main {
    padding: 20px 0 calc(20px + var(--safe-bottom));
  }

  .admin-header {
    padding-top: var(--safe-top);
  }
}
