@import url('https://fonts.googleapis.com/css2?family=Lato:wght@300;400;700;900&family=Manrope:wght@400;500;600;700&display=swap');
/* ============================================================
   WIDGET CSS – Mesa y Comanda Reservation Form
   Warm, elegant Mediterranean design system
   ============================================================ */

/* ── CSS Custom Properties (Design Tokens) ── */
:root {
  /* Brand colors */
  --color-primary:       #151A40;
  --color-primary-light: #20275C;
  --color-primary-dark:  #0D112B;
  --color-primary-rgb:   21, 26, 64;

  /* Backgrounds */
  --color-bg:            #F4F6FB;
  --color-bg-alt:        #F8FAFC;
  --color-bg-card:       #FFFFFF;
  --color-bg-input:      #FFFFFF;

  /* Text */
  --color-text:          #151A40;
  --color-text-light:    #475569;
  --color-text-muted:    #94A3B8;

  /* Accent */
  --color-accent:        #151A40;
  --color-accent-light:  #20275C;
  --color-accent-dark:   #0D112B;

  /* Feedback */
  --color-success:       #10B981;
  --color-success-bg:    #EAFBF1;
  --color-error:         #E11D48;
  --color-error-bg:      #FFF1F2;
  --color-warning:       #F97316;
  --color-info:          #3B82F6;
  --color-info-bg:       #EFF6FF;

  /* Borders */
  --color-border:        #E2E8F0;
  --color-border-focus:  var(--color-primary);

  /* Shadows */
  --shadow-sm:  0 1px 3px rgba(21, 26, 64, 0.04);
  --shadow-md:  0 4px 14px rgba(21, 26, 64, 0.06);
  --shadow-lg:  0 8px 24px rgba(21, 26, 64, 0.08);
  --shadow-xl:  0 16px 40px rgba(21, 26, 64, 0.12);

  /* Spacing */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-out:   cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration-fast: 150ms;
  --duration-normal: 250ms;
  --duration-slow: 400ms;

  /* Typography */
  --font-heading: 'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body:    'Lato', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Helper class for Material Symbols Rounded (iOS Safari / WebKit support) */
.material-symbols-rounded {
  font-family: 'Material Symbols Rounded' !important;
  font-weight: normal;
  font-style: normal;
  font-size: 20px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
}

/* ── Reset & Base ── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
}

body {
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
  max-width: 100vw;
  width: 100%;
  position: relative;
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: color var(--duration-fast) var(--ease-out);
}
a:hover {
  color: var(--color-accent);
  text-decoration: underline;
}

/* ── Widget Container ── */
.widget-container {
  max-width: 860px;
  width: 100%;
  margin: 36px auto 60px auto;
  padding: 0 20px;
  background: transparent;
  border: none;
  box-shadow: none;
  border-radius: 0;
  position: relative;
  box-sizing: border-box;
  overflow-x: hidden;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Loading Overlay ── */
.widget-loader {
  position: fixed;
  inset: 0;
  background: rgba(255, 248, 240, 0.9);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--duration-normal) var(--ease-out);
}
.widget-loader.active {
  opacity: 1;
  pointer-events: all;
}

.loader-spinner {
  width: 44px;
  height: 44px;
  border: 3px solid var(--color-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Header ── */
.widget-header {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-lg);
}

.widget-logo-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: var(--space-xs);
}

.widget-logo-img {
  height: 70px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.widget-subtitle {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 300;
  color: var(--color-text-muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-top: var(--space-xs);
}

/* ── Welcome Section (Card 1) ── */
.widget-welcome {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 28px 32px;
  margin-bottom: 24px;
  box-shadow: 0 4px 20px rgba(21, 26, 64, 0.04);
  border: 1px solid #E2E8F0;
}

.welcome-intro-text {
  font-size: 1.05rem;
  color: #1E293B;
  margin-bottom: 20px;
  line-height: 1.65;
}

.welcome-intro-text strong {
  font-weight: 700;
  color: #0F172A;
}

.widget-notice {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: #EDF5FD;
  border-radius: 10px;
  padding: 16px 20px;
  border-left: 4px solid #0284C7;
}

.notice-icon-box {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1px;
}

.notice-icon {
  font-size: 1.35rem;
  color: #0284C7;
}

.notice-body {
  flex: 1;
}

.notice-text {
  font-size: 0.88rem;
  color: #334155;
  line-height: 1.55;
  margin-bottom: 6px;
}

.notice-contacts {
  font-size: 0.9rem;
  color: #1E293B;
  line-height: 1.5;
}

.notice-contacts strong {
  font-weight: 700;
  color: #0F172A;
}

.notice-contacts a {
  color: #0F172A;
  font-weight: 600;
  text-decoration: none;
}

.notice-contacts a:hover {
  text-decoration: underline;
  color: #0284C7;
}

/* ── Form Styles (Card 2) ── */
.widget-form {
  background: #FFFFFF;
  border-radius: 16px;
  padding: 32px;
  box-shadow: 0 4px 20px rgba(21, 26, 64, 0.04);
  border: 1px solid #E2E8F0;
  width: 100%;
  box-sizing: border-box;
}

/* Form group */
.form-group {
  margin-bottom: var(--space-lg);
  animation: fadeIn var(--duration-normal) var(--ease-out) both;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Show/hide animation for arroz fields */
.form-group--slide {
  overflow: hidden;
  transition: max-height var(--duration-slow) var(--ease-out),
              opacity var(--duration-normal) var(--ease-out),
              margin var(--duration-slow) var(--ease-out);
}
.form-group--slide.hidden {
  max-height: 0;
  opacity: 0;
  margin-bottom: 0;
}
.form-group--slide.visible {
  max-height: 200px;
  opacity: 1;
}

/* Two-column row */
.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-md);
}

/* Labels */
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: var(--space-xs);
  letter-spacing: 0.01em;
}

.required {
  color: var(--color-error);
  font-weight: 700;
}

.arroz-note {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

/* Inputs & Selects */
.widget-form input[type="text"],
.widget-form input[type="tel"],
.widget-form input[type="date"],
.widget-form input[type="number"],
.widget-form select,
.widget-form textarea {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-input);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out),
              background var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}

