/* ─── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --primary: #2196F3;
  --primary-dark: #1565C0;
  --primary-light: #E3F2FD;
  --accent: #FFC107;
  --cream: #F5F1ED;
  --cream-dark: #EDE9E4;
  --dark: #1A1A1A;
  --dark-2: #2D2D2D;
  --muted: #6B7280;
  --border: #E5E7EB;
  --surface: #FFFFFF;
  --cat-pernoctar: #8E44AD;
  --cat-camping: #16A085;
  --cat-agua: #3498DB;
  --cat-otro: #7F8C8D;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-md: 0 8px 32px rgba(0,0,0,0.12);
  --shadow-lg: 0 24px 64px rgba(0,0,0,0.16);
  --shadow-phone: 0 40px 80px rgba(0,0,0,0.35), 0 0 0 1px rgba(255,255,255,0.05);
  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Inter', sans-serif;
  --nav-height: 68px;
}

/* ─── Reset & Base ──────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--dark);
  background: var(--surface);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; }

/* ─── Utilities ─────────────────────────────────────────────────────────────── */
.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.text-center { text-align: center; }

/* ─── Headings ──────────────────────────────────────────────────────────────── */
.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--dark);
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 18px;
  color: var(--muted);
  max-width: 560px;
  line-height: 1.7;
}
.section-subtitle.centered { margin: 0 auto; }

/* ─── Navigation ────────────────────────────────────────────────────────────── */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.nav.scrolled {
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 24px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  color: var(--surface);
  transition: color 0.3s;
}
.nav.scrolled .nav-logo { color: var(--dark); }
.nav-logo img { width: 32px; height: 32px; border-radius: 8px; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  transition: color 0.2s;
}
.nav.scrolled .nav-links a { color: var(--dark); }
.nav-links a:hover { color: var(--primary); }
.nav-right {
  display: flex;
  align-items: center;
  gap: 20px;
}
.lang-switcher {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.15);
  border-radius: var(--radius-full);
  padding: 4px;
  transition: background 0.3s;
}
.nav.scrolled .lang-switcher { background: var(--cream); }
.lang-switcher a {
  font-size: 12px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  padding: 4px 10px;
  border-radius: var(--radius-full);
  transition: all 0.2s;
}
.nav.scrolled .lang-switcher a { color: var(--muted); }
.lang-switcher a.active,
.lang-switcher a:hover {
  background: var(--primary);
  color: white !important;
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary);
  color: white !important;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s, transform 0.2s;
}
.nav-cta:hover { background: var(--primary-dark); transform: translateY(-1px); }
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  background: rgba(255,255,255,0.15);
  border-radius: 8px;
}
.nav-hamburger span {
  display: block;
  width: 20px;
  height: 2px;
  background: white;
  border-radius: 2px;
  transition: background 0.3s;
}
.nav.scrolled .nav-hamburger { background: var(--cream); }
.nav.scrolled .nav-hamburger span { background: var(--dark); }
.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0; right: 0;
  background: white;
  padding: 20px 24px 32px;
  box-shadow: var(--shadow-md);
  z-index: 999;
  border-top: 1px solid var(--border);
}
.mobile-menu.open { display: flex; flex-direction: column; gap: 16px; }
.mobile-menu a {
  font-size: 16px;
  font-weight: 500;
  color: var(--dark);
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .mobile-cta {
  margin-top: 8px;
  background: var(--primary);
  color: white;
  text-align: center;
  padding: 14px;
  border-radius: var(--radius-full);
  font-weight: 600;
  border-bottom: none;
}
.mobile-lang { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.mobile-lang a {
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  background: var(--cream);
  border-bottom: none;
}
.mobile-lang a.active { background: var(--primary); color: white; }

/* ─── Hero ──────────────────────────────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0D47A1 0%, #1565C0 30%, #1976D2 60%, #2196F3 100%);
  display: flex;
  align-items: center;
  position: relative;
  overflow: hidden;
  padding-top: var(--nav-height);
}
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.08)'/%3E%3C/svg%3E");
}
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero-blob-1 {
  width: 600px; height: 600px;
  background: rgba(255,193,7,0.15);
  top: -200px; right: -100px;
}
.hero-blob-2 {
  width: 400px; height: 400px;
  background: rgba(33,150,243,0.3);
  bottom: -100px; left: -100px;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  gap: 64px;
  position: relative;
  z-index: 1;
  padding: 80px 0;
}
.hero-content {}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: var(--radius-full);
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.9);
  margin-bottom: 28px;
  backdrop-filter: blur(4px);
}
.hero-badge-dot {
  width: 8px; height: 8px;
  background: var(--accent);
  border-radius: 50%;
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.3); }
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(36px, 5.5vw, 60px);
  font-weight: 800;
  color: white;
  line-height: 1.1;
  letter-spacing: -1px;
  margin-bottom: 20px;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  line-height: 1.7;
  margin-bottom: 40px;
  max-width: 480px;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}
.store-badge-link {
  display: inline-block;
  transition: transform 0.2s, opacity 0.2s;
}
.store-badge-link:hover { transform: translateY(-2px); }
.store-badge-link.disabled { cursor: not-allowed; opacity: 0.45; filter: grayscale(1); }
.store-badge-link.disabled:hover { transform: none; }
.store-badge {
  height: 56px;
  width: auto;
  display: block;
}
.hero-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.hero-stat {}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: white;
}
.hero-stat-label {
  font-size: 13px;
  color: rgba(255,255,255,0.6);
}

/* ─── Phone Mockup ──────────────────────────────────────────────────────────── */
.phone-wrap {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.phone-frame {
  position: relative;
  width: 260px;
  height: 540px;
  background: #0f0f0f;
  border-radius: 44px;
  box-shadow: var(--shadow-phone);
  padding: 12px;
  border: 2px solid #2a2a2a;
}
.phone-frame::before {
  content: '';
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 22px;
  background: #0f0f0f;
  border-radius: 0 0 16px 16px;
  z-index: 10;
}
.phone-frame::after {
  content: '';
  position: absolute;
  inset: 2px;
  border-radius: 42px;
  border: 1px solid rgba(255,255,255,0.06);
  pointer-events: none;
}
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #1a1a2e;
}
.phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}
.phone-screen-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
.phone-glow {
  position: absolute;
  inset: -30px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(33,150,243,0.3) 0%, transparent 70%);
  z-index: -1;
}
.phone-float {
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-16px) rotate(-4deg); }
}
.phone-sm .phone-frame {
  width: 200px;
  height: 415px;
  border-radius: 36px;
}
.phone-sm .phone-frame::before { width: 64px; height: 18px; }
.phone-sm .phone-screen { border-radius: 26px; }
.phones-dual {
  display: flex;
  gap: -30px;
  align-items: flex-end;
  justify-content: center;
  position: relative;
}
.phones-dual .phone-wrap:first-child {
  transform: translateX(20px) rotate(-5deg);
  z-index: 2;
}
.phones-dual .phone-wrap:last-child {
  transform: translateX(-20px) rotate(5deg);
}

