/* ========================================================
   IDENTIDAD VISUAL: VERASENS (CÓRDOBA, ARGENTINA)
   Paleta: Carbón Botánico, Verde Musgo, Pistacho Gourmet,
           Blanco Tiza, Frambuesa y Acentos Neón Cálido.
   ======================================================== */
:root {
  /* Fondos y Superficies */
  --bg-primary: #0f1311;
  --bg-secondary: #151b17;
  --bg-surface: #1a221d;
  --bg-card: #212c25;
  --bg-input: #121714;
  
  /* Bordes */
  --border-color: rgba(255, 255, 255, 0.08);
  --border-focus: #9fb88d;
  
  /* Textos */
  --text-primary: #f9f9fb;
  --text-secondary: #a3b0a7;
  --text-muted: #66756b;

  /* Colores de Marca Verasens */
  --accent-pistacho: #9fb88d;
  --accent-pistacho-hover: #88a176;
  --accent-frambuesa: #b82d4a;
  --accent-moss: #2f4033;
  --accent-wifi: #3b82f6;
  --accent-wifi-hover: #2563eb;
  --accent-neon-glow: rgba(255, 245, 220, 0.35);

  /* Radios & Sombras */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;

  --shadow-sm: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-md: 0 10px 28px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 20px 48px rgba(0, 0, 0, 0.6);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--font-sans);
  background: 
    radial-gradient(ellipse at center 25%, rgba(10, 14, 12, 0.45) 0%, rgba(5, 7, 6, 0.88) 100%),
    url('assets/verasens-bg.jpg') no-repeat center top fixed;
  background-size: cover;
  color: var(--text-primary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
  line-height: 1.5;
}

body.modal-open {
  overflow: hidden;
  touch-action: none;
}

.app-container {
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  gap: 22px;
  padding: 30px 22px 24px;
  background: rgba(14, 19, 16, 0.75);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  border: 1px solid rgba(159, 184, 141, 0.22);
  border-radius: 26px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.75), 
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

@media (max-width: 480px) {
  body {
    padding: 16px 12px;
    align-items: center;
    background: 
      radial-gradient(ellipse at center 20%, rgba(10, 15, 12, 0.6) 0%, rgba(5, 7, 6, 0.94) 85%),
      url('assets/verasens-bg.jpg') no-repeat center 0%;
    background-size: cover;
    background-attachment: scroll;
  }
  .app-container {
    padding: 24px 18px 20px;
    border-radius: 22px;
    gap: 18px;
  }
}

/* ========================================================
   HEADER & MARCA VERASENS
   ======================================================== */
.header {
  text-align: center;
  padding: 6px 0 2px;
}

/* Tipografía script y aura distintiva de VeraSens */
.brand-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 2.35rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #fffaf0;
  text-shadow: 0 0 18px rgba(255, 245, 220, 0.35), 0 2px 5px rgba(0, 0, 0, 0.85);
  margin: 0;
  line-height: 1.1;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: #c4d1c6;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin-top: 6px;
}

/* Banner de usuario recurrente */
.returning-banner {
  background: rgba(159, 184, 141, 0.09);
  border: 1px solid rgba(159, 184, 141, 0.22);
  border-radius: var(--radius-md);
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

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

.user-avatar {
  font-size: 1.2rem;
}

.returning-greeting {
  font-size: 0.84rem;
  font-weight: 600;
  color: #f3f5f3;
}

.returning-badge {
  display: block;
  font-size: 0.72rem;
  color: var(--accent-pistacho);
  letter-spacing: 0.02em;
}

.btn-text-small {
  background: none;
  border: none;
  color: #94a397;
  font-size: 0.72rem;
  text-decoration: underline;
  cursor: pointer;
  transition: color 0.2s;
}

.btn-text-small:hover {
  color: var(--text-primary);
}

/* ========================================================
   TARJETAS DE ACCIÓN PRINCIPALES
   ======================================================== */
.main-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.action-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 18px;
  border-radius: var(--radius-md);
  color: var(--text-primary);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
  touch-action: manipulation;
}

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

