/* =====================================================
   ZwareOnline — Premium Light Design System
   Color: White + Golden Yellow (#F5C000) + Deep Ink
   Font: Sora (display) + DM Sans (body)
   ===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@300;400;600;700;800&family=DM+Sans:ital,wght@0,300;0,400;0,500;0,700;1,400&display=swap');

/* ── Variables ─────────────────────────────────── */
:root {
  --gold:       #F5C000;
  --gold-dark:  #D4A000;
  --gold-pale:  #FFF7D6;
  --gold-glow:  rgba(245,192,0,0.25);
  --ink:        #0D0E12;
  --ink-80:     rgba(13,14,18,0.80);
  --ink-40:     rgba(13,14,18,0.40);
  --ink-10:     rgba(13,14,18,0.06);
  --white:      #FFFFFF;
  --off-white:  #FAFAF8;
  --surface:    #F4F4F0;
  --border:     rgba(13,14,18,0.10);
  --shadow-sm:  0 2px 8px rgba(13,14,18,0.07);
  --shadow-md:  0 8px 32px rgba(13,14,18,0.10);
  --shadow-lg:  0 24px 64px rgba(13,14,18,0.14);
  --radius-sm:  8px;
  --radius-md:  16px;
  --radius-lg:  24px;
  --radius-xl:  40px;
  --font-head:  'Sora', sans-serif;
  --font-body:  'DM Sans', sans-serif;
  --max-w:      1180px;
  --ease:       cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a   { color: inherit; text-decoration: none; }
ul  { list-style: none; }

/* ── Noise texture overlay ─────────────────────── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' 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.03'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 9999;
  opacity: .5;
}

/* ── Typography ────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-head); font-weight: 700; line-height: 1.15; }

h1 { font-size: clamp(2.8rem, 6vw, 5rem); font-weight: 800; letter-spacing: -.03em; }
h2 { font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.025em; }
h3 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); }
h4 { font-size: 1.15rem; }

p   { max-width: 60ch; }
.lead { font-size: 1.2rem; font-weight: 400; color: var(--ink-80); }

/* ── Layout helpers ────────────────────────────── */
.container { max-width: var(--max-w); margin: 0 auto; padding: 0 2rem; }

section { padding: 7rem 0; }

.section-label {
  display: inline-flex; align-items: center; gap: .5rem;
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  letter-spacing: .15em; text-transform: uppercase;
  color: var(--gold-dark);
  background: var(--gold-pale); border: 1px solid rgba(245,192,0,.35);
  padding: .35rem .9rem; border-radius: 100px;
  margin-bottom: 1.4rem;
}

.section-header { margin-bottom: 4rem; }
.section-header p { margin-top: 1rem; color: var(--ink-80); }

/* ── Buttons ───────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--font-head); font-size: .95rem; font-weight: 600;
  padding: .85rem 2rem; border-radius: var(--radius-xl);
  border: none; cursor: pointer;
  transition: all .25s var(--ease);
  position: relative; overflow: hidden;
  text-decoration: none; white-space: nowrap;
}
.btn::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 60%);
  pointer-events: none;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--gold);
  color: var(--ink);
  box-shadow: 0 4px 20px var(--gold-glow);
}
.btn-primary:hover {
  background: var(--gold-dark);
  box-shadow: 0 8px 32px rgba(245,192,0,.45);
}

.btn-outline {
  background: var(--white);   /* opaque — prevents grid lines showing through */
  color: var(--ink);
  border: 1.5px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-outline:hover { border-color: var(--gold); color: var(--gold-dark); background: var(--gold-pale); }

/* For outline buttons used on dark/colored backgrounds */
.btn-outline-invert {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.4);
  box-shadow: none;
}
.btn-outline-invert:hover {
  background: rgba(255,255,255,.12);
  border-color: rgba(255,255,255,.8);
  color: var(--white);
  transform: translateY(-2px);
}

