/* ==========================================================================
   POCKETPAWS - WEB STYLING (Cozy Modern Flat + Pixel Art)
   ========================================================================== */

:root {
  /* PocketPaws Official Palette */
  --paws-primary: #5A832A;
  --paws-primary-hover: #486A21;
  --paws-primary-dark: #375218;
  --paws-primary-light: #E8F3D8;
  --paws-primary-text: #324E12;

  --paws-gold: #D49B26;
  --paws-gold-hover: #BA851E;
  --paws-gold-dark: #8F6211;
  --paws-gold-light: #FFF7E3;

  --paws-bg: #F7F3E9;
  --paws-card: #FFFDF9;
  --paws-tonal: #EFE7D8;
  --paws-tonal-hover: #E3D9C7;
  
  --paws-border: #EADBCA;
  --paws-border-strong: #D5C2AB;
  --paws-border-pixel: #3E3029;

  --paws-text: #4A3E37;
  --paws-text-muted: #7B6E66;
  --paws-text-light: #A3968E;
  --paws-white: #FFFFFF;

  /* Fonts */
  --font-main: 'Fredoka', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-pixel: 'Press Start 2P', monospace;

  /* Layout */
  --container-max: 1160px;
  --radius-btn: 14px;
  --radius-card: 18px;
  --radius-board: 12px;
}

/* Reset & Base */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  max-width: 100%;
}

body {
  font-family: var(--font-main);
  background-color: var(--paws-bg);
  color: var(--paws-text);
  line-height: 1.6;
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  width: 100%;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Canvas (Floating Motes) */
#ambient-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 20px;
  padding-right: 20px;
  position: relative;
  z-index: 10;
}

/* Pixel Art Rendering Utility */
.pixel-art {
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
}

/* Retro Pixel Border */
.pixel-border {
  border: 2px solid var(--paws-border);
  background-color: var(--paws-card);
  border-radius: var(--radius-card);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.2s ease;
}

/* Buttons - Cozy Modern Flat with subtle pixel tactile press */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-main);
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius-btn);
  border: none;
  cursor: pointer;
  transition: all 0.15s ease-out;
  position: relative;
  user-select: none;
}

.btn:active {
  transform: translateY(2px) !important;
}

.btn-primary {
  background-color: var(--paws-primary);
  color: var(--paws-white);
  box-shadow: 0 4px 0 var(--paws-primary-dark);
}

.btn-primary:hover {
  background-color: var(--paws-primary-hover);
}

.btn-tonal {
  background-color: var(--paws-tonal);
  color: var(--paws-text);
  border: 1.5px solid var(--paws-border);
  box-shadow: 0 3px 0 var(--paws-border-strong);
}

.btn-tonal:hover {
  background-color: var(--paws-tonal-hover);
}

.btn-outlined {
  background-color: transparent;
  color: var(--paws-text);
  border: 2px solid var(--paws-border-strong);
}

.btn-outlined:hover {
  background-color: var(--paws-tonal);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 0.95rem;
}

.btn-lg {
  padding: 14px 28px;
  font-size: 1.15rem;
}

.btn-xl {
  padding: 18px 36px;
  font-size: 1.25rem;
}

.btn-text-block {
  display: flex;
  flex-direction: column;
  text-align: left;
  line-height: 1.2;
}

.btn-subtext {
  font-size: 0.75rem;
  font-weight: 400;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.btn-maintext {
  font-size: 1.2rem;
  font-weight: 700;
}

.cta-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

/* ==========================================================================
   NAVBAR
   ========================================================================== */
.navbar-wrapper {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  background: rgba(247, 243, 233, 0.88);
  border-bottom: 1.5px solid var(--paws-border);
  padding: 12px 0;
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--paws-text);
}

.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background-color: var(--paws-primary-light);
  padding: 2px;
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--paws-primary-dark);
  line-height: 1.1;
  letter-spacing: -0.5px;
}

.brand-badge {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--paws-gold);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
}

.nav-link {
  text-decoration: none;
  color: var(--paws-text-muted);
  font-size: 1.05rem;
  font-weight: 500;
  transition: color 0.15s ease;
  position: relative;
}