/* Carta Digital - Hero Card */
.card-menu {
  background: linear-gradient(135deg, rgba(29, 39, 32, 0.95) 0%, rgba(19, 26, 21, 0.95) 100%);
  border: 1px solid rgba(159, 184, 141, 0.32);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(159, 184, 141, 0.2);
}

.card-menu:hover {
  border-color: rgba(159, 184, 141, 0.55);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55), 0 0 20px rgba(159, 184, 141, 0.12);
  transform: translateY(-2px);
}

.card-menu .card-icon-wrapper {
  background: radial-gradient(circle, rgba(159, 184, 141, 0.22) 0%, rgba(159, 184, 141, 0.08) 100%);
  border: 1px solid rgba(159, 184, 141, 0.4);
}

/* Wi-Fi - Warm & Integrated */
.card-wifi {
  background: linear-gradient(135deg, rgba(23, 29, 25, 0.88) 0%, rgba(16, 20, 18, 0.92) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}

.card-wifi:hover {
  border-color: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}

.card-wifi .card-icon-wrapper {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.card-icon-wrapper {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.card-icon-thumb {
  padding: 0;
  border: 1px solid rgba(159, 184, 141, 0.45);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.card-icon-thumb-wifi {
  padding: 6px;
  background: radial-gradient(circle at center, rgba(218, 172, 85, 0.16) 0%, rgba(20, 26, 22, 0.5) 100%);
  border: 1px solid rgba(218, 172, 85, 0.35);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35), 0 0 10px rgba(218, 172, 85, 0.12);
}

.card-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
  transition: transform 0.3s ease;
}

.card-thumb-wifi-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.action-card:hover .card-thumb-img {
  transform: scale(1.08);
}

.action-card:hover .card-thumb-wifi-img {
  transform: scale(1.12);
}

.card-icon {
  font-size: 24px;
}

.card-text {
  flex: 1;
}

.card-text h2 {
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 3px;
  color: #ffffff;
}

.card-text p {
  font-size: 0.8rem;
  color: #9eaba1;
  line-height: 1.35;
}

.card-arrow {
  font-size: 1.2rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: transform 0.2s ease, color 0.2s ease;
}

.action-card:hover .card-arrow {
  color: var(--accent-pistacho);
  transform: translateX(4px);
}

/* ========================================================
   MODALES (VENTANAS EMERGENTES)
   ======================================================== */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(8, 12, 10, 0.82);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  z-index: 1000;
  padding: 0;
  transition: opacity 0.25s ease;
}

@media (min-width: 500px) {
  .modal-backdrop {
    align-items: center;
    padding: 20px;
  }
}

.modal-card {
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  background: rgba(16, 22, 18, 0.94);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  border: 1px solid rgba(159, 184, 141, 0.25);
  padding: 26px 22px 24px;
  box-shadow: 
    0 24px 60px rgba(0, 0, 0, 0.8),
    0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@media (min-width: 500px) {
  .modal-card {
    border-radius: 24px;
  }
}

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

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

.modal-pill {
  display: inline-block;
  padding: 4px 11px;
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(159, 184, 141, 0.14);
  color: var(--accent-pistacho);
  border-radius: var(--radius-full);
  margin-bottom: 8px;
  border: 1px solid rgba(159, 184, 141, 0.28);
}

.pill-botanic {
  background: rgba(218, 172, 85, 0.14);
  color: #e5c07b;
  border-color: rgba(218, 172, 85, 0.3);
}

.pill-pistacho {
  background: rgba(159, 184, 141, 0.22);
  color: var(--accent-pistacho);
  border-color: rgba(159, 184, 141, 0.35);
}

.modal-title {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #fffaf0;
  text-shadow: 0 0 16px rgba(255, 245, 220, 0.2), 0 2px 4px rgba(0, 0, 0, 0.85);
  margin-bottom: 4px;
  line-height: 1.2;
}

.modal-subtitle {
  font-size: 0.83rem;
  color: #9eaba1;
  line-height: 1.4;
}

.btn-close {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: var(--radius-full);
  font-size: 1.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  touch-action: manipulation;
  transition: background-color 0.2s, border-color 0.2s, transform 0.12s ease;
  outline: none;
}

.btn-close:focus {
  outline: none;
}

.btn-close:focus-visible {
  outline: 2px solid var(--accent-pistacho);
  outline-offset: 2px;
}

.btn-close:active {
  transform: scale(0.92);
  background: rgba(255, 255, 255, 0.12);
}

button:focus:not(:focus-visible),
a:focus:not(:focus-visible) {
  outline: none;
}

/* ========================================================
   FORMULARIO DE CAPTURA
   ======================================================== */
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

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

@media (max-width: 380px) {
  .form-row {
    grid-template-columns: 1fr;
  }
}

label {
  font-size: 0.79rem;
  font-weight: 600;
  color: #cdd9cf;
}

.required {
  color: var(--accent-pistacho);
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
select {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 184, 141, 0.2);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  touch-action: manipulation;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
}

input::placeholder {
  color: #637267;
  font-size: 0.88rem;
}

input[type="date"],
/* ========================================================
   SELECTOR PERSONALIZADO (DROPDOWN OSCURO ESTILO VERASENS)
   ======================================================== */
.custom-select-container {
  position: relative;
  width: 100%;
}

.custom-select-trigger {
  width: 100%;
  height: 46px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(159, 184, 141, 0.2);
  border-radius: var(--radius-sm);
  padding: 0 14px;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  text-align: left;
  touch-action: manipulation;
  transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
  outline: none;
}

.custom-select-trigger:focus,
.custom-select-container.open .custom-select-trigger {
  border-color: var(--accent-pistacho);
  background: rgba(255, 255, 255, 0.07);
  box-shadow: 0 0 0 3px rgba(159, 184, 141, 0.2);
}

.custom-select-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 8px;
}

.custom-select-text.placeholder {
  color: #637267;
  font-size: 0.88rem;
}

.custom-select-arrow {
  font-size: 0.65rem;
  color: var(--text-muted);
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.custom-select-container.open .custom-select-arrow {
  transform: rotate(180deg);
  color: var(--accent-pistacho);
}

.custom-select-dropdown {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  right: 0;
  z-index: 80;
  background: #141c17;
  border: 1px solid rgba(159, 184, 141, 0.35);
  border-radius: var(--radius-md);
  box-shadow: 
    0 16px 36px rgba(0, 0, 0, 0.85),
    0 0 0 1px rgba(255, 255, 255, 0.05);
  max-height: 220px;
  overflow-y: auto;
  display: none;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(159, 184, 141, 0.3) transparent;
}

.custom-select-container.open .custom-select-dropdown {
  display: block;
  animation: fadeInDropdown 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes fadeInDropdown {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.custom-select-option {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.88rem;
  color: #d1ddd4;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: background-color 0.15s, color 0.15s;
}

.custom-select-option:hover,
.custom-select-option:active {
  background: rgba(159, 184, 141, 0.15);
  color: #fffaf0;
}

.custom-select-option.selected {
  background: rgba(159, 184, 141, 0.2);
  color: var(--accent-pistacho);
  font-weight: 700;
}

.option-check {
  display: none;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--accent-pistacho);
}

.custom-select-option.selected .option-check {
  display: inline-block;
}

.hint-msg {
  font-size: 0.72rem;
  color: #a4be92;
  margin-top: 2px;
}

.error-msg {
  font-size: 0.74rem;
  color: #f87171;
  min-height: 14px;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.77rem;
  color: #a4b3a7;
  line-height: 1.35;
  margin-top: 2px;
}

.form-checkbox input[type="checkbox"] {
  accent-color: var(--accent-pistacho);
  width: 16px;
  height: 16px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* Honeypot invisible para usuarios, detectable por bots */
.security-honeypot {
  position: absolute !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  visibility: hidden !important;
}

/* Aviso Legal de Protección de Datos (Ley 25.326) */
.legal-notice {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(159, 184, 141, 0.16);
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.72rem;
  color: #8c9e90;
  line-height: 1.4;
  margin-top: 2px;
}

.legal-notice strong {
  color: #c4d4c7;
  font-weight: 600;
}

/* Botón principal estilo Verasens */
.btn-primary {
  width: 100%;
  height: 48px;
  background: linear-gradient(135deg, #a4be92 0%, #88a176 100%);
  border: none;
  border-radius: var(--radius-md);
  color: #0b110e;
  font-family: inherit;
  font-size: 0.96rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 6px;
  box-shadow: 0 8px 24px rgba(142, 172, 126, 0.25);
  transition: opacity 0.2s, transform 0.15s, box-shadow 0.2s, filter 0.2s;
}

.btn-primary:hover {
  filter: brightness(1.05);
  box-shadow: 0 10px 28px rgba(142, 172, 126, 0.35);
}

.btn-primary:active {
  transform: scale(0.98);
}

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

/* Spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(0, 0, 0, 0.2);
  border-top-color: #0d120f;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* ========================================================
   MODAL DE WI-FI
   ======================================================== */
.wifi-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wifi-info-box {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.wifi-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.92rem;
}

.wifi-label {
  color: var(--text-secondary);
}

.wifi-val {
  color: var(--text-primary);
  font-weight: 600;
}

.wifi-val-pass {
  background: rgba(0, 0, 0, 0.35);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-family: monospace;
  font-size: 1rem;
  letter-spacing: 0.05em;
  color: #93c5fd;
}

.btn-copy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: rgba(96, 165, 250, 0.15);
  border: 1px solid rgba(96, 165, 250, 0.35);
  color: #bfdbfe;
  border-radius: var(--radius-sm);
  height: 42px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  margin-top: 4px;
}

.btn-copy:active {
  transform: scale(0.98);
}

.wifi-qr-section {
  text-align: center;
}

.wifi-qr-instruction {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.qr-container {
  display: inline-block;
  padding: 14px;
  background: #ffffff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.wifi-qr-img {
  width: 170px;
  height: 170px;
  display: block;
}

.btn-secondary {
  width: 100%;
  height: 48px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  color: var(--text-primary);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
}

/* ========================================================
   MODAL DE MENÚ INTEGRADO (VISOR PDF DE CARTA OFICIAL)
   ======================================================== */
.modal-menu-card {
  max-width: 520px;
}

.modal-pdf-card {
  max-width: 720px;
  width: 95%;
  height: 92vh;
  max-height: 94vh;
  padding: 20px 16px 14px;
  display: flex;
  flex-direction: column;
}

@media (max-width: 480px) {
  .modal-pdf-card {
    width: 100%;
    height: 96dvh;
    max-height: 96dvh;
    border-radius: 20px 20px 0 0;
    padding: 16px 14px 12px;
  }
}

@media (min-width: 640px) {
  .modal-pdf-card {
    width: 90%;
    height: 88vh;
    padding: 24px 22px 18px;
    border-radius: 24px;
  }
}

.modal-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-external-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  width: 38px;
  height: 38px;
  min-width: 38px;
  min-height: 38px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  text-decoration: none;
  touch-action: manipulation;
  transition: background-color 0.2s, border-color 0.2s, color 0.2s, transform 0.12s ease;
  outline: none;
}

.btn-external-link:focus {
  outline: none;
}

.btn-external-link:focus-visible {
  outline: 2px solid var(--accent-pistacho);
  outline-offset: 2px;
}

.btn-external-link:hover {
  background: rgba(159, 184, 141, 0.18);
  border-color: var(--accent-pistacho);
  color: var(--accent-pistacho);
}

.btn-external-link:active {
  transform: scale(0.92);
}

/* Pestañas de páginas de la carta */
.menu-page-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.menu-page-tab {
  flex: 1;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 8px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  text-align: center;
}

.menu-page-tab.active {
  background: var(--accent-pistacho);
  color: #0b110e;
  border-color: var(--accent-pistacho);
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(159, 184, 141, 0.25);
}

/* Contenedor del Visor Táctil Interactivo */
.menu-touch-viewport {
  flex: 1;
  min-height: 0;
  width: 100%;
  background: #0d120f;
  border: 1px solid rgba(159, 184, 141, 0.2);
  border-radius: var(--radius-md);
  overflow: hidden;
  position: relative;
  touch-action: none; /* Desactiva el scroll nativo dentro del visor para permitir pinch-to-zoom */
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  box-shadow: inset 0 2px 14px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
}

.menu-zoom-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform-origin: center center;
  transition: transform 0.08s ease-out;
  will-change: transform;
}

.menu-touch-img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  display: block;
}

/* Barra flotante de controles de zoom */
.menu-zoom-controls {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(14, 20, 16, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(159, 184, 141, 0.3);
  border-radius: var(--radius-full);
  padding: 4px 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
  z-index: 5;
}

.btn-zoom-action {
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-primary);
  font-size: 1.1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
  transition: background-color 0.15s, transform 0.1s;
}

.btn-zoom-action:active {
  transform: scale(0.92);
  background: rgba(159, 184, 141, 0.2);
}

.menu-zoom-indicator {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--accent-pistacho);
  min-width: 38px;
  text-align: center;
  font-family: monospace;
}

.btn-zoom-reset {
  background: rgba(159, 184, 141, 0.15);
  border: 1px solid rgba(159, 184, 141, 0.3);
  color: var(--accent-pistacho);
  border-radius: var(--radius-full);
  padding: 4px 9px;
  font-size: 0.7rem;
  font-weight: 700;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: background-color 0.15s;
}

.btn-zoom-reset:active {
  transform: scale(0.94);
}

.pdf-modal-footer {
  margin-top: 10px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.menu-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 8px;
  margin-bottom: 16px;
  scrollbar-width: none;
}

.menu-tabs::-webkit-scrollbar {
  display: none;
}

.menu-tab {
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  color: var(--text-secondary);
  border-radius: var(--radius-full);
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-tab.active {
  background: var(--accent-pistacho);
  color: #0d120f;
  border-color: var(--accent-pistacho);
}

.menu-items-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 48vh;
  overflow-y: auto;
  padding-right: 4px;
}

.menu-item-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
}

.menu-item-info h4 {
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 3px;
  color: var(--text-primary);
}

.menu-item-info p {
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.3;
}

.menu-item-price {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--accent-pistacho);
  flex-shrink: 0;
}

.menu-footer {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
}

.menu-note {
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

/* ========================================================
   FOOTER & UTILIDADES
   ======================================================== */
.footer {
  text-align: center;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-note {
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--accent-pistacho);
  margin: 0;
}

.footer-branches-divider {
  width: 55%;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(159, 184, 141, 0.35), transparent);
  margin: 11px auto 9px;
}

.footer-branches {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.branches-title {
  font-size: 0.67rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8c9b90;
}

.branches-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.branch-link {
  font-size: 0.75rem;
  font-weight: 500;
  color: #d1dcce;
  text-decoration: none;
  transition: color 0.2s ease;
}

.branch-link:hover {
  color: #ffffff;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.branch-separator {
  color: rgba(159, 184, 141, 0.4);
  font-size: 0.7rem;
}

.hidden {
  display: none !important;
}