.btn-dark {
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 4px 20px rgba(13,14,18,.25);
}
.btn-dark:hover { background: #1e2028; box-shadow: 0 8px 32px rgba(13,14,18,.35); }

.btn-sm { padding: .6rem 1.3rem; font-size: .85rem; }
.btn-lg { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* ── Navigation ────────────────────────────────── */
#navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 1.2rem 0;
  transition: all .35s var(--ease);
}
#navbar.scrolled {
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: .8rem 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  font-family: var(--font-head); font-size: 1.4rem; font-weight: 800;
  letter-spacing: -.03em; color: var(--ink);
  display: flex; align-items: center; gap: .4rem;
}
.nav-logo span { color: var(--gold); }

.nav-links {
  display: flex; align-items: center; gap: 2.5rem;
}
.nav-links a {
  font-family: var(--font-head); font-size: .9rem; font-weight: 600;
  color: var(--ink-80); letter-spacing: -.01em;
  transition: color .2s;
}
.nav-links a:hover { color: var(--ink); }

.nav-cta { display: flex; align-items: center; gap: .75rem; flex-shrink: 0; }

/* Currency switcher label — hide on narrow desktops */
.currency-switcher .curr-label { display: inline; }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; background: none; border: none; padding: .3rem;
  flex-shrink: 0;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--ink);
  transition: all .3s var(--ease); border-radius: 2px;
}

/* ── Tablet / narrow desktop (1024px and below) ─────────────────────────── */
@media (max-width: 1024px) {
  .nav-links { gap: 1.5rem; }
  .nav-cta   { gap: .5rem; }
}

/* ── Hide nav at tablet portrait and below (show hamburger) ─────────────── */
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-cta .btn:not(:last-child) { display: none; } /* hide all but last CTA */
  .hamburger { display: flex; }
}

/* ── Hero ──────────────────────────────────────── */
#hero {
  /* Block container — .container inside centers reliably via margin:auto */
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  background: var(--white);
}

/* The container is the flex parent — this is reliable & predictable */
#hero > .container {
  position: relative;
  z-index: 2;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  /* padding-top = fixed navbar height (~64px) + comfortable visual gap */
  padding-top: 9rem;
  padding-bottom: 5rem;
}

.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,192,0,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(245,192,0,.07) 0%, transparent 50%);
}

/* ── Video background — MUST be position:absolute to not affect layout ─── */
.hero-video-bg {
  position: absolute;   /* out of flow — does NOT push content */
  inset: 0;             /* covers entire #hero section */
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.hero-video-bg video {
  position: absolute;
  top: 50%; left: 50%;
  min-width: 100%; min-height: 100%;
  width: auto; height: auto;
  transform: translate(-50%, -50%);
  object-fit: cover;
  opacity: 0;           /* hidden until canplay fires */
  transition: opacity .8s ease;
}
/* Gradient overlay so text stays readable over video */
.hero-video-bg::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(
    to right,
    rgba(255,255,255,0.97) 0%,
    rgba(255,255,255,0.90) 40%,
    rgba(255,255,255,0.50) 70%,
    rgba(255,255,255,0.10) 100%
  );
}
/* Fallback when no video: subtle gradient */
.hero-video-bg.no-video {
  background:
    radial-gradient(ellipse 80% 60% at 70% 50%, rgba(245,192,0,.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 80% at 20% 80%, rgba(245,192,0,.07) 0%, transparent 50%);
}

.hero-grid-lines {
  position: absolute; inset: 0;
  z-index: 1;
  background-image:
    linear-gradient(var(--ink-10) 1px, transparent 1px),
    linear-gradient(90deg, var(--ink-10) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 100% at center, black 40%, transparent 100%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  /* Wide on large screens — fills more of the viewport */
  max-width: min(900px, 65vw);
  width: 100%;
  /* Center within the flex-column container */
  margin-left: auto;
  margin-right: auto;
}
  width: 100%;
  /* Center the block in whatever parent it sits in */
  margin-left: auto;
  margin-right: auto;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: .6rem;
  background: var(--gold-pale);
  border: 1px solid rgba(245,192,0,.5);
  border-radius: 100px; padding: .4rem 1rem .4rem .5rem;
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold-dark); margin-bottom: 2rem;
  animation: fadeSlideIn .7s var(--ease) both;
}
.hero-badge i {
  background: var(--gold); color: var(--ink);
  border-radius: 100px; padding: .25rem .5rem; font-size: .75rem;
}