/* Select arrow */
.widget-form select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%236B5B50' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
  cursor: pointer;
}

/* Number input arrows */
.widget-form input[type="number"] {
  -moz-appearance: textfield;
}
.widget-form input[type="number"]::-webkit-inner-spin-button,
.widget-form input[type="number"]::-webkit-outer-spin-button {
  opacity: 1;
  height: 36px;
}

/* Focus states */
.widget-form input:focus,
.widget-form select:focus,
.widget-form textarea:focus {
  border-color: var(--color-border-focus);
  box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb), 0.12);
  background: #FFFFFF;
}

/* Hover states */
.widget-form input:hover:not(:focus):not(:disabled),
.widget-form select:hover:not(:focus):not(:disabled),
.widget-form textarea:hover:not(:focus):not(:disabled) {
  border-color: var(--color-primary-light);
}

/* Disabled state */
.widget-form input:disabled,
.widget-form select:disabled,
.widget-form textarea:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  background: var(--color-bg-alt);
}

/* Error state */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: var(--color-error);
  background: var(--color-error-bg);
}
.form-group.has-error input:focus,
.form-group.has-error select:focus,
.form-group.has-error textarea:focus {
  box-shadow: 0 0 0 3px rgba(211, 47, 47, 0.12);
}

/* Textarea */
.widget-form textarea {
  resize: vertical;
  min-height: 80px;
}

/* Field hint */
.field-hint {
  display: block;
  font-size: 0.78rem;
  color: var(--color-text-muted);
  margin-top: var(--space-xs);
}

/* Field error message */
.field-error {
  display: none;
  font-size: 0.8rem;
  color: var(--color-error);
  margin-top: 4px;
  font-weight: 500;
  animation: shakeIn 0.3s var(--ease-spring);
}

.form-group.has-error .field-error {
  display: block;
}

