/* =========================================================
 * buenas-cares.css - mobile-first styles for buenascares.click
 * All custom classes use the "pg7e-" prefix.
 * Palette: #0D1117 (bg) | #40E0D0 (accent) | #808080 (muted)
 * ========================================================= */

:root {
  --pg7e-bg: #0D1117;
  --pg7e-bg-alt: #161B22;
  --pg7e-bg-soft: #1F2630;
  --pg7e-accent: #40E0D0;
  --pg7e-accent-dark: #2BB5A7;
  --pg7e-text: #E8EDF1;
  --pg7e-muted: #808080;
  --pg7e-gold: #F5C451;
  --pg7e-danger: #FF5C6C;
  --pg7e-radius: 12px;
  --pg7e-shadow: 0 6px 22px rgba(0, 0, 0, 0.45);
  --pg7e-header-h: 56px;
  --pg7e-bottomnav-h: 62px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  background: var(--pg7e-bg);
  color: var(--pg7e-text);
  font-size: 1.5rem;
  line-height: 1.55;
  max-width: 430px;
  margin-left: auto;
  margin-right: auto;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--pg7e-accent); text-decoration: none; }
a:hover { color: var(--pg7e-gold); }

.pg7e-wrapper { width: 100%; padding: 0 14px; }
.pg7e-container { width: 100%; }