.hero-title {
  animation: fadeSlideIn .7s .1s var(--ease) both;
  margin-bottom: 1.5rem;
}
.hero-title em { font-style: normal; color: var(--gold-dark); }

.hero-subtitle {
  animation: fadeSlideIn .7s .2s var(--ease) both;
  color: var(--ink-80); font-size: 1.2rem; margin-bottom: 2.5rem;
}

.hero-actions {
  display: flex; flex-wrap: wrap; gap: 1rem; align-items: center;
  animation: fadeSlideIn .7s .3s var(--ease) both;
}

.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  animation: fadeSlideIn .7s .4s var(--ease) both;
}
.stat-item { text-align: left; }
.stat-num {
  font-family: var(--font-head); font-size: 2rem; font-weight: 800;
  color: var(--ink); letter-spacing: -.04em; line-height: 1;
}
.stat-num span { color: var(--gold); }
.stat-label { font-size: .85rem; color: var(--ink-40); margin-top: .2rem; }

/* hero-image-wrap removed — using full-width video background instead */
.hero-image-wrap { display: none !important; }

/* ── Services ──────────────────────────────────── */
#services { background: var(--off-white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 2rem;
  transition: all .3s var(--ease);
  position: relative; overflow: hidden;
}
.service-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: var(--gold);
  transform: scaleX(0); transform-origin: left;
  transition: transform .35s var(--ease);
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.service-card:hover::before { transform: scaleX(1); }

.service-icon {
  width: 52px; height: 52px;
  background: var(--gold-pale); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; color: var(--gold-dark);
  margin-bottom: 1.25rem;
}
.service-card h3 { margin-bottom: .6rem; font-size: 1.15rem; }
.service-card p { font-size: .95rem; color: var(--ink-80); max-width: none; }

/* ── Plugins ───────────────────────────────────── */
#plugins { background: var(--white); }

.plugins-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 2rem;
}

.plugin-card {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  transition: all .35s var(--ease);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plugin-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(245,192,0,.4);
}

.plugin-card-img {
  height: 220px; overflow: hidden; position: relative;
}
.plugin-card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.plugin-card:hover .plugin-card-img img { transform: scale(1.05); }
.plugin-card-img-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(13,14,18,.7) 100%);
}

.plugin-card-icon {
  position: absolute; bottom: -20px; left: 1.5rem;
  width: 56px; height: 56px;
  background: var(--white); border: 3px solid var(--white);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; z-index: 2;
}

.plugin-card-body { padding: 2.5rem 1.75rem 1.75rem; flex: 1; display: flex; flex-direction: column; }
.plugin-card-body h3 { margin-bottom: .5rem; }
.plugin-card-body p { font-size: .95rem; color: var(--ink-80); margin-bottom: 1.5rem; flex: 1; }

.plugin-meta {
  display: flex; gap: 1rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.plugin-tag {
  font-size: .75rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gold-dark);
  background: var(--gold-pale); padding: .3rem .7rem;
  border-radius: 100px;
}

.plugin-actions { display: flex; gap: .75rem; }

/* ── Apps ──────────────────────────────────────── */
#apps { background: var(--off-white); }

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.app-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: all .3s var(--ease);
  display: flex; flex-direction: column;
}
.app-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: rgba(245,192,0,.35); }

