/* ============================================================
   El Perejil Urban Grill — Hub mobile
   ============================================================ */

:root {
  --green:  #1F3A2E;
  --cream:  #F5F0E6;
  --gold:   #C9B98A;
  --cocoa:  #2C2C2A;
  --muted:  #5F5E5A;
  --border: #D3D1C7;
  --white:  #FFFFFF;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--cocoa);
  line-height: 1.5;
  font-weight: 400;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; }
button { font: inherit; cursor: pointer; }

/* =========================== SCREEN ================================ */

.screen {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  width: 100%;
}

/* =========================== HEADER ================================ */

.screen-header {
  background: var(--green);
  color: var(--cream);
  padding: 36px 24px 28px;
  padding-top: calc(36px + env(safe-area-inset-top, 0px));
  text-align: center;
  position: relative;
}

.back-link {
  position: absolute;
  top: 18px;
  top: calc(18px + env(safe-area-inset-top, 0px));
  left: 18px;
  color: var(--cream);
  text-decoration: none;
  font-size: 13px;
  letter-spacing: 0.06em;
  opacity: 0.85;
  padding: 6px 4px;
  transition: opacity 0.15s ease;
}

.back-link:hover { opacity: 1; }

.eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 14px;
}

.screen-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 36px;
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.screen-subtitle {
  margin-top: 10px;
  font-size: 14px;
  color: rgba(245, 240, 230, 0.78);
}

.screen-subtitle em {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  letter-spacing: 0.01em;
}

/* =========================== GOLD BAND ============================== */

.gold-band {
  background: var(--gold);
  color: var(--green);
  padding: 12px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}

.gold-band--center {
  justify-content: center;
  text-align: center;
}

.mesa-line {
  letter-spacing: 0.14em;
}

.status-pill {
  background: var(--green);
  color: var(--cream);
  padding: 5px 13px;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.16em;
  font-weight: 600;
  text-transform: uppercase;
}

/* =========================== BODY =================================== */

.screen-body {
  flex: 1;
  padding: 32px 24px 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.screen-body--centered {
  justify-content: center;
}

.section-divider {
  font-size: 11px;
  letter-spacing: 0.26em;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 500;
  margin: 4px 0 12px;
}

.body-title {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: var(--green);
  line-height: 1.2;
  letter-spacing: -0.005em;
}

.body-subtitle {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
  max-width: 320px;
}

.body-subtitle em { font-style: italic; }

.icon-large {
  width: 44px;
  height: 44px;
  color: var(--green);
  margin: 4px auto 0;
  stroke-width: 1.4;
}

.live-pill {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 12px;
  color: var(--cocoa);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  letter-spacing: 0.02em;
}

.live-pill .dot {
  width: 7px;
  height: 7px;
  background: var(--green);
  border-radius: 50%;
  display: inline-block;
}

/* =========================== BUTTONS ================================= */

.btn {
  width: 100%;
  max-width: 360px;
  padding: 15px 20px;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--green);
  font-family: 'Inter', sans-serif;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  text-align: center;
  letter-spacing: 0.01em;
  transition: opacity 0.15s ease, transform 0.08s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn:active { transform: scale(0.985); }
.btn:hover  { background: #FAF7EE; }

.btn-primary {
  background: var(--green);
  color: var(--cream);
  border-color: var(--green);
}

.btn-primary:hover { background: #18301F; }

/* grid 2 cols */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  max-width: 360px;
}

.btn-grid {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 20px 12px;
  background: var(--white);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--cocoa);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
  transition: background 0.15s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.btn-grid:active { transform: scale(0.985); }
.btn-grid:hover  { background: #FAF7EE; }

.btn-grid svg {
  width: 22px;
  height: 22px;
  color: var(--green);
}

/* =========================== FOOTER ================================== */

.screen-footer {
  text-align: center;
  padding: 18px 24px 28px;
  padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  color: var(--muted);
  font-size: 13px;
}

/* =========================== CARD ==================================== */

.card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 22px 20px;
  width: 100%;
  max-width: 360px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

.card-text {
  font-size: 14px;
  color: var(--cocoa);
  line-height: 1.5;
}

/* =========================== STARS =================================== */

.stars-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 14px 0 8px;
  flex-wrap: nowrap;
}

.star {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  text-decoration: none;
  transition: transform 0.15s ease, opacity 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.star:active { transform: scale(0.92); }
.star svg { width: 22px; height: 22px; }

.star--filled {
  background: var(--green);
  color: var(--gold);
  border-color: var(--green);
  box-shadow: 0 0 0 4px rgba(201, 185, 138, 0.28);
}

@media (max-width: 360px) {
  .stars-row { gap: 7px; }
  .star { width: 46px; height: 46px; }
  .star svg { width: 19px; height: 19px; }
}

/* =========================== WIFI ==================================== */

.qr-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#qrcode {
  width: 220px;
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
}

#qrcode canvas { display: none; }

#qrcode img {
  display: block;
  width: 220px;
  height: 220px;
}

.wifi-field {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  background: var(--white);
  border: 1px solid var(--border);
  width: 100%;
  max-width: 360px;
}

.wifi-field-info {
  text-align: left;
  flex: 1;
  min-width: 0;
}

.wifi-field-info .label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  margin-bottom: 2px;
}

.wifi-field-info .value {
  font-family: 'Inter', sans-serif;
  font-weight: 500;
  font-size: 15px;
  color: var(--cocoa);
  word-break: break-all;
}

.copy-btn {
  border: 1px solid var(--green);
  background: transparent;
  color: var(--green);
  padding: 8px 14px;
  font-size: 11px;
  letter-spacing: 0.14em;
  font-weight: 600;
  text-transform: uppercase;
  font-family: 'Inter', sans-serif;
  transition: background 0.15s ease, color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  flex-shrink: 0;
}

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

.copy-btn.copied {
  background: var(--green);
  color: var(--cream);
}

/* =========================== SMALL ==================================== */

.small-text {
  font-size: 13px;
  color: var(--muted);
  margin-top: 4px;
}

.tel-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

.tel-line svg { width: 14px; height: 14px; color: var(--green); }
.tel-line a { color: var(--green); text-decoration: none; font-weight: 500; }

/* =========================== REDES =================================== */

.social-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  text-decoration: none;
  color: var(--cocoa);
  width: 100%;
  max-width: 360px;
  transition: background 0.15s ease, transform 0.08s ease;
  -webkit-tap-highlight-color: transparent;
}

.social-card:active { transform: scale(0.985); }
.social-card:hover  { background: #FAF7EE; }

.social-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.social-icon--instagram {
  background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}

.social-icon--facebook {
  background: #1877F2;
}

.social-icon svg {
  display: block;
}

.social-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
  min-width: 0;
  flex: 1;
}

.social-handle {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 17px;
  font-weight: 600;
  color: var(--cocoa);
  line-height: 1.25;
  letter-spacing: -0.005em;
  word-break: break-word;
}

.social-tagline {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.3;
}

/* =========================== RESPONSIVE TWEAKS ====================== */

@media (max-height: 640px) {
  .screen-header { padding: 26px 24px 22px; padding-top: calc(26px + env(safe-area-inset-top, 0px)); }
  .screen-body { padding: 24px 24px 20px; gap: 14px; }
  .screen-title { font-size: 32px; }
  .body-title { font-size: 22px; }
  .icon-large { width: 38px; height: 38px; }
  #qrcode, #qrcode img { width: 180px; height: 180px; }
}

@media (min-width: 600px) {
  .screen-body { max-width: 440px; margin-left: auto; margin-right: auto; }
}