@keyframes shakeIn {
  0%   { transform: translateX(-6px); opacity: 0; }
  40%  { transform: translateX(4px); }
  70%  { transform: translateX(-2px); }
  100% { transform: translateX(0); opacity: 1; }
}

/* ── Submit Button ── */
.form-actions {
  margin-top: var(--space-xl);
}

.btn-submit {
  width: 100%;
  padding: 0.95rem 2rem;
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
  border: none;
  border-radius: var(--radius-md);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  transition: transform var(--duration-fast) var(--ease-out),
              box-shadow var(--duration-fast) var(--ease-out);
  box-shadow: 0 4px 14px rgba(var(--color-primary-rgb), 0.3);
  letter-spacing: 0.02em;
}

.btn-submit:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(var(--color-primary-rgb), 0.4);
}

.btn-submit:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(var(--color-primary-rgb), 0.3);
}

.btn-submit:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

/* Shimmer effect on button */
.btn-submit::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.15), transparent);
  transition: none;
}
.btn-submit:hover::after {
  animation: shimmer 1.2s ease;
}

@keyframes shimmer {
  to { left: 100%; }
}

/* Loading state */
.btn-submit.loading .btn-text {
  opacity: 0;
}
.btn-submit.loading .btn-spinner {
  display: block;
}
.btn-submit .btn-spinner {
  display: none;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  border: 2.5px solid rgba(255,255,255,0.3);
  border-top-color: #FFFFFF;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

/* General error */
.form-error-general {
  margin-top: var(--space-md);
  padding: var(--space-md);
  background: var(--color-error-bg);
  border: 1px solid var(--color-error);
  border-radius: var(--radius-md);
  color: var(--color-error);
  font-size: 0.9rem;
  text-align: center;
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

/* ── Success Screen ── */
.success-screen {
  background: var(--color-bg-card);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl) var(--space-xl);
  box-shadow: var(--shadow-md);
  border: 1px solid var(--color-border);
  text-align: center;
  animation: fadeInUp 0.5s var(--ease-out) both;
}

.success-animation {
  margin-bottom: var(--space-lg);
}

.success-checkmark {
  width: 80px;
  height: 80px;
}

.checkmark-circle {
  stroke-dasharray: 226;
  stroke-dashoffset: 226;
  animation: drawCircle 0.6s 0.2s var(--ease-out) forwards;
}

.checkmark-check {
  stroke-dasharray: 50;
  stroke-dashoffset: 50;
  animation: drawCheck 0.4s 0.7s var(--ease-out) forwards;
}

@keyframes drawCircle {
  to { stroke-dashoffset: 0; }
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}

.success-title {
  font-family: var(--font-heading);
  font-size: 1.6rem;
  color: var(--color-success);
  margin-bottom: var(--space-sm);
}

.success-message {
  color: var(--color-text-light);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
  line-height: 1.6;
}

.success-details {
  background: var(--color-bg-alt);
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  text-align: left;
}

.success-details .detail-row {
  display: flex;
  justify-content: space-between;
  padding: var(--space-xs) 0;
  font-size: 0.9rem;
  border-bottom: 1px solid var(--color-border);
}
.success-details .detail-row:last-child {
  border-bottom: none;
}
.success-details .detail-label {
  font-weight: 600;
  color: var(--color-text);
}
.success-details .detail-value {
  color: var(--color-text-light);
}

.success-contact {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: var(--space-lg);
  line-height: 1.7;
}

.btn-new-reservation {
  display: inline-block;
  padding: 0.7rem 2rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-primary);
  background: transparent;
  border: 2px solid var(--color-primary);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-new-reservation:hover {
  background: var(--color-primary);
  color: #FFFFFF;
}

/* ── Footer ── */
.widget-footer {
  text-align: center;
  padding: var(--space-xl) 0 var(--space-md);
}

.widget-footer p {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}



/* ── Print ── */
@media print {
  .widget-form,
  .widget-footer,
  .btn-new-reservation {
    display: none;
  }
}

/* ── Accessibility: focus-visible ── */
*:focus-visible {
  outline: 2px solid var(--color-primary);
  outline-offset: 2px;
}

/* Prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   NUEVOS ESTILOS - FLUJO DE 2 PASOS E INLINE CALENDAR
   ============================================================ */

.form-step {
  animation: fadeIn var(--duration-normal) var(--ease-out);
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.step-layout-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-xl);
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

@media (max-width: 768px) {
  .step-layout-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: var(--space-lg);
  }
}

