/* === TOP BAR === */
.topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) var(--kiosk-padding-x);
  background: var(--pv-cream);
  border-bottom: 1px solid rgba(110, 122, 130, 0.15);
  z-index: 5;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-logo {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-pill);
  background: var(--pv-gradient-ocean);
  display: grid;
  place-items: center;
  color: var(--pv-white);
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 28px;
  flex-shrink: 0;
}

.topbar-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 26px;
  color: var(--pv-deep);
  line-height: 1.15;
}

.topbar-subtitle {
  font-size: var(--fs-micro);
  color: var(--pv-stone);
  margin-top: 2px;
}

/* === LANGUAGE TOGGLE === */
.lang-toggle {
  display: flex;
  background: var(--pv-sand);
  border-radius: var(--radius-pill);
  padding: 6px;
  gap: 4px;
}

.lang-btn {
  min-width: 72px;
  height: 56px;
  padding: 0 var(--space-5);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-body);
  color: var(--pv-stone);
  transition: background var(--dur-fast), color var(--dur-fast);
}

.lang-btn.is-active {
  background: var(--pv-white);
  color: var(--pv-deep);
  box-shadow: var(--shadow-sm);
}

/* === BOTÓN INICIO FLOTANTE === */
.home-fab {
  position: absolute;
  bottom: var(--space-7);
  right: var(--space-7);
  height: var(--touch-comfortable);
  padding: 0 var(--space-7);
  border-radius: var(--radius-pill);
  background: var(--pv-deep);
  color: var(--pv-cream);
  font-weight: 600;
  font-size: var(--fs-body);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  z-index: 50;
  transition: transform var(--dur-fast) var(--ease-snappy);
}

.home-fab:active { transform: scale(0.96); }
.home-fab .icon { font-size: 28px; }

/* === BOTÓN ATRÁS === */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-3);
  height: 72px;
  padding: 0 var(--space-5) 0 var(--space-4);
  border-radius: var(--radius-pill);
  background: var(--pv-white);
  color: var(--pv-deep);
  font-weight: 500;
  font-size: var(--fs-body);
  box-shadow: var(--shadow-sm);
  transition: transform var(--dur-fast) var(--ease-snappy);
}

.back-btn:active { transform: scale(0.97); }
.back-btn .icon { font-size: 28px; }

/* === BOTÓN KIOSCO BASE === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  min-height: var(--touch-comfortable);
  padding: 0 var(--space-7);
  border-radius: var(--radius-pill);
  font-weight: 600;
  font-size: var(--fs-body-lg);
  text-align: center;
  transition: transform var(--dur-fast) var(--ease-snappy), box-shadow var(--dur-fast);
}

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

.btn-primary {
  background: var(--pv-ocean);
  color: var(--pv-white);
  box-shadow: var(--shadow-md);
}

.btn-sunset {
  background: var(--pv-gradient-sunset);
  color: var(--pv-white);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background: var(--pv-white);
  color: var(--pv-deep);
  box-shadow: var(--shadow-sm);
  border: 1.5px solid rgba(14, 42, 58, 0.10);
}

.btn-ghost {
  background: transparent;
  color: var(--pv-deep);
}

.btn-large {
  min-height: var(--touch-large);
  font-size: 32px;
  padding: 0 var(--space-8);
}

.btn-block { display: flex; width: 100%; }

/* === MODULE TILE (Home) === */
.module-tile {
  position: relative;
  width: 100%;
  min-height: 280px;
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  display: flex;
  align-items: center;
  gap: var(--space-6);
  text-align: left;
  color: var(--pv-white);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  transition: transform var(--dur-base) var(--ease-snappy);
}

.module-tile:active { transform: scale(0.98); }

.module-tile.tile-tourism { background: var(--pv-gradient-ocean); }
.module-tile.tile-procedures { background: linear-gradient(135deg, #0E2A3A 0%, #0A6E8C 100%); }
.module-tile.tile-payments { background: var(--pv-gradient-sunset); }

.module-tile-icon {
  width: 120px;
  height: 120px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-size: 64px;
  flex-shrink: 0;
  backdrop-filter: blur(4px);
}

.module-tile-text { flex: 1; min-width: 0; }
.module-tile-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}
.module-tile-desc {
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  opacity: 0.92;
}
.module-tile-arrow {
  font-size: 56px;
  opacity: 0.7;
  flex-shrink: 0;
}

/* === CARDS === */
.card {
  background: var(--pv-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-base) var(--ease-snappy);
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
}

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

.card-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: var(--pv-stone-light);
  background-size: cover;
  background-position: center;
  position: relative;
}

.card-image-tag {
  position: absolute;
  top: var(--space-4);
  left: var(--space-4);
  background: rgba(255, 251, 243, 0.94);
  color: var(--pv-ocean);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-pill);
  font-size: var(--fs-micro);
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.card-body {
  padding: var(--space-5) var(--space-6);
}

.card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--pv-deep);
  line-height: 1.15;
  margin-bottom: var(--space-2);
}

.card-desc {
  font-size: var(--fs-body);
  color: var(--pv-stone);
  line-height: var(--lh-snug);
}

/* Category card (sin imagen) */
.cat-card {
  width: 100%;
  min-height: 200px;
  background: var(--pv-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-5);
  text-align: left;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid transparent;
  transition: transform var(--dur-fast) var(--ease-snappy), border-color var(--dur-fast);
}

