:root {
  --vino: #3d0e1f;
  --vino-oscuro: #2a0916;
  --crema: #ece1cd;
  --crema-card: #f8f2e6;
  --dorado: #b98f52;
  --texto: #3a2417;
  --texto-muted: #7d6c58;
  --borde: #e2d5ba;
  --disabled-bg: #b7ac8f;
  --disabled-text: #f3ece0;
  --radius: 6px;
  --font: 'Poppins', sans-serif;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,200;0,300;0,400;0,500;1,300;1,400&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: var(--font);
  font-weight: 300;
  background: var(--crema);
  color: var(--texto);
  line-height: 1.6;
}

.container { max-width: 640px; margin: 0 auto; padding: 0 24px; }

/* HEADER */
.site-header { background: var(--vino); padding: 34px 0 26px; text-align: center; }
.site-header img { height: 84px; margin-bottom: 14px; }
.header-tagline {
  color: var(--crema); font-size: 12px; letter-spacing: 3px; text-transform: uppercase;
  font-weight: 300; margin-bottom: 14px;
}
.zigzag-cream {
  height: 14px; width: 90px; margin: 0 auto; opacity: .6;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 14'%3E%3Cpolyline points='0,10 15,2 30,10 45,2 60,10 75,2 90,10' fill='none' stroke='%23f3e9da' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center;
}

/* MAIN WIZARD WRAPPER */
main.wizard-main { padding: 50px 0 70px; }

/* HERO (solo paso 0) */
.hero-block { text-align: center; margin-bottom: 34px; }
.kicker { font-style: italic; font-weight: 300; font-size: 1.05rem; color: var(--texto-muted); margin-bottom: 2px; }
.hero-title { font-weight: 400; font-size: 2.1rem; letter-spacing: 3px; text-transform: uppercase; color: var(--vino); margin-bottom: 18px; }
.hero-title.small { font-size: 1.7rem; text-align: center; }
.badges-row { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.badge {
  border: 1px solid var(--borde); border-radius: 20px; padding: 7px 16px;
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-muted);
}
.zigzag { height: 14px; margin: 0 auto 6px; width: 90px; opacity: .5;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 14'%3E%3Cpolyline points='0,10 15,2 30,10 45,2 60,10 75,2 90,10' fill='none' stroke='%233d0e1f' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat center; }

/* CARD */
.wizard-card { background: var(--crema-card); border: 1px solid var(--borde); border-radius: 10px; padding: 30px; }

.field-label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-muted); margin-bottom: 10px; display: block; }
.field-label.muted { margin-top: 4px; }

/* CALENDARIO */
.calendar-widget { margin-bottom: 6px; transition: opacity .2s; }
.calendar-widget.calendar-disabled { opacity: .35; pointer-events: none; }
.calendar-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.calendar-header button {
  background: transparent; border: 1px solid var(--borde); color: var(--vino); font-size: 16px;
  cursor: pointer; padding: 4px 12px; border-radius: var(--radius); line-height: 1;
}
.calendar-header button:disabled { opacity: .25; cursor: not-allowed; }
.calendar-title { font-size: 1rem; letter-spacing: 1px; text-transform: uppercase; color: var(--texto); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.calendar-daylabel { text-align: center; font-size: 10px; text-transform: uppercase; color: var(--texto-muted); padding-bottom: 6px; }
.calendar-day { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; border-radius: 50%; font-size: 13px; cursor: pointer; transition: .15s; color: var(--texto); }
.calendar-day.empty { visibility: hidden; cursor: default; }
.calendar-day.disabled { opacity: .3; cursor: not-allowed; text-decoration: line-through; }
.calendar-day:hover:not(.disabled):not(.empty) { background: rgba(185,143,82,.18); }
.calendar-day.selected { background: var(--vino); color: var(--crema); font-weight: 500; }
.calendar-day.today:not(.selected) { border: 1px solid var(--dorado); }

.calendar-legend { display: flex; gap: 18px; font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--texto-muted); margin: 14px 0; }
.calendar-legend span.legend-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; border: 1px solid var(--texto-muted); }
.legend-dot.dot-no { background: transparent; opacity: .5; }
.legend-dot.dot-si { background: var(--dorado); border-color: var(--dorado); }