.step-col-calendar,
.step-col-details {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.form-label-header {
  display: block;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: var(--space-sm);
}

/* Calendario Inline */
.calendar-inline {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-md);
  box-shadow: var(--shadow-md);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.calendar-inline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: var(--space-md);
  width: 100%;
}

.calendar-inline-month-label {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: center;
  white-space: nowrap;
  flex: 1;
}

.btn-cal-nav {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-size: 1rem;
  padding: var(--space-xs) var(--space-sm);
  cursor: pointer;
  border-radius: var(--radius-sm);
  transition: all var(--duration-fast) var(--ease-out);
}

.btn-cal-nav:hover {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.calendar-inline-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  text-align: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  text-transform: uppercase;
  margin-bottom: var(--space-sm);
  padding-bottom: var(--space-xs);
  border-bottom: 1px solid var(--color-border);
  width: 100%;
}

.calendar-inline-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
  width: 100%;
}

.calendar-day, .calendar-day-empty {
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  user-select: none;
  min-width: 0;
  overflow: hidden;
}

.calendar-day {
  cursor: pointer;
  color: var(--color-text);
  transition: all var(--duration-fast) var(--ease-out);
}

.calendar-day:hover:not(.disabled) {
  background: var(--color-bg-alt);
  color: var(--color-accent);
}

.calendar-day.today {
  border: 1.5px solid var(--color-accent);
}

.calendar-day.selected {
  background: var(--color-primary) !important;
  color: #FFFFFF !important;
  font-weight: bold;
}

.calendar-day.disabled {
  color: var(--color-text-muted);
  opacity: 0.3;
  cursor: not-allowed;
}

/* Service Pills */
.service-pills {
  display: flex;
  gap: var(--space-sm);
  margin-top: 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-pill {
  flex: 1;
  min-width: 0;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 10px 12px;
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--duration-fast) var(--ease-out);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.btn-pill:hover:not(:disabled) {
  border-color: var(--color-primary-light);
  background: var(--color-bg-alt);
}

.btn-pill.active {
  background: #151A40 !important;
  border-color: #151A40 !important;
  color: #FFFFFF !important;
  box-shadow: 0 4px 14px rgba(21, 26, 64, 0.18);
}
.btn-pill.active::after {
  content: "✔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  font-size: 0.72rem;
  margin-left: 6px;
}

.btn-pill:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* Step 2 Summary Bar */
.step-summary-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-md);
  flex-wrap: wrap;
  background: var(--color-bg-alt);
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border-left: 4px solid var(--color-accent);
  margin-bottom: var(--space-lg);
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.btn-back-link {
  background: transparent;
  border: none;
  color: var(--color-primary);
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-back-link:hover {
  text-decoration: underline;
}

.step-summary-text {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--color-text);
  word-break: break-word;
  overflow-wrap: break-word;
  min-width: 0;
  flex: 1 1 auto;
}

/* Checkbox Labels */
.checkbox-label {
  display: flex;
  align-items: flex-start;
  gap: var(--space-sm);
  font-size: 0.85rem;
  color: var(--color-text-light);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  margin-top: 3px;
  width: 16px;
  height: 16px;
  accent-color: var(--color-primary);
}

/* ============================================================
   CHRISTMAS MODE — Decoración navideña (1 dic – 6 ene)
   Se activa añadiendo la clase .christmas-mode al <body>
   ============================================================ */

/* ── Copos de nieve cayendo ── */
.christmas-snowflakes {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}

.christmas-snowflakes .snowflake {
  position: absolute;
  top: -20px;
  color: #fff;
  font-size: 1rem;
  opacity: 0;
  animation: snowfall linear infinite;
  text-shadow: 0 0 4px rgba(255,255,255,0.6);
  user-select: none;
}