/* ─── Problem / Solution ────────────────────────────────────────────────────── */
.problems { background: var(--cream); }
.problems-grid {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 48px;
}
.problem-card {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 24px;
  align-items: center;
  background: white;
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}
.problem-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.problem-side {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.problem-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted);
}
.solution-tag { color: var(--primary); }
.problem-text {
  font-size: 17px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.5;
}
.solution-text { color: var(--dark); }
.problem-icon {
  font-size: 24px;
  width: 56px;
  height: 56px;
  background: var(--primary-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s;
}
.problem-card:hover .problem-icon { background: var(--primary); }
.problem-card:hover .problem-icon svg { color: white; }

/* ─── Features Grid ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 56px;
}
.feature-card {
  background: var(--cream);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  transition: box-shadow 0.2s, transform 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--primary);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}
.feature-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
  background: white;
}
.feature-card:hover::before { transform: scaleX(1); }
.feature-icon {
  width: 52px;
  height: 52px;
  background: var(--primary-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--primary); }
.feature-title {
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
}
.feature-desc {
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

/* ─── Community ─────────────────────────────────────────────────────────────── */
.community {
  background: linear-gradient(135deg, #0D47A1 0%, #1976D2 100%);
  position: relative;
  overflow: hidden;
}
.community::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60'%3E%3Ccircle cx='30' cy='30' r='1.5' fill='rgba(255,255,255,0.06)'/%3E%3C/svg%3E");
}
.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.community-content .section-title { color: white; }
.community-content .section-subtitle { color: rgba(255,255,255,0.75); max-width: none; }
.community-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 32px;
}
.community-item {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  backdrop-filter: blur(8px);
}
.community-item-icon {
  font-size: 24px;
  flex-shrink: 0;
}
.community-item-text {
  font-size: 15px;
  color: rgba(255,255,255,0.9);
  font-weight: 500;
}
.community-visual {
  display: flex;
  justify-content: center;
}

