/* ====== Reset básico ====== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; padding: 0; margin: 0; }
button { background: none; border: none; cursor: pointer; }

:root{
  /* Futuristic palette based on user colors */
  --bg: #0b0b0d; /* dark app background */
  --card: #0f1113; /* slightly lighter panel */
  --text: #f5f3ef; /* light text */
  --muted: #c9b895; /* muted light gold */
  --border: rgba(255,255,255,0.06);
  --accent-dark: #7B542F; /* user: dark brown */
  --accent-2: #B6771D;   /* user: brown/gold */
  --accent-3: #FF9D00;   /* user: orange */
  --accent-4: #FFCF71;   /* user: light gold */
  --accent-glow: rgba(255,157,0,0.12);
}

body { font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Ubuntu, Cantarell, Noto Sans, Arial, "Apple Color Emoji", "Segoe UI Emoji"; color: var(--text); background: radial-gradient(1200px 400px at 10% 10%, rgba(183,119,29,0.06), transparent), var(--bg); }

.container { max-width: 1120px; margin: 0 auto; padding: 0 1.25rem; }

/* ====== Topbar ====== */
.topbar { position: sticky; top: 0; backdrop-filter: saturate(1.4) blur(8px); background: rgba(11,11,13,0.6); border-bottom: 1px solid var(--border); z-index: 10; }
.topbar-inner { display:flex; align-items:center; justify-content:space-between; height:64px; }
.brand { display:flex; align-items:center; gap:.5rem; }
.brand-logo { display:grid; place-items:center; width:36px; height:36px; border-radius:.6rem; background: linear-gradient(135deg, var(--accent-2), var(--accent-3)); color:#0b0b0d; box-shadow: 0 6px 18px var(--accent-glow); }
.brand-text { font-weight: 700; }

/* Ensure logo image fills the logo container */
.brand-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: inherit; display: block; }

.nav-desktop { display:none; gap:2rem; align-items:center; }
.nav-desktop a { font-size:.95rem; color: rgba(245,243,239,0.9); }
.nav-desktop a:hover { color: var(--accent-4); }
.btn-outline { border:1px solid rgba(255,207,113,0.18); color: var(--accent-3); padding:.4rem .75rem; border-radius:.75rem; }
.btn-outline:hover { background: rgba(255,207,113,0.04); }

.menu-btn { display:inline-flex; border:1px solid var(--border); padding:.4rem .6rem; border-radius:.75rem; }
.icon-20 { width:20px; height:20px; }
.icon-24 { width:24px; height:24px; }

.nav-mobile { display:none; flex-direction:column; gap:.5rem; padding: .5rem 1rem 1rem; border-bottom:1px solid var(--border); }
.nav-mobile a { padding:.5rem .75rem; border-radius:.5rem; color: rgba(245,243,239,0.9); }
.nav-mobile a:hover { background: rgba(255,207,113,0.03); color: var(--accent-4); }

/* ====== Hero ====== */
.hero { position: relative; overflow: hidden; padding: 3.5rem 0; color: var(--text); background: none; }
.hero .lead { color: rgba(11,11,13,0.8); }