.app-icon {
  width: 64px; height: 64px; border-radius: 16px;
  background: var(--gold-pale); display: flex; align-items: center; justify-content: center;
  font-size: 2rem; margin-bottom: 1.25rem;
  box-shadow: 0 4px 16px var(--gold-glow);
}
.app-card h3 { margin-bottom: .4rem; font-size: 1.1rem; }
.app-card p  { font-size: .9rem; color: var(--ink-80); flex: 1; margin-bottom: 1.25rem; }

.app-store-buttons { display: flex; gap: .6rem; flex-wrap: wrap; }
.store-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .5rem 1rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: .78rem; font-weight: 700;
  text-decoration: none; transition: all .2s var(--ease);
  border: 1.5px solid var(--border);
  color: var(--ink); background: var(--white);
}
.store-btn:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.store-btn i { font-size: 1rem; }

/* ── Contact ───────────────────────────────────── */
#contacto {
  background: var(--ink); color: var(--white);
  position: relative; overflow: hidden;
}
#contacto::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(245,192,0,.12) 0%, transparent 70%);
  pointer-events: none;
}

#contacto .section-label { color: var(--gold); background: rgba(245,192,0,.1); border-color: rgba(245,192,0,.3); }
#contacto h2 { color: var(--white); }
#contacto p  { color: rgba(255,255,255,.7); }

.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5rem; align-items: start;
}

.contact-info { display: flex; flex-direction: column; gap: 1.5rem; }
.contact-item {
  display: flex; align-items: flex-start; gap: 1rem;
}
.contact-item-icon {
  width: 42px; height: 42px; flex-shrink: 0;
  background: rgba(245,192,0,.12); border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  color: var(--gold); font-size: 1.1rem;
}
.contact-item-text strong { display: block; color: var(--white); margin-bottom: .15rem; }
.contact-item-text span   { color: rgba(255,255,255,.6); font-size: .9rem; }

.social-links { display: flex; gap: .75rem; margin-top: 1rem; }
.social-link {
  width: 40px; height: 40px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.7); font-size: 1.1rem;
  transition: all .2s var(--ease);
}
.social-link:hover { background: var(--gold); color: var(--ink); border-color: var(--gold); transform: translateY(-2px); }

.contact-form { display: flex; flex-direction: column; gap: 1rem; }
.form-group { display: flex; flex-direction: column; gap: .4rem; }
.form-group label { font-size: .85rem; font-weight: 600; color: rgba(255,255,255,.6); font-family: var(--font-head); }
.form-group input,
.form-group textarea,
.form-group select {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-sm); padding: .8rem 1rem;
  color: var(--white); font-family: var(--font-body); font-size: .95rem;
  transition: border-color .2s;
  outline: none;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus { border-color: var(--gold); }
.form-group textarea { min-height: 130px; resize: vertical; }
.form-group select option { background: var(--ink); }

/* ── Footer ────────────────────────────────────── */
footer {
  background: #08090C; color: rgba(255,255,255,.5);
  padding: 2rem 0; font-size: .88rem;
  border-top: 1px solid rgba(255,255,255,.06);
}
.footer-inner {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem;
}
.footer-brand { font-family: var(--font-head); font-weight: 800; color: var(--white); }
.footer-brand span { color: var(--gold); }
.footer-links { display: flex; gap: 1.5rem; }
.footer-links a { transition: color .2s; }
.footer-links a:hover { color: var(--white); }