.nav-link:hover, .nav-link.active {
  color: var(--paws-primary);
  font-weight: 600;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-btn {
  background: var(--paws-tonal);
  border: 1.5px solid var(--paws-border);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.15s ease;
}

.icon-btn:hover {
  background: var(--paws-tonal-hover);
  transform: scale(1.05);
}

.lang-btn {
  padding: 6px 12px;
  height: 42px;
  font-size: 0.95rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 12px;
  cursor: pointer;
}

.lang-icon {
  font-size: 1.05rem;
}

.lang-label {
  font-family: var(--font-pixel);
  font-size: 0.72rem;
  color: var(--paws-primary-dark);
  letter-spacing: 0.5px;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */
.hero-section {
  padding: 60px 0 80px;
  position: relative;
  overflow: hidden;
}

.hero-container {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 40px;
}

.pixel-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: var(--paws-primary-light);
  border: 1.5px solid var(--paws-primary);
  padding: 6px 14px;
  border-radius: 30px;
  margin-bottom: 20px;
}

.pixel-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--paws-primary);
  animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.3); }
}

.pixel-pill-text {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--paws-primary-text);
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 700;
  line-height: 1.15;
  color: var(--paws-text);
  margin-bottom: 20px;
  letter-spacing: -1px;
}

.highlight-text {
  color: var(--paws-primary);
  position: relative;
  display: inline-block;
}

.highlight-text::after {
  content: "";
  position: absolute;
  bottom: 4px;
  left: 0;
  width: 100%;
  height: 12px;
  background: rgba(90, 131, 42, 0.18);
  border-radius: 6px;
  z-index: -1;
}

.hero-description {
  font-size: 1.25rem;
  color: var(--paws-text-muted);
  line-height: 1.6;
  margin-bottom: 32px;
  max-width: 540px;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  margin-bottom: 36px;
}

.hero-download-btn {
  padding: 14px 28px;
}

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  padding-top: 10px;
}

.hero-badge-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--paws-text);
}

.badge-icon {
  font-size: 1.1rem;
}

/* Hero Interactive Card */
.hero-visual {
  display: flex;
  justify-content: center;
}

.hero-card {
  width: 100%;
  max-width: 440px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(74, 62, 55, 0.07);
}

.hero-card-header {
  background-color: var(--paws-tonal);
  border-bottom: 2px solid var(--paws-border);
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.window-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.window-dot.red { background-color: #FF5F56; }
.window-dot.yellow { background-color: #FFBD2E; }
.window-dot.green { background-color: #27C93F; }

.window-title {
  font-family: var(--font-pixel);
  font-size: 0.6rem;
  color: var(--paws-text-muted);
  margin-left: auto;
}

.hero-room-preview {
  height: 380px;
  background: linear-gradient(180deg, #D4EDFA 0%, #E8F4FB 55%, #CFB89A 55%, #BEA583 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 24px;
}

.room-sun {
  position: absolute;
  top: 30px;
  right: 40px;
  width: 60px;
  height: 60px;
  background: #FFEAA7;
  border: 3px solid #FDCA40;
  border-radius: 50%;
  box-shadow: 0 0 20px rgba(255, 234, 167, 0.8);
}

.pets-stage {
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  position: relative;
  z-index: 2;
  margin-bottom: 20px;
}

.pet-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  position: relative;
  transition: transform 0.15s ease;
}

.pet-wrapper:hover {
  transform: scale(1.08);
}

.pet-sprite {
  width: 105px;
  height: auto;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.12));
}

.pet-shadow {
  width: 70px;
  height: 12px;
  background-color: rgba(60, 45, 30, 0.25);
  border-radius: 50%;
  margin-top: -6px;
}

.pet-speech {
  position: absolute;
  top: -34px;
  background: white;
  border: 2px solid var(--paws-border-pixel);
  padding: 4px 10px;
  border-radius: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s;
}

.pet-speech::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--paws-border-pixel) transparent;
  display: block;
  width: 0;
}

.floating-coin-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(255, 255, 255, 0.95);
  border: 2px solid var(--paws-gold);
  border-radius: 30px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-pixel);
  font-size: 0.75rem;
  color: var(--paws-gold-dark);
}

.coin-icon {
  width: 22px;
  height: 22px;
}

.hero-interactive-tip {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--paws-text-muted);
  border: 1px solid var(--paws-border);
}

/* ==========================================================================
   INTERACTIVE MINI-PUZZLE SECTION
   ========================================================================== */
.demo-section {
  padding: 80px 0;
  background-color: var(--paws-white);
  border-top: 1.5px solid var(--paws-border);
  border-bottom: 1.5px solid var(--paws-border);
}

.section-header {
  margin-bottom: 48px;
}

.text-center {
  text-align: center;
}

.section-tag {
  font-family: var(--font-pixel);
  font-size: 0.7rem;
  color: var(--paws-primary);
  background-color: var(--paws-primary-light);
  padding: 6px 12px;
  border-radius: 6px;
  display: inline-block;
  margin-bottom: 12px;
  letter-spacing: 0.5px;
}