/* ---------- Header ---------- */
.pg7e-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--pg7e-header-h);
  background: rgba(13, 17, 23, 0.96);
  border-bottom: 1px solid rgba(64, 224, 208, 0.18);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  z-index: 1000;
  backdrop-filter: blur(8px);
}
.pg7e-brand { display: flex; align-items: center; gap: 8px; color: var(--pg7e-text); }
.pg7e-brand img { width: 28px; height: 28px; border-radius: 6px; }
.pg7e-brand-name {
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: 0.3px;
  background: linear-gradient(90deg, var(--pg7e-accent), var(--pg7e-gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.pg7e-header-actions { display: flex; align-items: center; gap: 6px; }

.pg7e-btn {
  border: 0;
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 1.3rem;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s, opacity 0.15s;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.pg7e-btn:active { transform: scale(0.96); }
.pg7e-btn-primary {
  background: linear-gradient(90deg, var(--pg7e-accent), var(--pg7e-accent-dark));
  color: #06231f;
  box-shadow: 0 3px 12px rgba(64, 224, 208, 0.35);
}
.pg7e-btn-ghost {
  background: transparent;
  color: var(--pg7e-accent);
  border: 1px solid var(--pg7e-accent);
}
.pg7e-btn-gold {
  background: linear-gradient(90deg, var(--pg7e-gold), #d99a2b);
  color: #2a1d00;
}

.pg7e-icon-btn {
  background: transparent;
  border: 0;
  color: var(--pg7e-text);
  font-size: 2rem;
  width: 40px; height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.pg7e-icon-btn:active { background: rgba(64, 224, 208, 0.12); }

/* ---------- Mobile menu drawer ---------- */
.pg7e-mobile-menu {
  position: fixed;
  top: var(--pg7e-header-h);
  right: -100%;
  width: 80%;
  max-width: 320px;
  bottom: 0;
  background: var(--pg7e-bg-alt);
  padding: 16px 14px;
  z-index: 9999;
  transition: right 0.28s ease;
  overflow-y: auto;
  border-left: 1px solid rgba(64, 224, 208, 0.18);
}
.pg7e-mobile-menu.pg7e-menu-open { right: 0; }
.pg7e-mobile-menu h3 {
  font-size: 1.4rem;
  margin: 12px 0 6px;
  color: var(--pg7e-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}
.pg7e-mobile-menu a {
  display: block;
  padding: 10px 8px;
  border-bottom: 1px solid rgba(128, 128, 128, 0.18);
  color: var(--pg7e-text);
  font-size: 1.45rem;
}
.pg7e-mobile-menu a:active { background: rgba(64, 224, 208, 0.08); }
.pg7e-overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,0.55);
  z-index: 9998;
  display: none;
}
.pg7e-overlay.pg7e-menu-open { display: block; }

/* ---------- Hero / Carousel ---------- */
.pg7e-hero {
  margin-top: calc(var(--pg7e-header-h) + 10px);
  position: relative;
  border-radius: var(--pg7e-radius);
  overflow: hidden;
  box-shadow: var(--pg7e-shadow);
}
.pg7e-slides { position: relative; }
.pg7e-slide {
  display: none;
  cursor: pointer;
  position: relative;
}
.pg7e-slide.pg7e-slide-active { display: block; }
.pg7e-slide img { width: 100%; height: 180px; object-fit: cover; }
.pg7e-slide-caption {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 12px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 700;
}
.pg7e-dots {
  position: absolute;
  bottom: 8px; right: 10px;
  display: flex; gap: 6px;
}
.pg7e-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: 0; cursor: pointer; padding: 0;
}
.pg7e-dot.pg7e-dot-active { background: var(--pg7e-accent); }

/* ---------- Layout sections ---------- */
.pg7e-section { padding: 18px 14px 6px; }
.pg7e-section-title {
  font-size: 1.85rem;
  font-weight: 800;
  margin: 0 0 4px;
  color: var(--pg7e-text);
}
.pg7e-section-title span { color: var(--pg7e-accent); }
.pg7e-section-sub { color: var(--pg7e-muted); font-size: 1.35rem; margin: 0 0 10px; }

.pg7e-h1 {
  font-size: 2.1rem;
  font-weight: 800;
  line-height: 1.25;
  margin: 14px 0 8px;
}
.pg7e-h1 span { color: var(--pg7e-accent); }

.pg7e-lead { color: var(--pg7e-text); font-size: 1.45rem; }

/* ---------- Search box ---------- */
.pg7e-search {
  display: flex;
  align-items: center;
  background: var(--pg7e-bg-alt);
  border: 1px solid rgba(64,224,208,0.25);
  border-radius: 999px;
  padding: 6px 12px;
  margin: 8px 0 4px;
}
.pg7e-search input {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--pg7e-text);
  font-size: 1.35rem;
  outline: none;
  min-height: 32px;
}

/* ---------- Category label ---------- */
.pg7e-cat-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--pg7e-gold);
  margin: 14px 0 8px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* ---------- Game grid (compact icon layout) ---------- */
.pg7e-game-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.pg7e-game-card {
  background: var(--pg7e-bg-alt);
  border: 1px solid rgba(64,224,208,0.10);
  border-radius: 10px;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s;
  overflow: hidden;
}
.pg7e-game-card:active {
  transform: scale(0.96);
  border-color: var(--pg7e-accent);
}
.pg7e-game-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 8px;
}
.pg7e-game-name {
  font-size: 1.15rem;
  color: var(--pg7e-text);
  margin-top: 4px;
  font-weight: 600;
  line-height: 1.2;
  height: 2.4em;
  overflow: hidden;
}

/* ---------- Feature / card grids ---------- */
.pg7e-card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}
.pg7e-card {
  background: var(--pg7e-bg-alt);
  border-radius: var(--pg7e-radius);
  padding: 14px;
  border: 1px solid rgba(64,224,208,0.10);
}
.pg7e-card h3 {
  margin: 0 0 6px;
  font-size: 1.6rem;
  color: var(--pg7e-accent);
}
.pg7e-card p { margin: 0; font-size: 1.35rem; color: var(--pg7e-text); }

.pg7e-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.pg7e-stat {
  background: var(--pg7e-bg-soft);
  padding: 12px;
  border-radius: 10px;
  text-align: center;
}
.pg7e-stat-num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--pg7e-gold);
}
.pg7e-stat-label { font-size: 1.2rem; color: var(--pg7e-muted); }

/* ---------- Testimonial ---------- */
.pg7e-testimonial {
  background: var(--pg7e-bg-alt);
  border-left: 4px solid var(--pg7e-accent);
  padding: 12px;
  border-radius: 8px;
  margin-bottom: 10px;
}
.pg7e-testimonial p { margin: 0 0 6px; font-size: 1.35rem; }
.pg7e-testimonial .pg7e-author { color: var(--pg7e-muted); font-size: 1.2rem; }