@keyframes snowfall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg);
  }
}

/* ── Fondo navideño sutil ── */
body.christmas-mode {
  background: linear-gradient(180deg, #1a0a0a 0%, #2d1215 40%, #1c0f0f 100%);
  color: #f0e8e0;
}

body.christmas-mode .widget-container {
  position: relative;
}

/* ── Banner navideño ── */
.christmas-banner {
  display: none;
}

body.christmas-mode .christmas-banner {
  display: block;
  text-align: center;
  padding: 14px 20px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #8B1A1A 0%, #C0392B 50%, #8B1A1A 100%);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 20px rgba(139, 26, 26, 0.4), inset 0 1px 0 rgba(255,255,255,0.1);
  color: #FFF8E7;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.5;
  animation: bannerGlow 3s ease-in-out infinite alternate;
}

.christmas-banner .christmas-emoji {
  font-size: 1.3rem;
  margin: 0 4px;
}

@keyframes bannerGlow {
  from { box-shadow: 0 4px 20px rgba(139, 26, 26, 0.4), inset 0 1px 0 rgba(255,255,255,0.1); }
  to   { box-shadow: 0 4px 30px rgba(192, 57, 43, 0.6), inset 0 1px 0 rgba(255,255,255,0.15), 0 0 15px rgba(255, 215, 0, 0.15); }
}

/* ── Tarjeta del widget con toques navideños ── */
body.christmas-mode .widget-welcome {
  background: linear-gradient(135deg, #2a1518 0%, #3d1c20 100%);
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
  margin-bottom: var(--space-lg);
  color: #f0e8e0;
}

body.christmas-mode .widget-welcome p {
  color: #e0d5cc;
}

body.christmas-mode .widget-welcome strong {
  color: #FFD700;
}

body.christmas-mode .widget-notice {
  background: rgba(139, 26, 26, 0.2);
  border-color: rgba(255, 215, 0, 0.2);
  color: #e0d5cc;
}

/* ── Formulario con fondo oscuro navideño ── */
body.christmas-mode .widget-form {
  background: #2a1518;
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: var(--radius-lg);
  padding: var(--space-lg);
}

body.christmas-mode .form-label-header,
body.christmas-mode label {
  color: #e0d5cc;
}

body.christmas-mode select,
body.christmas-mode input[type="text"],
body.christmas-mode input[type="email"],
body.christmas-mode input[type="tel"],
body.christmas-mode textarea {
  background: #3d1c20;
  border-color: rgba(255, 215, 0, 0.15);
  color: #f0e8e0;
}

body.christmas-mode select:focus,
body.christmas-mode input:focus,
body.christmas-mode textarea:focus {
  border-color: #FFD700;
  box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.15);
}

/* ── Calendario navideño ── */
body.christmas-mode .calendar-inline {
  background: #3d1c20;
  border-color: rgba(255, 215, 0, 0.15);
}

body.christmas-mode .calendar-inline-header {
  color: #FFD700;
}

body.christmas-mode .calendar-inline-month-label {
  color: #FFD700;
  font-weight: 700;
}

body.christmas-mode .btn-cal-nav {
  color: #FFD700;
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.2);
}

body.christmas-mode .btn-cal-nav:hover {
  background: rgba(255, 215, 0, 0.2);
}

body.christmas-mode .calendar-inline-weekdays span {
  color: #C0392B;
  font-weight: 700;
}

body.christmas-mode .calendar-inline-days .cal-day {
  color: #e0d5cc;
}

body.christmas-mode .calendar-inline-days .cal-day:hover:not(.disabled):not(.selected) {
  background: rgba(255, 215, 0, 0.15);
  color: #FFD700;
}