.section-title {
  font-size: 2.4rem;
  font-weight: 700;
  color: var(--paws-text);
  margin-bottom: 12px;
  letter-spacing: -0.5px;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--paws-text-muted);
  max-width: 620px;
  margin-left: auto;
  margin-right: auto;
}

.demo-grid-wrapper {
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 36px;
  align-items: start;
}

/* Rules Card */
.rules-card {
  padding: 28px;
}

.rules-title {
  font-size: 1.35rem;
  margin-bottom: 20px;
  color: var(--paws-text);
}

.rules-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-bottom: 28px;
}

.rules-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.rule-num {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  min-width: 32px;
  background-color: var(--paws-primary-light);
  color: var(--paws-primary-text);
  font-weight: 700;
  border-radius: 50%;
  border: 1.5px solid var(--paws-primary);
}

.rules-list strong {
  display: block;
  font-size: 1.05rem;
  color: var(--paws-text);
  margin-bottom: 4px;
}

.rules-list p {
  font-size: 0.95rem;
  color: var(--paws-text-muted);
}

.rules-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  border-top: 1.5px solid var(--paws-border);
  padding-top: 20px;
}

.region-badge {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 6px;
  margin-right: 4px;
}
.region-badge.orange { background-color: #FDE6D2; color: #8F4C15; border: 1px solid #E8AF7D; }
.region-badge.green { background-color: #DEF7DE; color: #206E20; border: 1px solid #89F589; }
.region-badge.blue { background-color: #E2ECF9; color: #1E4F94; border: 1px solid #ADC7EB; }

/* Board Card */
.board-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: var(--paws-card);
}

/* Active Rules Header Chips */
.board-chips-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 16px;
  width: 100%;
}

.rule-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--paws-primary-light);
  border: 1.5px solid var(--paws-primary);
  color: var(--paws-primary-text);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}

.rule-chip .chip-arrow {
  font-size: 0.9rem;
  line-height: 1;
}

.board-header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--paws-border);
}

.board-status-badge {
  font-family: var(--font-pixel);
  font-size: 0.65rem;
  color: var(--paws-text);
  background: var(--paws-tonal);
  padding: 6px 12px;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.board-status-badge.win {
  color: var(--paws-primary-text);
  background: var(--paws-primary-light);
  border: 1px solid var(--paws-primary);
}

.board-status-badge.error {
  color: #B22222;
  background: #FCE8E8;
  border: 1px solid #B22222;
}

.board-timer {
  font-weight: 600;
  color: var(--paws-text-muted);
  font-size: 0.85rem;
}

/* 4x4 Grid Container mimicking BoardCanvas outerBorder */
.puzzle-board-container {
  padding: 8px;
  background: #4A1E26;
  border-radius: 18px;
  box-shadow: 0 8px 24px rgba(74, 30, 38, 0.22);
  margin: 0 auto 16px;
  max-width: 360px;
  width: 100%;
  box-sizing: border-box;
}

.puzzle-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #4A1E26;
  gap: 4px;
  box-sizing: border-box;
}

/* Base Cell - Strictly Square and Fixed */
.cell {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1 / 1;
  min-width: 0;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  border-radius: 6px;
  box-sizing: border-box;
  overflow: hidden;
  transition: filter 0.15s ease;
}

.cell:hover:not(.locked) {
  filter: brightness(0.95);
}

/* Authentic PocketPaws Region Colors */
.cell.region-0 {
  background-color: #FDE8D4; /* Naranja Pastel */
}

.cell.region-1 {
  background-color: #D6F6D6; /* Verde Pastel */
}

.cell.region-2 {
  background-color: #D7E8FA; /* Azul Pastel */
}

.cell.locked {
  cursor: not-allowed;
  filter: saturate(1.1);
}

.cell.locked::after {
  content: "★";
  position: absolute;
  top: 4px;
  right: 6px;
  font-size: 0.65rem;
  color: var(--paws-gold-dark);
}

.cell.cat {
  /* Subtle highlight */
}

.cell.dog {
  /* Subtle highlight */
}

/* Character Sprites Inside Cells & UI */
.cell-animal {
  width: 72%;
  height: 72%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  pointer-events: none;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.18));
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.tool-pet {
  width: 22px;
  height: 22px;
  object-fit: contain;
  margin-right: 6px;
}

.chip-pet {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 2px;
}

.badge-pet {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin-left: 2px;
}

.inline-pet {
  width: 18px;
  height: 18px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}