/* ── Purchase Modal ────────────────────────────── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(13,14,18,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center; padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
}
.modal-overlay.open { opacity: 1; pointer-events: all; }

.modal-box {
  background: var(--white); border-radius: var(--radius-lg);
  max-width: 540px; width: 100%;
  max-height: 90vh; overflow-y: auto;
  padding: 2.5rem;
  transform: translateY(20px) scale(.97);
  transition: transform .35s var(--ease);
  box-shadow: var(--shadow-lg);
}
.modal-overlay.open .modal-box { transform: none; }

.modal-header {
  display: flex; justify-content: space-between; align-items: flex-start;
  margin-bottom: 1.75rem;
}
.modal-title { font-size: 1.5rem; font-weight: 800; font-family: var(--font-head); }
.modal-close {
  background: var(--surface); border: none; cursor: pointer;
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--ink-80);
  transition: all .2s;
}
.modal-close:hover { background: var(--ink); color: var(--white); }

.modal-product-badge {
  display: flex; align-items: center; gap: .75rem;
  background: var(--gold-pale); border: 1px solid rgba(245,192,0,.3);
  border-radius: var(--radius-sm); padding: .75rem 1rem;
  margin-bottom: 1.5rem;
}
.modal-product-badge i { font-size: 1.4rem; color: var(--gold-dark); }
.modal-product-badge strong { font-family: var(--font-head); }
.modal-product-badge span { font-size: .85rem; color: var(--ink-80); display: block; }

/* Plan selector */
.plan-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; margin-bottom: 1.5rem; }
.plan-option {
  border: 2px solid var(--border); border-radius: var(--radius-md);
  padding: 1rem; cursor: pointer; transition: all .2s var(--ease);
  position: relative;
}
.plan-option:hover { border-color: var(--gold); background: var(--gold-pale); }
.plan-option.selected { border-color: var(--gold); background: var(--gold-pale); }
.plan-option.selected::before {
  content: '✓'; position: absolute; top: .6rem; right: .8rem;
  background: var(--gold); color: var(--ink);
  width: 20px; height: 20px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 700;
}
.plan-name { font-weight: 700; font-family: var(--font-head); font-size: .9rem; }
.plan-price { font-size: 1.2rem; font-weight: 800; font-family: var(--font-head); color: var(--gold-dark); margin: .2rem 0; }
.plan-desc { font-size: .78rem; color: var(--ink-80); }

/* Modal form */
.modal-form { display: flex; flex-direction: column; gap: .9rem; }
.modal-form label { font-size: .82rem; font-weight: 700; font-family: var(--font-head); color: var(--ink-80); display: block; margin-bottom: .3rem; }
.modal-form input, .modal-form select {
  width: 100%; padding: .75rem 1rem;
  border: 1.5px solid var(--border); border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: .95rem; color: var(--ink);
  background: var(--white); outline: none; transition: border-color .2s;
}
.modal-form input:focus, .modal-form select:focus { border-color: var(--gold); }

.domain-list { display: flex; flex-direction: column; gap: .5rem; }
.domain-row { display: flex; gap: .5rem; }
.domain-row input { flex: 1; }
.domain-row .btn { flex-shrink: 0; padding: .7rem .9rem; }

/* Payment step */
.payment-summary {
  background: var(--off-white); border-radius: var(--radius-md); padding: 1.25rem; margin: 1.25rem 0;
  border: 1px solid var(--border);
}
.payment-summary-row { display: flex; justify-content: space-between; font-size: .9rem; margin-bottom: .4rem; }
.payment-summary-row:last-child { font-weight: 800; font-family: var(--font-head); font-size: 1.05rem; border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .4rem; }

.pay-methods { display: flex; flex-direction: column; gap: .75rem; }
.pay-method-btn {
  display: flex; align-items: center; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: var(--radius-md);
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: all .2s var(--ease); font-family: var(--font-body);
  text-align: left; width: 100%;
}
.pay-method-btn:hover { border-color: var(--gold); background: var(--gold-pale); }
.pay-method-btn .pay-icon { font-size: 1.4rem; width: 32px; text-align: center; }
.pay-method-btn strong { display: block; font-family: var(--font-head); }
.pay-method-btn small  { color: var(--ink-80); font-size: .8rem; }

