/* ═══════════════════════════════════════
   MERCADOS — Global Stylesheet
   ═══════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700;900&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:       #1e1e38;
  --navy-mid:   #2d2d4e;
  --navy-light: #3a3a5c;
  --cyan:       #4ecdc4;
  --teal:       #2ab3aa;
  --purple:     #8b5cf6;
  --pink:       #ec4899;
  --grad:       linear-gradient(135deg, #4ecdc4 0%, #8b5cf6 50%, #ec4899 100%);
  --grad-text:  linear-gradient(90deg, #4ecdc4, #8b5cf6, #ec4899);
  --white:      #f0f0f8;
  --muted:      rgba(240,240,248,0.55);
  --border:     rgba(78,205,196,0.12);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }

body {
  background: var(--navy);
  color: var(--white);
  font-family: 'DM Sans', sans-serif;
  overflow-x: hidden;
  min-height: 100vh;
}

/* Noise texture overlay */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 0; opacity: 0.35;
}

/* ── TYPOGRAPHY ── */
h1,h2,h3 { font-family: 'Playfair Display', serif; line-height: 1.1; }
h1 { font-size: clamp(2.6rem, 6vw, 5.2rem); font-weight: 900; }
h2 { font-size: clamp(1.9rem, 3.5vw, 2.8rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }
p  { line-height: 1.7; }

.grad-text {
  background: var(--grad-text);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── NAV ── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 200;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.6rem 5%;
  backdrop-filter: blur(18px);
  background: rgba(30,30,56,0.92);
  border-bottom: 1px solid var(--border);
  transition: padding 0.3s;
}
nav.scrolled { padding: 0.4rem 5%; }

.nav-logo { display: flex; align-items: center; gap: 0.6rem; text-decoration: none; }
.nav-logo svg { width: 34px; height: 34px; }
.nav-logo-text {
  font-family: 'DM Sans', sans-serif; font-size: 1.35rem; font-weight: 700;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}

.nav-links { display: flex; align-items: center; gap: 2.2rem; list-style: none; }
.nav-links a {
  color: var(--muted); text-decoration: none;
  font-size: 0.88rem; font-weight: 500; letter-spacing: 0.04em;
  transition: color 0.3s; position: relative; padding-bottom: 2px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px; background: var(--cyan);
  transform: scaleX(0); transition: transform 0.3s;
}
.nav-links a:hover { color: var(--cyan); }
.nav-links a:hover::after, .nav-links a.active::after { transform: scaleX(1); }
.nav-links a.active { color: var(--cyan); }

.nav-cta {
  background: var(--grad) !important;
  color: #fff !important; padding: 0.5rem 1.4rem !important;
  border-radius: 50px; font-weight: 600 !important;
  transition: opacity 0.3s, transform 0.3s !important;
  box-shadow: 0 4px 20px rgba(139,92,246,0.3);
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { opacity: 0.88; transform: translateY(-1px) !important; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px; transition: all 0.3s;
}

/* ── PAGE HERO (inner pages) ── */
.page-hero {
  padding: 9rem 5% 5rem;
  position: relative; z-index: 1; text-align: center;
}
.page-hero-orb {
  position: absolute; border-radius: 50%; filter: blur(80px); pointer-events: none;
}
.page-hero h1 { margin-bottom: 1rem; }
.page-hero p { color: var(--muted); font-size: 1.1rem; max-width: 560px; margin: 0 auto; }

/* ── SECTION SHARED ── */
section { padding: 5.5rem 5%; position: relative; z-index: 1; }
.section-tag {
  display: inline-block; font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 0.7rem;
}
.section-title { margin-bottom: 0.8rem; }
.section-sub { color: var(--muted); font-size: 1rem; max-width: 540px; margin-bottom: 2.5rem; }

/* ── BUTTONS ── */
.btn-primary {
  display: inline-block;
  background: var(--grad); color: #fff;
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 600; text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  box-shadow: 0 6px 28px rgba(139,92,246,0.28);
  border: none; cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 36px rgba(139,92,246,0.42); }

.btn-outline {
  display: inline-block;
  background: transparent; color: var(--white);
  padding: 0.85rem 2rem; border-radius: 50px;
  font-size: 0.95rem; font-weight: 500; text-decoration: none;
  border: 1px solid rgba(240,240,248,0.22);
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer; font-family: 'DM Sans', sans-serif;
}
.btn-outline:hover { border-color: var(--cyan); background: rgba(78,205,196,0.08); }

/* ── CARDS ── */
.card {
  background: var(--navy-mid);
  border: 1px solid var(--border);
  border-radius: 16px; padding: 2rem;
  transition: transform 0.3s, border-color 0.3s, box-shadow 0.3s;
}
.card:hover {
  transform: translateY(-5px);
  border-color: rgba(78,205,196,0.3);
  box-shadow: 0 12px 40px rgba(0,0,0,0.25);
}

/* ── STATS BAR ── */
.stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  position: relative; z-index: 1;
}
.stat-item { background: var(--navy); padding: 2rem; text-align: center; }
.stat-num {
  font-family: 'Playfair Display', serif; font-size: 2.6rem; font-weight: 900;
  background: var(--grad-text);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
  display: block;
}
.stat-label { color: var(--muted); font-size: 0.8rem; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; margin-top: 0.3rem; }

/* ── WHATSAPP FLOAT ── */
.whatsapp-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 300;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25d366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  text-decoration: none;
  transition: transform 0.3s, box-shadow 0.3s;
  animation: waFloat 3s ease-in-out infinite;
}
.whatsapp-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.6); }
.whatsapp-float svg { width: 30px; height: 30px; fill: #fff; }
@keyframes waFloat {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

/* ── FOOTER ── */
footer {
  background: #14142a;
  border-top: 1px solid rgba(78,205,196,0.08);
  padding: 4rem 5% 2rem;
  position: relative; z-index: 1;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem; margin-bottom: 3rem;
}
.footer-brand-tagline { font-style: italic; color: var(--muted); font-size: 0.85rem; margin-top: 0.3rem; margin-bottom: 1rem; }
.footer-desc { color: var(--muted); font-size: 0.88rem; line-height: 1.65; max-width: 280px; }
.footer-col h4 {
  font-family: 'DM Sans', sans-serif; font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--cyan); margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.6rem; }
.footer-col ul a { color: var(--muted); text-decoration: none; font-size: 0.88rem; transition: color 0.3s; }
.footer-col ul a:hover { color: var(--cyan); }
.footer-social { display: flex; gap: 0.8rem; margin-top: 0.5rem; }
.social-btn {
  width: 38px; height: 38px; border-radius: 50%;
  border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 1rem;
  transition: all 0.3s;
}
.social-btn:hover { border-color: var(--cyan); color: var(--cyan); background: rgba(78,205,196,0.08); }
.footer-bottom {
  border-top: 1px solid rgba(78,205,196,0.06);
  padding-top: 1.5rem;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 1rem;
}
.footer-bottom p { color: rgba(240,240,248,0.3); font-size: 0.78rem; }
.footer-bottom a { color: rgba(240,240,248,0.3); text-decoration: none; font-size: 0.78rem; transition: color 0.3s; }
.footer-bottom a:hover { color: var(--cyan); }

/* ── SCROLL REVEAL ── */
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ── FORM ── */
.form-group { margin-bottom: 1.2rem; }
.form-group label {
  display: block; font-size: 0.82rem; font-weight: 500;
  color: var(--muted); margin-bottom: 0.45rem; letter-spacing: 0.04em;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%; padding: 0.85rem 1.2rem;
  background: var(--navy-light);
  border: 1px solid rgba(78,205,196,0.18);
  border-radius: 10px; color: var(--white);
  font-family: 'DM Sans', sans-serif; font-size: 0.95rem;
  outline: none; transition: border-color 0.3s, box-shadow 0.3s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(78,205,196,0.12);
}
.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(240,240,248,0.3); }
.form-group select option { background: var(--navy-mid); }
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-links { display: none; flex-direction: column; position: fixed; top: 60px; left: 0; right: 0; background: var(--navy-mid); padding: 2rem 5%; gap: 1.5rem; border-bottom: 1px solid var(--border); }
  .nav-links.open { display: flex; }
  .hamburger { display: flex; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .footer-bottom { flex-direction: column; text-align: center; }
}