/* ─── Local-first ───────────────────────────────────────────────────────────── */
.localfirst { background: var(--cream); }
.localfirst-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.localfirst-bullets {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 32px;
}
.localfirst-bullet {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.localfirst-bullet-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.localfirst-bullet-icon svg { width: 20px; height: 20px; color: white; }
.localfirst-bullet-content {}
.localfirst-bullet-title {
  font-weight: 600;
  font-size: 16px;
  color: var(--dark);
  margin-bottom: 2px;
}
.localfirst-bullet-desc {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}
.localfirst-visual { display: flex; justify-content: center; }

/* ─── CTA Final ─────────────────────────────────────────────────────────────── */
.cta-final {
  background: var(--dark);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(33,150,243,0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-final-title {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 16px;
  position: relative;
}
.cta-final-sub {
  font-size: 18px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 40px;
  position: relative;
}
.cta-buttons {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  position: relative;
}
.cta-note {
  margin-top: 24px;
  font-size: 14px;
  color: rgba(255,255,255,0.4);
  position: relative;
}

/* ─── Footer ────────────────────────────────────────────────────────────────── */
.footer {
  background: #111;
  padding: 48px 0 32px;
  color: rgba(255,255,255,0.6);
}
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand {}
.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}
.footer-logo img { width: 28px; height: 28px; border-radius: 6px; }
.footer-tagline {
  font-size: 14px;
  color: rgba(255,255,255,0.5);
}
.footer-links {
  display: flex;
  gap: 48px;
}
.footer-links-group {}
.footer-links-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: rgba(255,255,255,0.3);
  margin-bottom: 16px;
}
.footer-links-group a {
  display: block;
  font-size: 14px;
  color: rgba(255,255,255,0.6);
  margin-bottom: 10px;
  transition: color 0.2s;
}
.footer-links-group a:hover { color: white; }
.footer-bottom {
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
.footer-cafecito {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,221,87,0.15);
  border-radius: var(--radius-full);
  padding: 6px 14px;
  font-size: 13px;
  color: #FFDD57;
  font-weight: 500;
  transition: background 0.2s;
}
.footer-cafecito:hover { background: rgba(255,221,87,0.25); }

/* ─── Categories row ────────────────────────────────────────────────────────── */
.cat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
.cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  color: white;
}
.cat-chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
}
.chip-pernoctar { background: var(--cat-pernoctar); }
.chip-camping { background: var(--cat-camping); }
.chip-agua { background: var(--cat-agua); }
.chip-otro { background: var(--cat-otro); }

/* ─── Levels strip ──────────────────────────────────────────────────────────── */
.levels-strip {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.level-pill {
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: var(--radius-full);
  padding: 6px 16px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255,255,255,0.85);
}

/* ─── Responsivo ────────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .container { padding: 0 20px; }
  .nav-links, .nav-cta { display: none; }
  .nav-hamburger { display: flex; }
  .lang-switcher { display: none; }

  .hero-inner {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 48px;
    padding: 48px 0 64px;
  }
  .hero-subtitle { margin: 0 auto 40px; }
  .hero-ctas { justify-content: center; }
  .hero-stats { justify-content: center; }
  .hero-visual { order: -1; }
  .phone-frame { width: 220px; height: 458px; }
  .phone-float { animation: none; transform: none !important; }

  .problem-card {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 16px;
  }
  .problem-icon { margin: 0 auto; }

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

  .community-inner,
  .localfirst-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .community-visual { order: -1; }

  .footer-inner {
    flex-direction: column;
    gap: 32px;
  }
  .footer-links { flex-direction: column; gap: 24px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }

  .phones-dual .phone-wrap:first-child { display: none; }
  .phones-dual .phone-wrap:last-child { transform: none; }
}

@media (max-width: 480px) {
  .hero-title { font-size: 32px; }
  .btn-store { width: 100%; max-width: 280px; }
  .hero-ctas { flex-direction: column; align-items: center; }
}
