/* ─── FONTS ─── */
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Light.ttf') format('truetype'); font-weight: 300; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Light-Italic.ttf') format('truetype'); font-weight: 300; font-style: italic; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Nunito'; src: url('../fonts/Nunito-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('../fonts/Syne-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('../fonts/Syne-Medium.ttf') format('truetype'); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('../fonts/Syne-SemiBold.ttf') format('truetype'); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('../fonts/Syne-Bold.ttf') format('truetype'); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Syne'; src: url('../fonts/Syne-ExtraBold.ttf') format('truetype'); font-weight: 800; font-style: normal; font-display: swap; }

/* ─── RESET ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ─── VARIABLES ─── */
:root {
  --ink: #0A0F1E;
  --ink-soft: #3D4460;
  --ink-muted: #8B94B3;
  --surface: #F4F5FA;
  --white: #FFFFFF;
  --teal: #00C4A3;
  --teal-dark: #009E84;
  --teal-glow: rgba(0, 196, 163, 0.18);
  --border: rgba(0,0,0,0.07);
  --shadow-card: 0 4px 32px rgba(10,15,30,0.08);
  --radius: 20px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Nunito', sans-serif;
  background: var(--surface);
  color: var(--ink);
  overflow-x: hidden;
}

h1, h2, h3, h4 { font-family: 'Nunito', sans-serif; }

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='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* ─── NAV ─── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 5%;
  background: rgba(244,245,250,0.85);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-icon {
  width: 42px; height: 42px;
  background: linear-gradient(145deg, #0A0F1E 0%, #0B2E24 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.logo-text {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--ink) 0%, var(--teal-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

nav ul {
  list-style: none;
  display: flex;
  gap: 36px;
}

nav ul a {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-decoration: none;
  transition: color 0.2s;
}

nav ul a:hover { color: var(--ink); }

.nav-cta {
  background: var(--ink);
  color: var(--white) !important;
  padding: 10px 22px;
  border-radius: 50px;
  font-weight: 600 !important;
  transition: background 0.2s, transform 0.2s !important;
}

.nav-cta:hover {
  background: var(--teal-dark) !important;
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ─── HAMBURGER ─── */
.menu-btn {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  border-radius: 8px;
  transition: background 0.2s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.menu-btn:hover,
.menu-btn:focus-visible { background: rgba(0,0,0,0.06); outline: none; }
.menu-btn span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.28s ease, opacity 0.2s ease;
}
.menu-btn.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn.open span:nth-child(2) { opacity: 0; transform: scaleX(0); }
.menu-btn.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 900px) {
  .menu-btn { display: flex; }

  nav ul {
    display: none;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: rgba(244,245,250,0.97);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border-bottom: 1px solid var(--border);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    padding: 12px 0 20px;
  }
  nav ul.open {
    display: flex;
    animation: menuSlideDown 0.22s ease;
  }

  nav ul li { width: 100%; }
  nav ul a {
    display: block;
    padding: 13px 5%;
    font-size: 1rem;
  }
  nav ul a:active { background: rgba(0,0,0,0.06); }

  .nav-cta {
    display: inline-block;
    margin: 8px 5% 0;
    border-radius: 50px;
    text-align: center;
  }
}

/* ─── FOOTER ─── */
footer {
  background: var(--ink);
  color: rgba(255,255,255,0.55);
  padding: 64px 5% 32px;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.footer-quito {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 280px;
  pointer-events: none;
  display: block;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-brand .logo-text {
  background: linear-gradient(135deg, #ffffff 0%, var(--teal) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.footer-brand p {
  margin-top: 14px;
  font-size: 0.88rem;
  line-height: 1.7;
  max-width: 280px;
}

.footer-col h4 {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.35);
  margin-bottom: 16px;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }

.footer-col ul a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.footer-col ul a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-instagram {
  color: rgba(255,255,255,0.45);
  display: flex;
  align-items: center;
  transition: color 0.2s;
}

.footer-instagram:hover { color: rgba(255,255,255,0.9); }

.sri-certified {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--teal);
  font-size: 0.82rem;
  font-weight: 600;
}

/* ─── PROMO POPUP ─── */
#promo-popup-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(10, 15, 30, 0.45);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
#promo-popup-overlay.promo-popup-visible { opacity: 1; }
#promo-popup-overlay.promo-popup-hiding  { opacity: 0; }

.promo-popup {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(10,15,30,0.18);
  padding: 32px 28px 24px;
  max-width: 340px;
  width: 100%;
  position: relative;
  text-align: center;
  transform: translateY(20px);
  transition: transform 0.3s cubic-bezier(0.22,1,0.36,1);
}
#promo-popup-overlay.promo-popup-visible .promo-popup { transform: translateY(0); }
#promo-popup-overlay.promo-popup-hiding  .promo-popup { transform: translateY(12px); }

.promo-popup-close {
  position: absolute;
  top: 12px;
  right: 12px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-muted);
  padding: 4px;
  line-height: 1;
  transition: color 0.15s;
}
.promo-popup-close:hover { color: var(--ink); }

.promo-popup-icon { font-size: 2.2rem; line-height: 1; margin-bottom: 12px; }

.promo-popup-title {
  font-family: 'Syne', 'Nunito', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 8px;
}

.promo-popup-desc {
  font-size: 0.88rem;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.promo-popup-cta {
  display: block;
  background: var(--teal);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 12px 20px;
  border-radius: 10px;
  text-decoration: none;
  transition: background 0.18s;
  margin-bottom: 10px;
}
.promo-popup-cta:hover { background: var(--teal-dark); }

.promo-popup-dismiss {
  background: none;
  border: none;
  color: var(--ink-muted);
  font-size: 0.82rem;
  cursor: pointer;
  padding: 2px 6px;
  transition: color 0.15s;
}
.promo-popup-dismiss:hover { color: var(--ink-soft); }
