/* ============================================
   BRISA NET — STATIC SITE
   Reset + Design System + Components
   ============================================ */

/* RESET */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { width: 100%; max-width: 100%; overflow-x: hidden; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  color: var(--fg);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }

/* TOKENS */
:root {
  --primary: #ff6b1a;
  --primary-2: #ff8c42;
  --primary-dark: #e85d10;
  --whatsapp: #25d366;
  --whatsapp-dark: #1ebe57;

  --bg: #ffffff;
  --bg-soft: #fff8f3;
  --surface: #ffffff;
  --fg: #1c1917;
  --muted: #6b6560;
  --border: #ececec;

  --radius: 14px;
  --radius-lg: 22px;
  --radius-pill: 999px;

  --shadow-sm: 0 2px 8px rgba(255,107,26,.08);
  --shadow: 0 8px 24px rgba(28,25,23,.08);
  --shadow-lg: 0 18px 40px rgba(255,107,26,.18);

  --grad-brand: linear-gradient(135deg, #ff6b1a 0%, #ff8c42 100%);

  --container: 1200px;
  --header-h: 72px;
}

/* CONTAINER */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 20px;
}
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* TYPOGRAPHY HELPERS */
.eyebrow {
  display: inline-block;
  background: var(--bg-soft);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
}
.grad {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-head h2 {
  font-size: clamp(1.75rem, 3vw + 1rem, 2.5rem);
  margin-top: 12px;
}
.section-head p {
  color: var(--muted);
  margin-top: 12px;
  font-size: 1.05rem;
}

/* SECTIONS */
.section { padding: 80px 0; }
.section-soft { background: linear-gradient(180deg, var(--bg-soft) 0%, #fff 100%); }
@media (max-width: 640px) { .section { padding: 56px 0; } }

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
  border: 2px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm  { padding: 10px 18px; font-size: 13px; }
.btn-lg  { padding: 16px 28px; font-size: 15px; }
.btn-whatsapp { background: var(--whatsapp); color: #fff; box-shadow: 0 6px 18px rgba(37,211,102,.35); }
.btn-whatsapp:hover { background: var(--whatsapp-dark); }
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: var(--shadow-lg); }
.btn-outline { background: #fff; color: var(--fg); border-color: var(--border); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-white { background: #fff; color: var(--primary); }
.btn-secondary { background: var(--bg-soft); color: var(--fg); }
.btn-secondary:hover { background: var(--primary); color: #fff; }

/* ============================================
   HEADER
   ============================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: var(--header-h);
}
.logo img { height: 36px; width: auto; }
.nav-desktop { display: none; gap: 28px; }
.nav-desktop a {
  font-size: 14px;
  font-weight: 600;
  color: #2a2a2a;
  transition: color .15s;
}
.nav-desktop a:hover { color: var(--primary); }
.header-cta { display: none; }
.menu-toggle {
  width: 42px; height: 42px;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 5px; border: 1px solid var(--border); border-radius: 10px;
}
.menu-toggle span { width: 18px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform .2s, opacity .2s; }
.menu-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.open span:nth-child(2) { opacity: 0; }
.menu-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-mobile[hidden] { display: none !important; }
.nav-mobile {
  display: flex; flex-direction: column; gap: 4px;
  padding: 12px 20px 20px;
  border-top: 1px solid var(--border);
  background: #fff;
}
.nav-mobile a {
  padding: 14px 12px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 16px;
}
.nav-mobile a:not(.btn):hover { background: var(--bg-soft); color: var(--primary); }
.nav-mobile .btn { margin-top: 8px; }

@media (min-width: 1024px) {
  .nav-desktop { display: flex; }
  .header-cta { display: inline-flex; }
  .menu-toggle { display: none; }
  .nav-mobile[hidden] { display: none !important; }
.nav-mobile { display: none !important; }
}

/* ============================================
   HERO
   ============================================ */
.hero { position: relative; width: 100%; overflow: hidden; background: #fff; }
.hero-desktop { display: none; width: 100%; height: auto; }
.hero-mobile { position: relative; width: 100%; }
.hero-mobile .slides {
  position: relative; width: 100%; aspect-ratio: 4 / 5; overflow: hidden;
}
.hero-mobile .slide {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  opacity: 0; transition: opacity .7s ease;
}
.hero-mobile .slide.active { opacity: 1; }
.dots {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; gap: 8px; z-index: 2;
}
.dots button {
  width: 8px; height: 8px; border-radius: 999px;
  background: rgba(255,255,255,.6); transition: width .2s, background .2s;
}
.dots button.active { width: 28px; background: #fff; }
@media (min-width: 1024px) {
  .hero-desktop { display: block; }
  .hero-mobile { display: none; }
}

/* CTA BAR */
.cta-bar { background: #fff; border-bottom: 1px solid var(--border); padding: 28px 0; }
.cta-bar-inner {
  display: flex; flex-wrap: wrap; gap: 14px;
  align-items: center; justify-content: center;
}
.cta-bar .btn { width: 100%; }
@media (min-width: 640px) {
  .cta-bar .btn { width: auto; }
}

/* ============================================
   CARDS / GRID
   ============================================ */
.grid { display: grid; gap: 24px; }
.cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.plans { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); align-items: stretch; }

.card {
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
  height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: rgba(255,107,26,.3); }
.card-icon {
  width: 52px; height: 52px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 14px;
  background: var(--grad-brand);
  color: #fff;
  margin-bottom: 16px;
  font-size: 24px;
  flex-shrink: 0;
}
.card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: .95rem; flex: 1; }
.card .btn { margin-top: 20px; align-self: flex-start; }

/* PLAN CARD */
.plan {
  position: relative;
  display: flex; flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s ease, box-shadow .25s ease;
  height: 100%;
}
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.plan.featured { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.plan .badge {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--grad-brand); color: #fff;
  font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px;
  box-shadow: var(--shadow-lg);
  white-space: nowrap;
}
.plan .plan-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; font-size: 24px;
  margin-bottom: 16px;
}
.plan h3 { font-size: 1.4rem; }
.plan .price { display: flex; align-items: baseline; gap: 4px; margin-top: 8px; }
.plan .price .currency { font-size: .9rem; color: var(--muted); }
.plan .price .value {
  font-size: 3rem; font-weight: 800; letter-spacing: -.02em;
  background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1;
}
.plan .price .period { font-size: .9rem; color: var(--muted); }
.plan ul { list-style: none; margin-top: 20px; flex: 1; display: flex; flex-direction: column; gap: 10px; }
.plan ul li { display: flex; gap: 8px; align-items: flex-start; font-size: .95rem; }
.plan ul li::before {
  content: "✓"; color: var(--whatsapp); font-weight: 800; flex-shrink: 0;
}
.plan .btn { margin-top: 24px; width: 100%; }

/* ============================================
   FAQ
   ============================================ */
.faq-wrap {
  display: grid; gap: 40px;
  grid-template-columns: 1fr;
  align-items: start;
}
@media (min-width: 1024px) {
  .faq-wrap { grid-template-columns: 1fr 1.4fr; gap: 60px; }
  .faq-intro { text-align: left; }
  .faq-intro .eyebrow { margin-bottom: 12px; }
}
.faq-intro h2 { font-size: clamp(1.75rem, 2.5vw + 1rem, 2.25rem); margin-top: 8px; }
.faq-intro p { color: var(--muted); margin: 12px 0 20px; }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-weight: 600;
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+"; font-size: 24px; color: var(--primary); transition: transform .2s; font-weight: 400;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item .answer { padding: 0 22px 20px; color: var(--muted); font-size: .95rem; }

/* ============================================
   WHATSAPP BANNER
   ============================================ */
.wa-banner { background: var(--grad-brand); color: #fff; padding: 60px 0; }
.wa-banner-inner {
  display: flex; flex-direction: column; gap: 24px;
  align-items: center; text-align: center;
}
.wa-banner h2 { font-size: clamp(1.5rem, 2vw + 1rem, 2rem); }
.wa-banner p { opacity: .95; margin-top: 8px; }
@media (min-width: 768px) {
  .wa-banner-inner { flex-direction: row; justify-content: space-between; text-align: left; }
}

/* ============================================
   FOOTER
   ============================================ */
.site-footer { background: #1a1614; color: #d6d3d1; padding: 60px 0 0; }
.footer-inner {
  display: grid; gap: 32px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}
.footer-inner h4 { color: #fff; margin-bottom: 14px; font-size: 1rem; }
.footer-inner a { display: block; padding: 6px 0; color: #d6d3d1; font-size: .92rem; }
.footer-inner a:hover { color: var(--primary-2); }
.footer-logo { height: 36px; width: auto; margin-bottom: 14px; filter: brightness(0) invert(1); }
.footer-bottom {
  border-top: 1px solid #2a2522;
  margin-top: 40px; padding: 20px 0;
  font-size: .85rem; color: #a8a29e; text-align: center;
}

/* ============================================
   FLOATING WHATSAPP
   ============================================ */
.fab-whatsapp {
  position: fixed;
  right: 18px; bottom: 18px;
  width: 60px; height: 60px;
  border-radius: 999px;
  background: var(--whatsapp);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 28px rgba(37,211,102,.45);
  z-index: 60;
  transition: transform .2s;
  animation: pulseWa 2.4s ease-in-out infinite;
}
.fab-whatsapp:hover { transform: scale(1.08); }
@keyframes pulseWa {
  0%,100% { box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 0 rgba(37,211,102,.5); }
  50%     { box-shadow: 0 12px 28px rgba(37,211,102,.45), 0 0 0 16px rgba(37,211,102,0); }
}
@media (min-width: 768px) {
  .fab-whatsapp { right: 28px; bottom: 28px; width: 64px; height: 64px; }
}

/* Safe-area on mobile (iPhone bottom bar) */
@supports (padding: max(0px)) {
  .fab-whatsapp { bottom: max(18px, env(safe-area-inset-bottom)); }
}
