/* ============================================================
   SCREENSAVER
============================================================ */
.screensaver {
  position: absolute;
  inset: 0;
  background: var(--pv-deep);
  overflow: hidden;
  cursor: pointer;
}

.screensaver-bg {
  position: absolute;
  inset: -5%;
  background-image: url('../public/images/places/screensaver-bg.jpg'),
                    linear-gradient(135deg, #0A6E8C 0%, #0E2A3A 100%);
  background-size: cover;
  background-position: center;
  animation: kenBurns 24s ease-in-out infinite alternate;
}

.screensaver-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,58,0.30) 0%, rgba(14,42,58,0.85) 100%);
}

@keyframes kenBurns {
  0% { transform: scale(1.0) translate(0, 0); }
  100% { transform: scale(1.12) translate(-2%, -2%); }
}

.screensaver-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: var(--space-10) var(--space-8);
  color: var(--pv-cream);
  text-align: center;
}

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

.screensaver-crest {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--pv-cream);
  color: var(--pv-ocean);
  display: grid;
  place-items: center;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 52px;
  box-shadow: var(--shadow-lg);
}

.screensaver-org {
  font-family: var(--font-heading);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.screensaver-org-sub {
  font-size: var(--fs-caption);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-top: var(--space-2);
}

.screensaver-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-7);
}

.screensaver-tagline {
  font-family: var(--font-heading);
  font-size: 84px;
  line-height: 1.1;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
  min-height: 200px;
  animation: fadeRotate 8s ease-in-out infinite;
}

@keyframes fadeRotate {
  0%, 45% { opacity: 1; }
  50%, 95% { opacity: 0; }
  100% { opacity: 1; }
}

.screensaver-cta {
  font-size: 36px;
  letter-spacing: 0.04em;
  font-weight: 500;
  opacity: 0.95;
}

.pulse-ring {
  position: relative;
  width: 220px;
  height: 220px;
  display: grid;
  place-items: center;
}

.pulse-ring::before,
.pulse-ring::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--pv-cream);
  animation: pulseRing 2.4s cubic-bezier(0.2, 0.9, 0.3, 1) infinite;
}

.pulse-ring::after { animation-delay: 1.2s; }

.pulse-ring-core {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--pv-cream);
  color: var(--pv-ocean);
  display: grid;
  place-items: center;
  font-size: 56px;
  box-shadow: var(--shadow-xl);
}

@keyframes pulseRing {
  0% { transform: scale(0.6); opacity: 0.9; }
  100% { transform: scale(1.5); opacity: 0; }
}

.screensaver-modules {
  display: flex;
  gap: var(--space-7);
  margin-bottom: var(--space-4);
}

.screensaver-mod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--fs-caption);
  letter-spacing: 0.06em;
  font-weight: 500;
  opacity: 0.92;
}

.screensaver-mod-icon {
  font-size: 36px;
  opacity: 0.95;
}

.screensaver-info {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  font-size: var(--fs-caption);
  opacity: 0.85;
  font-variant-numeric: tabular-nums;
}

.screensaver-info-sep {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}

/* ============================================================
   HOME
============================================================ */
.home {
  background: var(--pv-cream);
  position: relative;
}

.home-hero {
  position: relative;
  padding: var(--space-9) var(--kiosk-padding-x) var(--space-7);
  background: var(--pv-gradient-ocean);
  color: var(--pv-cream);
  overflow: hidden;
}

.home-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../public/images/places/hero-vallarta.jpg');
  background-size: cover;
  background-position: center;
  opacity: 0.30;
  mix-blend-mode: overlay;
}

.home-hero-content { position: relative; z-index: 2; }

.home-eyebrow {
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 600;
  opacity: 0.92;
  margin-bottom: var(--space-3);
}

.home-title {
  font-family: var(--font-heading);
  font-size: 80px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--pv-cream);
  margin-bottom: var(--space-3);
}

.home-subtitle {
  font-size: var(--fs-body-lg);
  line-height: var(--lh-snug);
  opacity: 0.95;
  max-width: 740px;
  margin-bottom: var(--space-6);
}

.home-modules {
  display: flex;
  flex-direction: column;
  gap: var(--space-5);
  padding: var(--space-7) var(--kiosk-padding-x) var(--space-9);
}

.home-help-card {
  margin: 0 var(--kiosk-padding-x) var(--space-9);
  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);
  box-shadow: var(--shadow-sm);
}

.home-help-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--pv-sand);
  display: grid;
  place-items: center;
  font-size: 32px;
  flex-shrink: 0;
}