/* ---------- Payment chips ---------- */
.pg7e-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pg7e-chip {
  background: var(--pg7e-bg-soft);
  border: 1px solid rgba(64,224,208,0.2);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 1.25rem;
  color: var(--pg7e-text);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* ---------- Winner list ---------- */
.pg7e-winner {
  display: flex;
  justify-content: space-between;
  padding: 8px 10px;
  background: var(--pg7e-bg-alt);
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 1.3rem;
}
.pg7e-winner b { color: var(--pg7e-gold); }

/* ---------- CTA banner ---------- */
.pg7e-cta {
  background: linear-gradient(120deg, #0d3b36, #102a35);
  border: 1px solid rgba(64,224,208,0.4);
  border-radius: var(--pg7e-radius);
  padding: 18px;
  text-align: center;
  margin: 14px 0;
}
.pg7e-cta h3 { margin: 0 0 8px; color: var(--pg7e-accent); font-size: 1.8rem; }
.pg7e-cta p { margin: 0 0 12px; font-size: 1.35rem; color: var(--pg7e-text); }

/* ---------- Promo link text style ---------- */
.pg7e-promo-link {
  color: var(--pg7e-gold);
  font-weight: 700;
  cursor: pointer;
  text-decoration: underline;
}

/* ---------- Footer ---------- */
.pg7e-footer {
  background: var(--pg7e-bg-alt);
  padding: 18px 14px calc(var(--pg7e-bottomnav-h) + 18px);
  border-top: 1px solid rgba(64,224,208,0.15);
  margin-top: 18px;
}
.pg7e-footer h4 { color: var(--pg7e-accent); margin: 12px 0 6px; font-size: 1.5rem; }
.pg7e-footer p { font-size: 1.3rem; color: var(--pg7e-muted); }
.pg7e-footer-links {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px 12px;
  margin: 8px 0;
}
.pg7e-footer-links a { font-size: 1.25rem; color: var(--pg7e-text); }
.pg7e-footer-copy { font-size: 1.15rem; color: var(--pg7e-muted); margin-top: 10px; }
.pg7e-promo-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.pg7e-promo-row .pg7e-btn { flex: 1 1 auto; justify-content: center; }

/* ---------- Mobile bottom nav ---------- */
.pg7e-bottomnav {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  height: var(--pg7e-bottomnav-h);
  background: rgba(13,17,23,0.98);
  border-top: 1px solid rgba(64,224,208,0.25);
  display: flex;
  justify-content: space-around;
  align-items: stretch;
  z-index: 1000;
  max-width: 430px;
  margin: 0 auto;
}
.pg7e-navbtn {
  flex: 1;
  background: transparent;
  border: 0;
  color: var(--pg7e-muted);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 60px;
  min-height: 60px;
  cursor: pointer;
  font-size: 1.05rem;
  transition: color 0.15s;
  padding: 4px 2px;
}
.pg7e-navbtn .material-icons,
.pg7e-navbtn ion-icon,
.pg7e-navbtn i { font-size: 22px; }
.pg7e-navbtn:hover { color: var(--pg7e-accent); }
.pg7e-navbtn.pg7e-navbtn-active { color: var(--pg7e-accent); }
.pg7e-navbtn.pg7e-navbtn-active::after {
  content: "";
  width: 24px;
  height: 3px;
  background: var(--pg7e-accent);
  border-radius: 2px;
  margin-top: 2px;
}

/* ---------- Reveal animation ---------- */
.pg7e-reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.pg7e-reveal.pg7e-revealed { opacity: 1; transform: none; }

/* ---------- Desktop / wider screens ---------- */
@media (min-width: 769px) {
  body { max-width: 430px; }
  .pg7e-bottomnav { display: none; }
  .pg7e-footer { padding-bottom: 24px; }
}

/* Make sure mobile content has clearance for the bottom nav */
@media (max-width: 768px) {
  .pg7e-main { padding-bottom: 80px; }
}
.pg7e-main { display: block; }

/* Utility */
.pg7e-hidden { display: none !important; }
.pg7e-center { text-align: center; }
.pg7e-mt { margin-top: 12px; }
.pg7e-mb { margin-bottom: 12px; }