.cat-card:active {
  transform: scale(0.98);
  border-color: var(--pv-turquoise);
}

.cat-card-icon {
  width: 80px;
  height: 80px;
  border-radius: var(--radius-md);
  background: var(--pv-sand);
  display: grid;
  place-items: center;
  font-size: 40px;
  color: var(--pv-ocean);
  flex-shrink: 0;
}

.cat-card-text { flex: 1; }
.cat-card-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 32px;
  color: var(--pv-deep);
  margin-bottom: 2px;
}
.cat-card-meta { color: var(--pv-stone); font-size: var(--fs-caption); }
.cat-card-arrow { font-size: 36px; color: var(--pv-stone); }

/* === DEMO BADGE === */
.demo-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--pv-warning);
  color: var(--pv-white);
  border-radius: var(--radius-pill);
  font-size: var(--fs-micro);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.demo-badge::before {
  content: "";
  width: 8px;
  height: 8px;
  background: currentColor;
  border-radius: 50%;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === DISCLAIMER === */
.disclaimer {
  background: rgba(200, 133, 29, 0.08);
  border-left: 4px solid var(--pv-warning);
  border-radius: var(--radius-sm);
  padding: var(--space-5) var(--space-6);
  font-size: var(--fs-body);
  color: var(--pv-deep);
  line-height: var(--lh-snug);
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
}

.disclaimer-icon {
  font-size: 28px;
  flex-shrink: 0;
  line-height: 1;
}

.disclaimer-strong { font-weight: 600; color: var(--pv-warning); }

.disclaimer-banner {
  background: var(--pv-warning);
  color: var(--pv-white);
  padding: var(--space-4) var(--kiosk-padding-x);
  font-size: var(--fs-caption);
  font-weight: 500;
  text-align: center;
  letter-spacing: 0.02em;
}

/* === FOOTER MINIMO === */
.kiosk-footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-3) var(--kiosk-padding-x);
  background: rgba(14, 42, 58, 0.92);
  color: rgba(255, 251, 243, 0.65);
  font-size: var(--fs-micro);
  text-align: center;
  letter-spacing: 0.02em;
  z-index: 4;
  pointer-events: none;
}

/* === SECTION HEADERS === */
.section-header {
  margin-bottom: var(--space-6);
}

.section-header h1 {
  font-size: var(--fs-h1);
  margin-top: var(--space-3);
}

.section-header .subtitle {
  font-size: var(--fs-body-lg);
  color: var(--pv-stone);
  margin-top: var(--space-3);
  line-height: var(--lh-snug);
}

/* === TAG / CHIP === */
.chip {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--pv-sand);
  color: var(--pv-deep);
  border-radius: var(--radius-pill);
  font-size: var(--fs-caption);
  font-weight: 500;
}

.chip.chip-ocean { background: rgba(45, 191, 196, 0.18); color: var(--pv-ocean-dark); }
.chip.chip-success { background: rgba(31, 143, 92, 0.14); color: var(--pv-success); }

/* === SEARCH === */
.search-box {
  position: relative;
  width: 100%;
  margin-bottom: var(--space-6);
}

.search-input {
  width: 100%;
  height: 88px;
  padding: 0 var(--space-6) 0 72px;
  border-radius: var(--radius-pill);
  border: 1.5px solid rgba(14, 42, 58, 0.12);
  background: var(--pv-white);
  font-size: var(--fs-body-lg);
  color: var(--pv-deep);
  outline: none;
  transition: border-color var(--dur-fast), box-shadow var(--dur-fast);
}

.search-input:focus {
  border-color: var(--pv-turquoise);
  box-shadow: 0 0 0 4px rgba(45, 191, 196, 0.18);
}

.search-icon {
  position: absolute;
  left: var(--space-5);
  top: 50%;
  transform: translateY(-50%);
  font-size: 32px;
  color: var(--pv-stone);
  pointer-events: none;
}

/* === LIST ITEM === */
.list-item {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-5) var(--space-6);
  background: var(--pv-white);
  border-radius: var(--radius-md);
  text-align: left;
  box-shadow: var(--shadow-sm);
  width: 100%;
  transition: transform var(--dur-fast) var(--ease-snappy);
}

.list-item:active { transform: scale(0.99); }

.list-item-icon {
  width: 64px;
  height: 64px;
  border-radius: var(--radius-sm);
  background: var(--pv-sand);
  display: grid;
  place-items: center;
  font-size: 28px;
  color: var(--pv-ocean);
  flex-shrink: 0;
}

.list-item-body { flex: 1; min-width: 0; }
.list-item-title {
  font-weight: 600;
  font-size: 26px;
  color: var(--pv-deep);
  line-height: 1.2;
  margin-bottom: 4px;
}
.list-item-meta {
  font-size: var(--fs-caption);
  color: var(--pv-stone);
  line-height: 1.3;
}
.list-item-arrow {
  font-size: 32px;
  color: var(--pv-stone-light);
  flex-shrink: 0;
}

/* === EMPTY STATE === */
.empty-state {
  text-align: center;
  padding: var(--space-10) var(--space-6);
  color: var(--pv-stone);
}

.empty-state-icon {
  font-size: 80px;
  margin-bottom: var(--space-5);
  opacity: 0.5;
}

.empty-state-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h3);
  color: var(--pv-deep);
  margin-bottom: var(--space-3);
}

.empty-state-desc {
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
  max-width: 480px;
  margin: 0 auto;
}