/* Make the two store buttons in the hero section black */
.hero .store-badge { background: #000 !important; color: #fff !important; border-color: rgba(255,255,255,0.06); box-shadow: 0 6px 18px rgba(0,0,0,0.35); }
.hero .store-badge .badge-text { color: #fff; }
.hero .store-badge img { filter: none; }
.h1 { 
  font-size: clamp(2.5rem, 5vw, 4rem); 
  margin: 0;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.h1 span {
  display: inline-block;
}

.h2 { 
  font-size: clamp(1.25rem, 2.5vw, 1.75rem); 
  margin: 0 0 .25rem;
}

.lead { 
  color: var(--muted); 
  margin: 1.5rem 0 0; 
  max-width: 55ch;
  font-size: 1.25rem;
  line-height: 1.5;
}

.hero-grid { display:grid; gap:2.5rem; align-items:center; }
@media (min-width: 1024px){
  .hero-grid { grid-template-columns: 1fr 1fr; }
}

.btn-row { display:flex; flex-wrap:wrap; gap:.75rem; margin-top:1.25rem; }
.btn-primary { background: linear-gradient(90deg, var(--accent-2), var(--accent-3)); color:#0b0b0d; font-weight:700; padding:.75rem 1.1rem; border-radius:1rem; box-shadow: 0 8px 30px var(--accent-glow); border: 1px solid rgba(255,255,255,0.04); letter-spacing: .2px; }
.btn-primary:hover { background: linear-gradient(90deg, var(--accent-dark), var(--accent-2)); transform: translateY(-1px); }

.store-badge { display:inline-flex; align-items:center; gap:.5rem; background: linear-gradient(180deg, rgba(255,255,255,0.02), rgba(255,255,255,0.01)); color: var(--text); border:1px solid var(--border); border-radius:1rem; padding:.45rem .7rem; backdrop-filter: blur(6px); }
.store-badge .badge-text { display:flex; flex-direction:column; line-height:1.05; }
.store-badge small { opacity:.8; font-size:.65rem; }
.store-badge strong { font-size:.9rem; }

.phone-wrap { display:flex; justify-content:center; }
.phone { position:relative; width:280px; height:540px; background: linear-gradient(180deg, rgba(255,157,0,0.04), rgba(123,84,47,0.02)); border:1px solid rgba(255,255,255,0.04); border-radius:40px; padding:10px; box-shadow: 0 18px 50px rgba(0,0,0,.5); }
.notch { width:128px; height:24px; background: linear-gradient(90deg, rgba(0,0,0,0.6), rgba(0,0,0,0.4)); border-bottom-left-radius:16px; border-bottom-right-radius:16px; margin:4px auto 0; }
.screen { position:relative; height:460px; margin:8px auto 0; border-radius:32px; overflow:hidden; background: linear-gradient(135deg, rgba(11,11,13,0.6), rgba(7,7,10,0.9)); display:flex; align-items:center; justify-content:center; }
.logo-gif { max-height:220px; border-radius:12px; }
.media-chip { position:absolute; bottom:10px; left:50%; transform:translateX(-50%); background: rgba(255,255,255,0.04); color: var(--muted); font-size:.65rem; padding:.15rem .35rem; border-radius:999px; backdrop-filter: blur(4px); }

.side-btn { position:absolute; width:2px; background:#9ca3af; right:-1px; border-radius:2px; }
.side-btn.left { left:-1px; right:auto; top:96px; height:64px; }
.side-btn.right.short { top:80px; height:32px; }
.side-btn.right.long { top:128px; height:56px; }

.svg-card { width:200px; height:200px; background: linear-gradient(135deg, rgba(255,207,113,0.06), rgba(255,157,0,0.03)); border-radius:16px; padding:16px; box-shadow: 0 8px 28px rgba(183,119,29,0.06); }

/* Restore original phone frame color for the first section (hero) */
.hero .phone { background: #111827 !important; border: 1px solid #d1d5db !important; box-shadow: 0 15px 40px rgba(0,0,0,.15) !important; padding: 8px !important; width: 270px !important; height: 520px !important; }

/* ====== Secciones ====== */
.section { padding: 3rem 0; }
.grid-3 { display:grid; gap:1rem; }
@media (min-width: 768px){ .grid-3 { grid-template-columns: repeat(3, 1fr); } }
.card { background: var(--card); border:1px solid rgba(255,255,255,0.03); border-radius:24px; padding:1rem; box-shadow: 0 6px 18px rgba(0,0,0,.45); }
.card-icon { display:inline-flex; align-items:center; justify-content:center; background: linear-gradient(135deg, var(--accent-4), rgba(255,157,0,0.06)); color: var(--accent-dark); border:1px solid rgba(255,207,113,0.06); border-radius:16px; padding:.6rem; margin-bottom:.6rem; }
/* ensure Purpler icons fit nicely */
.card-icon img { width: 28px; height: 28px; display: block; }

/* ====== Testimonials ====== */
.testimonials-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.testimonial-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 1.5rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.25);
  transition: transform 0.3s ease;
}

.testimonial-card:hover {
  transform: translateY(-5px);
}

.testimonial-content {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.star-icon {
  width: 24px;
  height: 24px;
  filter: brightness(1.2);
}

.testimonial-text {
  color: var(--text);
  font-size: 1.1rem;
  line-height: 1.6;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 1rem;
}

.testimonial-author strong {
  color: var(--accent-4);
}

.testimonial-author span {
  color: var(--muted);
  font-size: 0.9rem;
}

/* ====== CTA ====== */
.cta {
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('assets/background-app-phone.png');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 4rem 0;
}

.cta-inner { 
  display: flex; 
  align-items: center; 
  justify-content: space-between; 
  gap: 2rem;
  background: rgba(11, 11, 13, 0.85);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.45);
}

.cta-inner h3,
.cta-inner p {
  color: var(--text);
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.cta-inner .store-badge {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

.cta-inner .store-badge:hover {
  background: rgba(255, 255, 255, 0.15);
  transform: translateY(-2px);
}

@media (max-width: 640px){ 
  .cta-inner { 
    flex-direction: column; 
    align-items: flex-start;
    padding: 1.5rem;
  } 
}

/* ====== Footer ====== */
.footer { border-top:1px solid var(--border); background: var(--card); }
.footer-grid { display:grid; gap:1.5rem; padding:2rem 0; }
@media (min-width: 768px){ .footer-grid { grid-template-columns: 1fr 2fr; } }
.brand-row { display:flex; align-items:center; gap:.5rem; }
.muted { color: var(--muted); margin:.75rem 0 0; max-width: 45ch; }
.social-row { display:flex; gap:.5rem; margin-top:.75rem; }
.social { display:grid; place-items:center; width:40px; height:40px; border:1px solid rgba(255,255,255,0.03); border-radius:999px; color: var(--muted); }
.social:hover { background: rgba(255,207,113,0.04); color: var(--accent-2); }
.social-icon { width:20px; height:20px; display:block; }

.links-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap:1rem; }
@media (min-width: 640px){ .links-grid { grid-template-columns: repeat(3, 1fr); } }
.links-grid h4 { margin:.25rem 0 .5rem; }
.links-grid a { color: rgba(245,243,239,0.85); }
.links-grid a:hover { color: var(--accent-4); }

.footer-bottom { border-top:1px solid var(--border); display:flex; justify-content:space-between; align-items:center; padding:1rem 0; color: var(--muted); font-size:.85rem; }
.footer-bottom .legal { display:flex; gap:1rem; }

/* ====== Animations ====== */
@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(100px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-left {
  opacity: 0;
  transform: translateX(-100px);
}

.animate-right {
  opacity: 0;
  transform: translateX(100px);
}

.animate-up {
  opacity: 0;
  transform: translateY(50px);
}

.animate-left.animate,
.animate-right.animate,
.animate-up.animate {
  opacity: 1;
  transform: translate(0);
  transition: all 0.8s ease-out;
}

/* ====== Dark-gold animated background scoped to .hero ====== */
.hero .gold-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  /* Layered dark-gold gradient */
  background:
    radial-gradient(1200px 800px at 15% 20%, rgba(255,220,130,.12), transparent 60%),
    radial-gradient(1200px 900px at 85% 80%, rgba(255,200,90,.10), transparent 60%),
    linear-gradient(130deg,
      #0b0a08 0%,
      #15110c 15%,
      #7a5a14 32%,
      #a37b13 50%,
      #c4a24a 64%,
      #1a140d 78%,
      #0b0a08 100%);
  background-size: 180% 180%;
  animation: gradientShiftHero 28s ease-in-out infinite alternate;
}

.hero .gold-bg::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background-image: repeating-radial-gradient(circle at 20% 30%, rgba(255,255,255,0.06) 0 1px, rgba(0,0,0,0) 1px 2px);
  mix-blend-mode: overlay;
  filter: contrast(140%) brightness(110%);
  opacity: .65;
  animation: grainMoveHero 3.5s steps(6) infinite;
}

.hero .gold-bg::after {
  content: "";
  position: absolute; inset: -20% -40%;
  background: linear-gradient(100deg, rgba(255,255,255,0) 35%, rgba(255,245,200,.16) 50%, rgba(255,255,255,0) 65%);
  transform: translateX(-60%) rotate(8deg);
  animation: shimmerHero 10s linear infinite;
  mix-blend-mode: screen;
  pointer-events: none;
}

.hero .sparkles {
  position: absolute; inset: 0; pointer-events: none; z-index: 2;
  opacity: 0.35;
  background:
    radial-gradient(3px 3px at 12% 24%, #ffe8a6 0 60%, transparent 60%),
    radial-gradient(2px 2px at 28% 72%, #ffd36b 0 60%, transparent 60%),
    radial-gradient(2px 2px at 52% 18%, #ffe1a0 0 60%, transparent 60%),
    radial-gradient(3px 3px at 76% 64%, #ffd981 0 60%, transparent 60%),
    radial-gradient(2px 2px at 88% 36%, #ffefb2 0 60%, transparent 60%);
  animation: driftHero 22s ease-in-out infinite alternate;
  filter: drop-shadow(0 0 4px rgba(255,217,130,.4));
}

/* Ensure content sits above the background */
.hero .container { position: relative; z-index: 5; }

@keyframes gradientShiftHero {
  0%   { background-position: 0% 40%; }
  50%  { background-position: 60% 60%; }
  100% { background-position: 100% 40%; }
}
@keyframes grainMoveHero {
  0% { transform: translate(0,0); }
  100% { transform: translate(2%, -2%); }
}
@keyframes shimmerHero {
  0%   { transform: translateX(-60%) rotate(8deg); }
  100% { transform: translateX(60%)  rotate(8deg); }
}
@keyframes driftHero {
  0%   { transform: translateY(0) scale(1); }
  100% { transform: translateY(-10px) scale(1.02); }
}

/* ====== Utilidades ====== */
.visually-hidden { position:absolute!important; height:1px; width:1px; overflow:hidden; clip: rect(1px,1px,1px,1px); white-space:nowrap; }

/* ====== Responsivo ====== */
@media (min-width: 768px){
  .nav-desktop { display:flex; }
  .menu-btn { display:none; }
}