.home-help-text { flex: 1; }
.home-help-title { font-weight: 600; font-size: 24px; color: var(--pv-deep); }
.home-help-desc { font-size: var(--fs-caption); color: var(--pv-stone); }

/* ============================================================
   TURISMO — categorías y listados
============================================================ */
.tourism-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.tourism-cat {
  position: relative;
  height: 320px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--pv-deep);
  color: var(--pv-cream);
  text-align: left;
  box-shadow: var(--shadow-md);
  transition: transform var(--dur-fast) var(--ease-snappy);
}

.tourism-cat:active { transform: scale(0.97); }

.tourism-cat-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform var(--dur-slow) var(--ease-smooth);
}

.tourism-cat::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,58,0.0) 35%, rgba(14,42,58,0.92) 100%);
}

.tourism-cat-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 2;
}

.tourism-cat-title {
  font-family: var(--font-heading);
  font-weight: 600;
  font-size: 36px;
  line-height: 1.1;
  margin-bottom: 4px;
}

.tourism-cat-meta {
  font-size: var(--fs-caption);
  opacity: 0.92;
  letter-spacing: 0.04em;
}

.tourism-cat.is-wide { grid-column: span 2; height: 240px; }

/* Listado de lugares */
.places-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-5);
}

/* Detalle de lugar */
.place-hero {
  position: relative;
  width: calc(100% + var(--kiosk-padding-x) * 2);
  margin-left: calc(-1 * var(--kiosk-padding-x));
  margin-right: calc(-1 * var(--kiosk-padding-x));
  margin-top: calc(-1 * var(--space-7));
  height: 540px;
  background-size: cover;
  background-position: center;
  margin-bottom: var(--space-7);
}

.place-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(14,42,58,0) 50%, rgba(14,42,58,0.55) 100%);
}

.place-hero-tag {
  position: absolute;
  top: var(--space-7);
  left: var(--space-8);
  z-index: 2;
}

.place-title {
  font-family: var(--font-heading);
  font-size: var(--fs-h1);
  margin-bottom: var(--space-3);
  letter-spacing: -0.015em;
}

.place-summary {
  font-size: var(--fs-body-lg);
  color: var(--pv-stone);
  line-height: var(--lh-snug);
  margin-bottom: var(--space-7);
}

.place-section {
  margin-top: var(--space-7);
}

.place-section h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}

.place-bullets {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.place-bullet {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4) var(--space-5);
  background: var(--pv-white);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.place-bullet-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--pv-sand);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--pv-ocean);
  flex-shrink: 0;
}

.place-bullet-text {
  flex: 1;
  font-size: var(--fs-body);
  line-height: var(--lh-snug);
}

.place-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.place-info-item {
  background: var(--pv-white);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.place-info-label {
  font-size: var(--fs-micro);
  color: var(--pv-stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 6px;
  font-weight: 600;
}

.place-info-value {
  font-size: 22px;
  color: var(--pv-deep);
  font-weight: 500;
  line-height: 1.3;
}

/* ============================================================
   TRÁMITES
============================================================ */
.proc-categories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.proc-detail-block {
  background: var(--pv-white);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  box-shadow: var(--shadow-sm);
  margin-top: var(--space-5);
}

.proc-detail-block h3 {
  font-size: var(--fs-h3);
  margin-bottom: var(--space-4);
}

.proc-requirements {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.proc-req {
  display: flex;
  align-items: flex-start;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--pv-cream);
  border-radius: var(--radius-sm);
}

.proc-req-num {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--pv-ocean);
  color: var(--pv-white);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 20px;
  flex-shrink: 0;
}

.proc-req-text { font-size: var(--fs-body); line-height: var(--lh-snug); }

.proc-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-top: var(--space-5);
}

.proc-summary-cell {
  background: var(--pv-sand);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
}