.checkbox-row { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0 22px; cursor: pointer; color: var(--texto); }
.checkbox-row input { width: auto; }

/* CAMPOS */
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 22px; }
label { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-muted); margin-bottom: 6px; display: block; }
input, textarea {
  width: 100%; padding: 12px 14px; background: #fff; border: 1px solid var(--borde);
  border-radius: var(--radius); color: var(--texto); font-family: var(--font); font-size: 14px;
}
input::placeholder, textarea::placeholder { color: #b3a794; }

.note-box {
  background: rgba(185,143,82,.12); border-left: 3px solid var(--dorado); border-radius: var(--radius);
  padding: 14px 16px; font-size: 13px; color: var(--texto); margin-bottom: 24px;
}
.note-box.resumen-meta { border-left-color: var(--vino); font-size: 14px; margin: 20px 0; }

/* BOTONES */
.btn-primary, .btn-outline {
  padding: 13px 20px; border-radius: var(--radius); font-size: 13px; letter-spacing: 1.5px;
  text-transform: uppercase; cursor: pointer; font-family: var(--font); font-weight: 500;
}
.btn-primary { background: var(--vino); color: var(--crema); border: none; }
.btn-primary:disabled { background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; }
.btn-outline { background: transparent; border: 1px solid var(--vino); color: var(--vino); }
.btn-block { width: 100%; }
.btn-row { display: flex; justify-content: space-between; gap: 12px; margin-top: 26px; }
.btn-row .btn-outline, .btn-row .btn-primary { flex: 1; }
.helper-text { text-align: center; font-size: 12px; color: var(--texto-muted); margin-top: 14px; }

/* PASOS DE ELECCIÓN */
.step-header-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.step-count { font-size: 12px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-muted); }
.step-category { font-size: 1.2rem; letter-spacing: 2px; text-transform: uppercase; color: var(--vino); }
.step-progress { height: 2px; background: var(--borde); margin-bottom: 20px; border-radius: 2px; overflow: hidden; }
.step-progress-fill { height: 100%; background: var(--dorado); transition: width .2s; }

.option-list { display: grid; gap: 12px; margin-top: 16px; }
.option-card {
  display: flex; align-items: center; gap: 14px; border: 1px solid var(--borde);
  border-radius: var(--radius); padding: 16px; cursor: pointer; transition: .15s; background: #fff;
}
.option-card:hover { border-color: var(--dorado); }
.option-card.selected { border-color: var(--vino); background: rgba(61,14,31,.04); }
.option-card input[type="radio"] { display: none; }
.option-card img { width: 46px; height: 46px; object-fit: cover; border-radius: var(--radius); flex-shrink: 0; }
.option-name { flex: 1; font-size: 14px; color: var(--texto); }
.option-radio {
  width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--texto-muted); flex-shrink: 0;
}
.option-card.selected .option-radio { border-color: var(--vino); background: radial-gradient(circle, var(--vino) 40%, transparent 44%); }

/* RESUMEN */
.resumen-list { margin-top: 20px; }
.resumen-row {
  display: flex; justify-content: space-between; gap: 16px; padding: 14px 0;
  border-bottom: 1px solid var(--borde);
}
.resumen-row .resumen-cat { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--texto-muted); flex-shrink: 0; padding-top: 2px; }
.resumen-row .resumen-plato { text-align: right; color: var(--texto); font-size: 14px; }

/* FOOTER */
.site-footer { text-align: center; padding: 30px 24px 50px; }
.footer-badge { display: block; width: 56px; height: 56px; border-radius: 50%; margin: 0 auto 14px; }
.ig-pill {
  display: inline-block; border: 1px solid var(--borde); border-radius: 20px; padding: 8px 18px;
  font-size: 13px; color: var(--texto); text-decoration: none;
}
.ig-pill:hover { border-color: var(--dorado); }

@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .wizard-card { padding: 22px; }
}