body.christmas-mode .calendar-inline-days .cal-day.selected {
  background: linear-gradient(135deg, #C0392B, #8B1A1A);
  color: #FFF8E7;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.4);
}

body.christmas-mode .calendar-inline-days .cal-day.today:not(.selected) {
  border-color: #FFD700;
  color: #FFD700;
}

body.christmas-mode .calendar-inline-days .cal-day.disabled {
  color: #5a3a3e;
}

/* ── Pills de servicio navideñas ── */
body.christmas-mode .btn-pill {
  background: #3d1c20;
  border-color: rgba(255, 215, 0, 0.15);
  color: #e0d5cc;
}

body.christmas-mode .btn-pill:hover:not([disabled]) {
  border-color: #FFD700;
  color: #FFD700;
}

body.christmas-mode .btn-pill.active {
  background: linear-gradient(135deg, #C0392B, #8B1A1A);
  border-color: #C0392B;
  color: #FFF8E7;
  box-shadow: 0 2px 8px rgba(192, 57, 43, 0.3);
}

/* ── Botón principal navideño ── */
body.christmas-mode .btn-submit {
  background: linear-gradient(135deg, #C0392B 0%, #8B1A1A 100%);
  color: #FFF8E7;
  border: 1px solid rgba(255, 215, 0, 0.3);
  box-shadow: 0 4px 15px rgba(192, 57, 43, 0.4);
}

body.christmas-mode .btn-submit:hover {
  background: linear-gradient(135deg, #E74C3C 0%, #C0392B 100%);
  box-shadow: 0 6px 20px rgba(192, 57, 43, 0.5), 0 0 10px rgba(255, 215, 0, 0.2);
  transform: translateY(-1px);
}

/* ── Barra de resumen paso 2 ── */
body.christmas-mode .step-summary-bar {
  background: rgba(139, 26, 26, 0.2);
  border-left-color: #FFD700;
}

body.christmas-mode .step-summary-text {
  color: #e0d5cc;
}

body.christmas-mode .btn-back-link {
  color: #FFD700;
}

/* ── Pantalla de éxito navideña ── */
body.christmas-mode .success-screen {
  background: #2a1518;
  border: 1px solid rgba(255, 215, 0, 0.15);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
}

body.christmas-mode .success-title {
  color: #FFD700;
}

body.christmas-mode .success-message,
body.christmas-mode .success-contact {
  color: #e0d5cc;
}

body.christmas-mode .success-details {
  background: rgba(139, 26, 26, 0.2);
  border-color: rgba(255, 215, 0, 0.15);
  color: #e0d5cc;
}

body.christmas-mode .btn-new-reservation {
  background: #3d1c20;
  border: 1px solid rgba(255, 215, 0, 0.2);
  color: #FFD700;
}

body.christmas-mode .btn-new-reservation:hover {
  background: rgba(255, 215, 0, 0.1);
}

/* ── Footer navideño ── */
body.christmas-mode .widget-footer {
  color: #5a3a3e;
}

body.christmas-mode .widget-footer a {
  color: #C0392B;
}

/* ── Checkbox navideño ── */
body.christmas-mode .checkbox-label {
  color: #d0c5bc;
}

body.christmas-mode .checkbox-label input[type="checkbox"] {
  accent-color: #C0392B;
}

/* ── Menú especial navideño ── */
body.christmas-mode .special-menu-notice {
  background: rgba(139, 26, 26, 0.25);
  border-color: rgba(255, 215, 0, 0.2);
}

body.christmas-mode .special-menu-badge {
  background: linear-gradient(135deg, #C0392B, #8B1A1A);
  color: #FFF8E7;
}

body.christmas-mode .btn-ver-menu {
  background: rgba(255, 215, 0, 0.1);
  border-color: rgba(255, 215, 0, 0.3);
  color: #FFD700;
}

body.christmas-mode .btn-ver-menu:hover {
  background: rgba(255, 215, 0, 0.2);
}

/* ── Luces navideñas decorativas en la parte superior ── */
.christmas-lights {
  display: none;
}

body.christmas-mode .christmas-lights {
  display: block;
  width: 100%;
  height: 30px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.christmas-lights .light-string {
  display: flex;
  justify-content: space-around;
  align-items: flex-start;
  padding: 0 10px;
}

.christmas-lights .light-bulb {
  width: 10px;
  height: 14px;
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  position: relative;
  top: 4px;
  animation: twinkle 2s ease-in-out infinite alternate;
}

.christmas-lights .light-bulb::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 5px;
  background: #555;
  border-radius: 2px 2px 0 0;
}

.christmas-lights .light-bulb:nth-child(4n+1) { background: #ff4444; box-shadow: 0 2px 8px rgba(255,68,68,0.6); animation-delay: 0s; }
.christmas-lights .light-bulb:nth-child(4n+2) { background: #FFD700; box-shadow: 0 2px 8px rgba(255,215,0,0.6); animation-delay: 0.5s; }
.christmas-lights .light-bulb:nth-child(4n+3) { background: #44ff44; box-shadow: 0 2px 8px rgba(68,255,68,0.6); animation-delay: 1s; }
.christmas-lights .light-bulb:nth-child(4n+4) { background: #4488ff; box-shadow: 0 2px 8px rgba(68,136,255,0.6); animation-delay: 1.5s; }

.christmas-lights .wire {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 2px;
  background: #444;
  border-radius: 1px;
}

@keyframes twinkle {
  0%   { opacity: 0.5; transform: scale(0.9); }
  50%  { opacity: 1;   transform: scale(1.1); }
  100% { opacity: 0.7; transform: scale(1); }
}

/* ── Responsive: copos más pequeños en móvil ── */
@media (max-width: 600px) {
  .christmas-snowflakes .snowflake {
    font-size: 0.75rem;
  }
  .christmas-banner {
    font-size: 0.85rem;
    padding: 10px 14px;
  }
}


/* ── Button & Footer Corporate Styling ── */
.btn-submit {
  width: 100%;
  height: 48px;
  border-radius: 10px;
  background: #151A40;
  color: #FFFFFF;
  font-size: 0.98rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(21, 26, 64, 0.16);
}

.btn-submit:hover:not(:disabled) {
  background: #1E2558;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(21, 26, 64, 0.24);
}

.widget-footer {
  text-align: center;
  margin-top: 32px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: #94A3B8;
  background: transparent;
  border: none;
  padding: 0;
}

.widget-footer a {
  color: #64748B;
  text-decoration: none;
}

.widget-footer a:hover {
  text-decoration: underline;
  color: #151A40;
}

/* ════════════════════════════════════════════════════════════
   MASTER RESPONSIVE STYLES (TABLETS & SMARTPHONES)
   ════════════════════════════════════════════════════════════ */

@media (max-width: 768px) {
  .widget-container {
    padding: 16px 12px;
    margin: 16px auto 32px auto;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .widget-logo-img {
    height: 52px;
    max-width: 100%;
  }

  .widget-welcome {
    padding: 18px 16px;
    margin-bottom: 16px;
    width: 100%;
    box-sizing: border-box;
  }

  .widget-form {
    padding: 20px 14px;
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
    width: 100%;
  }

  .step-layout-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: var(--space-md);
  }

  .step-col-calendar,
  .step-col-details {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .widget-notice {
    flex-direction: column;
    gap: var(--space-xs);
    word-break: break-word;
    overflow-wrap: break-word;
  }

  .calendar-inline {
    padding: 12px 8px !important;
    border-radius: var(--radius-md);
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
  }

  .calendar-inline-days {
    gap: 4px !important;
    width: 100% !important;
  }

  .calendar-day, .calendar-day-empty {
    font-size: 0.8rem !important;
    min-width: 0 !important;
  }

  .calendar-inline-month-label {
    font-size: 0.95rem;
  }

  .service-pills {
    gap: 6px;
  }

  .btn-pill {
    padding: 10px 4px;
    font-size: 0.82rem;
  }

  .step-summary-bar {
    padding: 10px 12px;
    gap: 8px;
    flex-direction: column;
    align-items: flex-start;
  }

  .success-screen {
    padding: var(--space-xl) var(--space-sm);
  }
}

@media (max-width: 480px) {
  .widget-container {
    padding: 10px 6px;
    margin: 12px auto 24px auto;
  }

  .widget-welcome {
    padding: 14px 10px;
    margin-bottom: 12px;
  }

  .widget-form {
    padding: 14px 8px;
  }

  .calendar-inline {
    padding: 8px 4px !important;
  }

  .calendar-inline-days {
    gap: 2px !important;
  }

  .calendar-day, .calendar-day-empty {
    font-size: 0.75rem !important;
  }
}

/* ── v4: aforo y menú especial ── */
.btn-pill .pill-full { display: block; font-size: 0.7rem; font-weight: 600; color: #b91c1c; margin-top: 2px; }
.special-menu-notice { border: 1.5px solid #f0c36d; background: #fff8e6; border-radius: 12px; padding: 14px 16px; margin: 4px 0 16px; }
.special-menu-notice-header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 6px; }
.special-menu-badge { font-size: 0.75rem; font-weight: 700; color: #9a6700; text-transform: uppercase; letter-spacing: 0.04em; }
.special-menu-title { margin: 0; font-size: 1.05rem; color: #3d2c00; }
.special-menu-text { margin: 0 0 10px; font-size: 0.9rem; color: #5c4a1a; }
.btn-ver-menu { background: #3d2c00; color: #fff; border-radius: 8px; text-decoration: none; font-weight: 600; font-size: 0.9rem; }
.special-menu-accept { align-items: center; gap: 8px; margin-top: 12px; font-size: 0.9rem; font-weight: 600; color: #3d2c00; cursor: pointer; }
.special-menu-accept input { width: 18px; height: 18px; }

.senal-notice { background: #fff4e5; border: 1.5px solid #f5b971; color: #7c2d12; border-radius: 12px; padding: 12px 14px; font-size: 0.9rem; line-height: 1.45; margin: 8px 0 4px; }
.btn-pill .pill-full.pill-espera { color: #7C3AED; }
.btn-pill.active .pill-full.pill-espera { color: #DDD6FE; }

/* ── Ajustes 23/10/2026 ── */
/* Campo de email con el mismo diseño que el resto (antes salía sin estilo) */
.widget-form input[type="email"] {
  width: 100%;
  min-height: 44px;
  padding: 0.75rem 1rem;
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--color-text);
  background: var(--color-bg-input);
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  box-sizing: border-box;
  transition: border-color var(--duration-fast) var(--ease-out), box-shadow var(--duration-fast) var(--ease-out), background var(--duration-fast) var(--ease-out);
  -webkit-appearance: none;
  appearance: none;
}
.widget-form input[type="email"]::placeholder { color: var(--color-text-muted); opacity: 1; }

/* Servicio completo: «Lista de espera» o «Completo» en una segunda línea dentro del botón, sin cortarse */
.btn-pill:has(.pill-full) {
  flex-wrap: wrap !important;
  height: auto !important;
  min-height: 44px;
  padding-top: 6px !important;
  padding-bottom: 6px !important;
  row-gap: 0 !important;
  white-space: normal !important;
  line-height: 1.2;
}
.btn-pill .pill-full {
  flex-basis: 100%;
  text-align: center;
  margin-top: 1px !important;
  font-family: var(--font-body);
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  white-space: nowrap;
  letter-spacing: .01em;
}

/* Día o turno bloqueado desde el panel: se reserva por teléfono */
.pill-llamar { margin-left: 2px; color: #3B4BB8; font-size: 1rem !important; }
.btn-pill[data-bloqueado="1"] { opacity: .85; }
.aviso-llamar { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #EEF0FF; border: 1px solid #DCE1F5; color: #151A40; font-size: .92rem; line-height: 1.35; }
.aviso-llamar[hidden] { display: none; }
.aviso-llamar .material-symbols-rounded { color: #3B4BB8; font-size: 1.2rem; flex: none; }
.aviso-llamar a { color: #3B4BB8; font-weight: 800; text-decoration: none; white-space: nowrap; }
.calendar-day.bloqueado { color: #3B4BB8; background: #F3F5FF; cursor: pointer; text-decoration: none; }