.proc-summary-label {
  font-size: var(--fs-micro);
  color: var(--pv-stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 6px;
}

.proc-summary-value {
  font-family: var(--font-heading);
  font-size: 28px;
  color: var(--pv-deep);
  font-weight: 600;
  line-height: 1.2;
}

/* ============================================================
   PAGOS
============================================================ */
.payments-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.pay-concept {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  background: var(--pv-white);
  padding: var(--space-5) var(--space-6);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  text-align: left;
  transition: transform var(--dur-fast) var(--ease-snappy);
}

.pay-concept:active { transform: scale(0.99); }

.pay-concept-icon {
  width: 88px;
  height: 88px;
  border-radius: var(--radius-md);
  background: var(--pv-gradient-sunset);
  color: var(--pv-white);
  display: grid;
  place-items: center;
  font-size: 38px;
  flex-shrink: 0;
}

.pay-concept-body { flex: 1; }
.pay-concept-title {
  font-family: var(--font-heading);
  font-size: 30px;
  font-weight: 600;
  color: var(--pv-deep);
  line-height: 1.15;
  margin-bottom: 4px;
}
.pay-concept-desc {
  font-size: var(--fs-caption);
  color: var(--pv-stone);
  line-height: 1.3;
}

.pay-concept-arrow { font-size: 32px; color: var(--pv-stone-light); }

/* Step indicator */
.steps {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin-bottom: var(--space-6);
}

.step {
  flex: 1;
  height: 8px;
  background: var(--pv-stone-light);
  border-radius: var(--radius-pill);
  position: relative;
  overflow: hidden;
}

.step.is-done { background: var(--pv-ocean); }
.step.is-active {
  background: var(--pv-stone-light);
}
.step.is-active::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--pv-ocean);
  width: 50%;
  border-radius: var(--radius-pill);
}

.step-label {
  font-size: var(--fs-micro);
  color: var(--pv-stone);
  letter-spacing: 0.04em;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: var(--space-3);
}

/* Amount */
.amount-card {
  background: var(--pv-gradient-deep), var(--pv-deep);
  background: linear-gradient(135deg, #0E2A3A 0%, #0A6E8C 100%);
  color: var(--pv-cream);
  border-radius: var(--radius-lg);
  padding: var(--space-8) var(--space-7);
  text-align: center;
  box-shadow: var(--shadow-lg);
  margin-bottom: var(--space-6);
}

.amount-card .amount-label {
  font-size: var(--fs-caption);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: var(--space-3);
  font-weight: 600;
}

.amount-card .amount-value {
  font-family: var(--font-heading);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
  margin-bottom: var(--space-3);
  letter-spacing: -0.02em;
}

.amount-card .amount-currency {
  font-size: 32px;
  opacity: 0.7;
  margin-left: var(--space-2);
}

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

.amount-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
}

.amount-meta-cell {
  background: var(--pv-white);
  padding: var(--space-5);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-sm);
}

.amount-meta-label {
  font-size: var(--fs-micro);
  color: var(--pv-stone);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 4px;
}

.amount-meta-value {
  font-size: 22px;
  font-weight: 600;
  color: var(--pv-deep);
  font-variant-numeric: tabular-nums;
  word-break: break-all;
}

/* QR */
.qr-card {
  background: var(--pv-white);
  border-radius: var(--radius-lg);
  padding: var(--space-7);
  box-shadow: var(--shadow-lg);
  text-align: center;
  margin-bottom: var(--space-5);
}

.qr-frame {
  width: 540px;
  max-width: 100%;
  margin: 0 auto var(--space-5);
  padding: var(--space-5);
  background: var(--pv-white);
  border: 2px dashed var(--pv-stone-light);
  border-radius: var(--radius-md);
  position: relative;
}

.qr-frame img,
.qr-frame canvas,
.qr-frame > div {
  width: 100% !important;
  height: auto !important;
  display: block !important;
  margin: 0 auto !important;
}

.qr-folio {
  font-family: 'Courier New', monospace;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--pv-deep);
  background: var(--pv-sand);
  display: inline-block;
  padding: var(--space-3) var(--space-5);
  border-radius: var(--radius-sm);
  margin-top: var(--space-4);
}

.qr-instructions {
  margin-top: var(--space-5);
  font-size: var(--fs-body);
  color: var(--pv-stone);
  line-height: var(--lh-snug);
}

/* ============================================================
   AYUDA
============================================================ */
.help-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-4);
}

.help-card {
  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);
  box-shadow: var(--shadow-sm);
}

.help-card.is-emergency {
  background: linear-gradient(135deg, #C8443D 0%, #E8743C 100%);
  color: var(--pv-white);
}

.help-card.is-emergency .help-card-meta { color: rgba(255,255,255,0.85); }

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

.help-card.is-emergency .help-card-icon {
  background: rgba(255,255,255,0.2);
  color: var(--pv-white);
}

.help-card-body { flex: 1; }
.help-card-title { font-weight: 600; font-size: 28px; line-height: 1.15; }
.help-card-meta { font-size: var(--fs-caption); color: var(--pv-stone); margin-top: 4px; }
.help-card-phone {
  font-family: var(--font-heading);
  font-size: 36px;
  font-weight: 700;
  color: var(--pv-ocean);
  letter-spacing: 0.02em;
}

.help-card.is-emergency .help-card-phone { color: var(--pv-white); }