/* ============ ADMIN ============ */
.admin-body { background: var(--crema); min-height: 100vh; font-family: var(--font); }
.admin-login {
  max-width: 380px; margin: 90px auto; background: #fff;
  padding: 40px; border-radius: var(--radius); box-shadow: 0 4px 24px rgba(0,0,0,.08);
}
.admin-login img { width: 70px; display: block; margin: 0 auto 20px; border-radius: 50%; }
.admin-login h2 { text-align: center; font-weight: 400; letter-spacing: 1px; margin-bottom: 24px; color: var(--vino); }
.admin-login input {
  width: 100%; padding: 12px; margin-bottom: 12px;
  border: 1px solid var(--borde); border-radius: var(--radius);
}
.admin-login button {
  width: 100%; padding: 13px; background: var(--vino); color: var(--crema);
  border: none; border-radius: var(--radius); cursor: pointer; font-weight: 500;
}
.admin-error { color: #b00020; font-size: 13px; margin-top: 10px; text-align: center; }

.admin-panel { display: none; }
.admin-header {
  background: var(--vino); color: var(--crema);
  padding: 16px 30px; display: flex; justify-content: space-between; align-items: center;
}
.admin-header button {
  background: transparent; border: 1px solid var(--crema); color: var(--crema);
  padding: 8px 16px; border-radius: var(--radius); cursor: pointer;
}
.admin-tabs { display: flex; gap: 10px; padding: 20px 30px 0; flex-wrap: wrap; }
.admin-tabs button {
  padding: 10px 20px; border: none; background: var(--borde); border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer; font-weight: 500; font-family: var(--font);
}
.admin-tabs button.active { background: #fff; color: var(--vino); }
.admin-content { padding: 24px 30px 60px; }

.card { background: #fff; border-radius: var(--radius); padding: 20px; margin-bottom: 14px; box-shadow: 0 1px 6px rgba(0,0,0,.06); }
.card-header { display: flex; justify-content: space-between; align-items: center; }
.card-header h4 { font-weight: 500; font-size: 1.1rem; color: var(--vino); }
.tag { display: inline-block; font-size: 11px; padding: 3px 10px; border-radius: 20px; text-transform: uppercase; letter-spacing: .5px; }
.tag.pendiente { background: #fff3cd; color: #856404; }
.tag.confirmada { background: #d4edda; color: #155724; }
.tag.realizada { background: #d1ecf1; color: #0c5460; }
.card-actions { margin-top: 10px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.card-actions button, .card-actions select {
  padding: 6px 12px; border-radius: var(--radius); border: 1px solid #ccc; cursor: pointer; font-size: 13px; font-family: var(--font);
}
.btn-danger { background: #fbeaea; border-color: #e2b0b0; color: #b00020; }
.admin-content .btn-primary { background: var(--vino); color: #fff; border: none; padding: 6px 14px; }

.add-plato-btn {
  background: var(--vino); color: #fff; border: none; padding: 10px 20px;
  border-radius: var(--radius); cursor: pointer; margin-bottom: 20px; font-family: var(--font);
}

.modal-bg {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5);
  align-items: center; justify-content: center; z-index: 200;
}
.modal-bg.open { display: flex; }
.modal {
  background: #fff; padding: 30px; border-radius: var(--radius); width: 90%; max-width: 460px; max-height: 85vh; overflow-y: auto;
}
.modal h3 { font-weight: 500; color: var(--vino); margin-bottom: 18px; }
.modal label { font-size: 12px; text-transform: uppercase; display: block; margin: 12px 0 4px; color: #666; }
.modal input, .modal select, .modal textarea {
  width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: var(--radius); font-family: var(--font);
}
.modal .modal-actions { display: flex; gap: 10px; margin-top: 20px; }
.modal .modal-actions button { flex: 1; padding: 12px; border-radius: var(--radius); border: none; cursor: pointer; font-family: var(--font); }

.fecha-bloqueada-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; background: #fff; border-radius: var(--radius); margin-bottom: 8px; box-shadow: 0 1px 4px rgba(0,0,0,.05);
}