/* Payment detail box */
.payment-detail-box {
  background: var(--off-white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.25rem; margin-top: 1rem;
}
.payment-detail-box h4 { margin-bottom: .75rem; font-size: 1rem; }
.detail-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid var(--border); font-size: .9rem; }
.detail-row:last-child { border-bottom: none; }
.detail-row strong { font-family: var(--font-head); }
.copy-btn {
  background: var(--gold-pale); border: 1px solid rgba(245,192,0,.3); border-radius: 6px;
  padding: .2rem .5rem; font-size: .75rem; cursor: pointer;
  color: var(--gold-dark); font-family: var(--font-head); font-weight: 700;
  transition: all .2s;
}
.copy-btn:hover { background: var(--gold); color: var(--ink); }

/* Success state */
.modal-success {
  text-align: center; padding: 2rem 0;
}
.modal-success .success-icon {
  width: 80px; height: 80px;
  background: var(--gold-pale); border: 3px solid var(--gold);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem; margin: 0 auto 1.5rem;
  animation: successPop .5s var(--ease);
}
.modal-success h3 { margin-bottom: .75rem; }
.modal-success p  { color: var(--ink-80); max-width: 36ch; margin: 0 auto; }

/* Modal nav */
.modal-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1.75rem; }
.modal-steps { display: flex; gap: .4rem; }
.modal-step-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--border); transition: all .2s;
}
.modal-step-dot.active { background: var(--gold); width: 24px; border-radius: 4px; }

/* ── Plugin / Product subpage ──────────────────── */
.subpage-hero {
  padding: 10rem 0 5rem;
  background: var(--off-white);
  position: relative; overflow: hidden;
}
.subpage-hero::before {
  content: ''; position: absolute;
  top: -40%; right: -10%; width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(245,192,0,.1) 0%, transparent 60%);
  pointer-events: none;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.feature-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 1.75rem;
  transition: all .3s var(--ease);
}
.feature-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); border-color: rgba(245,192,0,.3); }
.feature-card-icon { font-size: 1.75rem; margin-bottom: 1rem; }
.feature-card h4 { margin-bottom: .4rem; }
.feature-card p { font-size: .9rem; color: var(--ink-80); max-width: none; }

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}
.pricing-card {
  background: var(--white); border: 2px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  transition: all .3s var(--ease); text-align: center;
  position: relative;
  /* Enable container queries for text scaling */
  container-type: inline-size;
  container-name: pricing-card;
}
.pricing-card:hover { border-color: var(--gold); box-shadow: var(--shadow-md); transform: translateY(-4px); }
.pricing-card.featured { border-color: var(--gold); background: var(--gold-pale); }
.pricing-card.featured::before {
  content: 'Más popular';
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink);
  font-family: var(--font-head); font-size: .75rem; font-weight: 700;
  padding: .3rem .9rem; border-radius: 100px;
}
.pricing-period { font-size: .85rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-80); margin-bottom: .5rem; }
.pricing-price {
  font-family: var(--font-head);
  font-size: clamp(1.4rem, 14cqi, 2.5rem); /* cqi = container inline query unit */
  font-weight: 800; color: var(--ink); line-height: 1;
  overflow: hidden; white-space: nowrap;
}
/* Fallback for browsers without container query support */
@supports not (font-size: 1cqi) {
  .pricing-price { font-size: clamp(1.4rem, 5vw, 2.5rem); }
}
.pricing-price sup { font-size: .45em; vertical-align: super; }
.pricing-price small { font-size: .4em; font-weight: 400; color: var(--ink-80); }
.pricing-sites { font-size: .85rem; color: var(--ink-80); margin: .5rem 0 1.5rem; }