.legend-pet {
  width: 16px;
  height: 16px;
  object-fit: contain;
  vertical-align: middle;
  margin: 0 2px;
}

.cell.invalid-conflict {
  background-color: #FFD2D2 !important;
  outline: 3px solid #E53935;
  animation: shake 0.35s ease;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); }
  75% { transform: translateX(4px); }
}

/* Tool selector */
.board-tool-selector {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  width: 100%;
  max-width: 360px;
  justify-content: center;
}

.tool-btn {
  flex: 1;
  padding: 8px 6px;
  font-family: var(--font-main);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--paws-text);
  background: var(--paws-tonal);
  border: 1.5px solid var(--paws-border);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tool-btn:hover {
  background: var(--paws-tonal-hover);
}

.tool-btn.active {
  background-color: var(--paws-primary);
  border-color: var(--paws-primary-dark);
  color: white;
  box-shadow: 0 2px 0 var(--paws-primary-dark);
}

.board-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--paws-text-muted);
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-box {
  display: inline-block;
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 1.5px solid #4A1E26;
}

.legend-box.orange { background-color: #FDE8D4; }
.legend-box.green { background-color: #D6F6D6; }
.legend-box.blue { background-color: #D7E8FA; }

/* ==========================================================================
   METAGAME & MASCOTAS CARDS
   ========================================================================== */
.mascotas-section {
  padding: 80px 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.feature-card {
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.feature-card:hover {
  transform: translateY(-6px);
  border-color: var(--paws-gold);
}

.feature-img-box {
  width: 100%;
  aspect-ratio: 16 / 10;
  height: auto;
  overflow: hidden;
  background-color: #ECE5D7;
  border-bottom: 2px solid var(--paws-border);
}

.feature-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-img {
  transform: scale(1.04);
}

.feature-body {
  padding: 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.feature-pill {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--paws-gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 8px;
}

.feature-heading {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--paws-text);
  margin-bottom: 10px;
}

.feature-text {
  font-size: 0.98rem;
  color: var(--paws-text-muted);
  line-height: 1.55;
}

/* ==========================================================================
   DEEP FEATURES (Banner Mode)
   ========================================================================== */
.deep-features-section {
  padding: 40px 0 80px;
}

.features-banner {
  padding: 48px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  align-items: center;
  background: linear-gradient(135deg, #FFFDF9 0%, #FAF5EB 100%);
}

.banner-title {
  font-size: 2.2rem;
  margin-bottom: 28px;
  color: var(--paws-text);
  line-height: 1.2;
}

.specs-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.spec-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.spec-icon {
  font-size: 1.8rem;
  line-height: 1;
}

.spec-info h4 {
  font-size: 1.1rem;
  color: var(--paws-text);
  margin-bottom: 4px;
}

.spec-info p {
  font-size: 0.9rem;
  color: var(--paws-text-muted);
  line-height: 1.45;
}

.banner-image {
  display: flex;
  justify-content: center;
}

.banner-screenshot {
  max-width: 100%;
  height: auto;
  max-height: 480px;
  border-radius: var(--radius-card);
  box-shadow: 0 12px 30px rgba(74, 62, 55, 0.08);
}

/* ==========================================================================
   DOWNLOAD FINAL CTA
   ========================================================================== */
.download-section {
  padding: 60px 0 100px;
}

.download-box {
  padding: 56px 32px;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F8F3EA 100%);
  max-width: 800px;
  margin: 0 auto;
}

.download-logo {
  max-width: 320px;
  height: auto;
  margin-bottom: 24px;
}

.download-title {
  font-size: 2.4rem;
  color: var(--paws-text);
  margin-bottom: 16px;
  line-height: 1.2;
}

.download-text {
  font-size: 1.2rem;
  color: var(--paws-text-muted);
  max-width: 580px;
  margin: 0 auto 36px;
}

.download-buttons {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.download-guarantee {
  font-size: 0.95rem;
  color: var(--paws-text-light);
  font-weight: 500;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
.footer {
  background-color: var(--paws-tonal);
  border-top: 1.5px solid var(--paws-border);
  padding: 40px 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-logo {
  width: 38px;
  height: 38px;
}

.footer-brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--paws-text);
}

.footer-tagline {
  font-size: 0.85rem;
  color: var(--paws-text-muted);
}

.footer-links {
  display: flex;
  gap: 16px 24px;
  flex-wrap: wrap;
  justify-content: center;
}

.footer-links a {
  text-decoration: none;
  color: var(--paws-text-muted);
  font-weight: 500;
  transition: color 0.15s ease;
}

.footer-links a:hover {
  color: var(--paws-primary);
}

.footer-copy {
  font-size: 0.9rem;
  color: var(--paws-text-muted);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Mobile, Phablet & Tablet)
   ========================================================================== */
@media (max-width: 960px) {
  .hero-container {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }

  .hero-title {
    font-size: 2.6rem;
  }

  .hero-description {
    margin-left: auto;
    margin-right: auto;
  }

  .hero-cta-group {
    justify-content: center;
  }

  .hero-badges {
    justify-content: center;
  }

  .demo-grid-wrapper {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .features-banner {
    grid-template-columns: 1fr;
    padding: 36px 24px;
    gap: 32px;
  }

  .specs-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }
}

@media (max-width: 680px) {
  /* Container & Layout */
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  /* Header & Navbar */
  .nav-links {
    display: none;
  }

  .brand-logo {
    width: 38px;
    height: 38px;
  }

  .brand-title {
    font-size: 1.25rem;
  }

  .brand-badge {
    font-size: 0.5rem;
  }

  .nav-actions {
    gap: 8px;
  }

  .nav-actions .btn-primary {
    display: none; /* Hide top CTA on mobile so navbar never overflows */
  }

  .lang-btn {
    padding: 4px 10px;
    height: 38px;
  }

  .icon-btn {
    width: 38px;
    height: 38px;
    font-size: 1rem;
  }

  /* Hero Section */
  .hero-section {
    padding: 36px 0 50px;
  }

  .hero-title {
    font-size: 2rem;
    line-height: 1.2;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .hero-description {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .hero-cta-group {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    max-width: 320px;
    margin: 0 auto 28px;
  }

  .hero-cta-group .btn {
    width: 100%;
    justify-content: center;
  }

  .hero-badges {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .hero-badge-item {
    font-size: 0.9rem;
  }

  .hero-card {
    max-width: 100%;
  }

  .hero-room-preview {
    height: 310px;
    padding: 16px;
  }

  .pet-sprite {
    width: 82px;
  }

  .pet-shadow {
    width: 55px;
  }

  /* Demo Interactive Puzzle */
  .demo-section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.85rem;
  }

  .section-subtitle {
    font-size: 1rem;
  }

  .rules-card {
    padding: 20px 16px;
  }

  .rules-actions {
    flex-direction: column;
    gap: 10px;
  }

  .rules-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .board-card {
    padding: 18px 12px;
  }

  .board-header {
    justify-content: center;
    text-align: center;
  }

  .puzzle-board-container {
    padding: 6px;
    border-radius: 14px;
    margin: 0 auto 14px;
    max-width: 320px;
  }

  .puzzle-board {
    gap: 3px;
  }

  /* 2x2 Grid for tool buttons on mobile screens: comfortable touch targets! */
  .board-tool-selector {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    width: 100%;
    max-width: 320px;
  }

  .tool-btn {
    padding: 10px 8px;
    font-size: 0.82rem;
  }

  .board-legend {
    gap: 8px 12px;
    font-size: 0.75rem;
  }

  /* Mascotas & Metagame */
  .mascotas-section {
    padding: 50px 0;
  }

  .feature-body {
    padding: 20px 16px;
  }

  .feature-heading {
    font-size: 1.25rem;
  }

  /* Features Deep Banner */
  .deep-features-section {
    padding: 30px 0 50px;
  }

  .features-banner {
    padding: 28px 16px;
  }

  .banner-title {
    font-size: 1.65rem;
  }

  /* Download Final Section */
  .download-section {
    padding: 40px 0 70px;
  }

  .download-box {
    padding: 36px 16px;
  }

  .download-logo {
    max-width: 250px;
  }

  .download-title {
    font-size: 1.7rem;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  .download-text {
    font-size: 1.05rem;
    margin-bottom: 24px;
  }

  .download-buttons .btn-xl {
    width: 100%;
    max-width: 320px;
    padding: 14px 20px;
    font-size: 1.05rem;
    justify-content: center;
  }

  /* Footer */
  .footer-container {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }

  .footer-links {
    gap: 12px 18px;
    font-size: 0.95rem;
  }
}

@media (max-width: 380px) {
  .hero-title {
    font-size: 1.75rem;
  }

  .brand-title {
    font-size: 1.15rem;
  }

  .brand-logo {
    width: 34px;
    height: 34px;
  }

  .hero-room-preview {
    height: 280px;
  }

  .pet-sprite {
    width: 72px;
  }

  .puzzle-board-container {
    max-width: 280px;
  }
}