/* ── Animations ────────────────────────────────── */
@keyframes fadeSlideIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeSlideRight {
  from { opacity: 0; transform: translate(40px, -50%); }
  to   { opacity: 1; transform: translate(0, -50%); }
}
@keyframes successPop {
  0%   { transform: scale(0.5); opacity: 0; }
  80%  { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.reveal {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s var(--ease), transform .6s var(--ease);
}
.reveal.visible { opacity: 1; transform: none; }

/* ── Parallax strip ────────────────────────────── */
.parallax-strip {
  padding: 5rem 0; background: var(--gold); overflow: hidden; position: relative;
}
.parallax-text {
  display: flex; gap: 3rem; white-space: nowrap;
  font-family: var(--font-head); font-size: 1.1rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .1em; color: var(--ink);
  animation: marquee 30s linear infinite;
}
.parallax-text span { opacity: .4; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

/* ── Toast ─────────────────────────────────────── */
.toast {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  background: var(--ink); color: var(--white);
  padding: 1rem 1.5rem; border-radius: var(--radius-md);
  font-family: var(--font-head); font-size: .9rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  transform: translateY(100px); opacity: 0;
  transition: all .35s var(--ease);
  display: flex; gap: .75rem; align-items: center; max-width: 380px;
}
.toast.show { transform: none; opacity: 1; }
.toast.success { border-left: 4px solid var(--gold); }
.toast.error   { border-left: 4px solid #ef4444; }

/* ── Loading spinner ───────────────────────────── */
.spinner {
  width: 20px; height: 20px;
  border: 2.5px solid rgba(255,255,255,.3);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Responsive ────────────────────────────────── */
@media (max-width: 1024px) {
  .hero-image-wrap { display: none; }
  .contact-grid { grid-template-columns: 1fr; gap: 3rem; }
}

@media (max-width: 768px) {
  section { padding: 5rem 0; }
  /* nav-links already hidden at 860px; hide remaining nav-cta items */
  .nav-cta .btn { display: none; }
  .hamburger { display: flex; }
  .hero-stats { gap: 1.5rem; }
  .hero-content { max-width: 100%; }
  .plan-grid { grid-template-columns: 1fr; }
  .modal-box { padding: 1.75rem; }
  .subpage-hero { padding: 8rem 0 4rem; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* Mobile menu — full-screen overlay */
.mobile-menu {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(255,255,255,.97);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 2rem;
  /* Push content down from the close button */
  padding: 5rem 2rem 3rem;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  overflow-y: auto;
}
.mobile-menu.open { opacity: 1; pointer-events: all; }
.mobile-menu a {
  font-family: var(--font-head); font-size: clamp(1.4rem, 7vw, 2rem);
  font-weight: 800; color: var(--ink); letter-spacing: -.03em;
}
.mobile-menu a:hover { color: var(--gold-dark); }
/* Mobile currency + lang switchers */
.mobile-menu-actions {
  display: flex; align-items: center; gap: 1rem;
  flex-wrap: wrap; justify-content: center;
  margin-top: .5rem;
}

/* Close button — always above the links, never overlapping */
.mobile-menu-close {
  position: fixed; top: 1.2rem; right: 1.2rem;
  z-index: 10000;
  background: var(--off-white); border: 1.5px solid var(--border);
  cursor: pointer;
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; line-height: 1;
  opacity: 0; pointer-events: none;
  transition: opacity .3s var(--ease);
  box-shadow: var(--shadow-sm);
}
/* Show close button only when menu is open */
.mobile-menu.open ~ * .mobile-menu-close,
body:has(.mobile-menu.open) .mobile-menu-close,
.mobile-menu-close.visible { opacity: 1; pointer-events: all; }
/* Fallback: close button inside the menu itself */
.mobile-menu .mobile-menu-close {
  position: fixed; opacity: 1; pointer-events: all;
}

/* ── PayPal button override ────────────────────── */
#paypal-button-container { margin-top: .75rem; }

/* ── Transfer account tabs ─────────────────────────────────────────────── */
.acct-tab {
  padding: .4rem 1rem; border-radius: var(--radius-sm);
  font-family: var(--font-head); font-size: .8rem; font-weight: 700;
  border: 1.5px solid var(--border); background: var(--white);
  cursor: pointer; transition: all .2s var(--ease);
}
.acct-tab.active,
.acct-tab:hover { background: var(--gold); border-color: var(--gold); color: var(--ink); }
