/* Dark theme — tuned to logo.png (navy G → teal O, slate wordmark) */

:root {
  --navy-950: #040b14;
  --navy-900: #0a192f;
  --navy-800: #0f2438;
  --navy-700: #1a3352;
  --bg: var(--navy-900);
  --bg-elevated: var(--navy-800);
  --surface: #132a40;
  --border: rgba(148, 196, 216, 0.14);
  --text: #f0f7fb;
  --muted: #93b8c9;
  --teal: #26d0ce;
  --teal-deep: #14919b;
  --cyan: #48cae4;
  --blue: #3b82f6;
  --accent-strong: #1abc9c;
  --glow: rgba(38, 208, 206, 0.3);
  --glow-blue: rgba(72, 202, 228, 0.14);
  --radius: 16px;
  --radius-sm: 12px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --max: 1120px;
  --logo-h: clamp(72px, 22vw, 140px);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background:
    radial-gradient(ellipse 900px 480px at 88% -8%, rgba(72, 202, 228, 0.12), transparent 55%),
    radial-gradient(ellipse 700px 420px at 4% 12%, rgba(38, 208, 206, 0.16), transparent 50%),
    radial-gradient(ellipse 600px 360px at 50% 100%, rgba(26, 188, 156, 0.08), transparent 60%),
    linear-gradient(180deg, var(--navy-950) 0%, var(--bg) 38%, var(--navy-900) 100%);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--cyan);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0.5rem;
  background: linear-gradient(135deg, var(--teal-deep), var(--cyan));
  color: var(--navy-950);
  padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
  font-weight: 600;
}

.skip-link:focus {
  left: 0.5rem;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(10, 25, 47, 0.94), rgba(10, 25, 47, 0.82));
  border-bottom: 1px solid rgba(38, 208, 206, 0.18);
}

.header-inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  min-height: calc(var(--logo-h) + 1.1rem);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: clamp(0.55rem, 1.6vw, 0.95rem);
  flex: 0 0 auto;
  max-width: 100%;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
}

/* Logo: fixed height, bounded width so text never overlaps the graphic */
.brand-figure {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  height: var(--logo-h);
  max-height: var(--logo-h);
}

.brand-logo {
  display: block;
  height: var(--logo-h);
  width: auto;
  max-width: min(240px, 42vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 2px 20px rgba(0, 0, 0, 0.4));
  transition: filter 0.2s ease, transform 0.2s ease;
}

.brand-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.15rem;
  line-height: 1.12;
  min-width: 0;
  flex: 1 1 auto;
  max-width: min(28rem, 100%);
  padding-left: 0.75rem;
  border-left: 1px solid rgba(38, 208, 206, 0.28);
}

.brand-text__title {
  font-size: clamp(1.15rem, 3.2vw, 1.72rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  color: #f4f9fc;
  text-shadow: 0 1px 0 rgba(0, 0, 0, 0.35);
}

/* Static copy — not wired to i18n (always EN + ES) */
.brand-text__tag {
  font-size: clamp(0.56rem, 1.25vw, 0.68rem);
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(186, 218, 230, 0.95);
}

.brand:hover .brand-logo {
  filter: drop-shadow(0 2px 26px rgba(38, 208, 206, 0.18)) drop-shadow(0 2px 20px rgba(0, 0, 0, 0.45));
  transform: scale(1.008);
}

@media (max-width: 520px) {
  .brand {
    flex: 1 1 100%;
  }

  .brand-text {
    padding-left: 0.55rem;
    min-width: 0;
  }

  .brand-logo {
    max-width: min(200px, 48vw);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav-links {
  display: none;
  gap: 1.25rem;
  margin-right: 0.5rem;
}

.nav-links a {
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 600;
}

.nav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

@media (min-width: 768px) {
  .nav-links {
    display: flex;
  }
}

@media (max-width: 380px) {
  :root {
    --logo-h: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .brand-logo,
  .brand:hover .brand-logo {
    transition: none;
    transform: none;
  }
}

.lang-switch {
  display: inline-flex;
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
  background: var(--surface);
}

.lang-switch button {
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.lang-switch button[aria-pressed="true"] {
  background: linear-gradient(135deg, var(--teal-deep), var(--accent-strong) 42%, var(--cyan));
  color: #041018;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font: inherit;
  font-weight: 600;
  padding: 0.65rem 1.15rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--accent-strong) 38%, var(--cyan) 100%);
  color: var(--navy-950);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.08),
    0 10px 32px var(--glow),
    0 16px 48px var(--glow-blue);
}

.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12),
    0 14px 40px var(--glow),
    0 22px 56px var(--glow-blue);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-ghost:hover {
  border-color: rgba(38, 208, 206, 0.5);
  text-decoration: none;
}

main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero {
  padding: 3.5rem 0 2.5rem;
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .hero {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: center;
    padding: 4.5rem 0 3rem;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--teal);
  background: rgba(26, 188, 156, 0.12);
  border: 1px solid rgba(38, 208, 206, 0.4);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  width: fit-content;
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.85rem);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 1rem 0 0.75rem;
}

.hero p.lead {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 36ch;
  margin: 0 0 1.5rem;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero-panel {
  background: linear-gradient(155deg, var(--surface) 0%, var(--navy-800) 55%, #0c1a2e 100%);
  border: 1px solid rgba(38, 208, 206, 0.2);
  border-radius: var(--radius);
  padding: 1.25rem;
  position: relative;
  overflow: hidden;
  min-height: 220px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.hero-panel::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle at 72% 28%, rgba(72, 202, 228, 0.18), transparent 52%),
    radial-gradient(circle at 22% 72%, rgba(38, 208, 206, 0.2), transparent 48%);
  opacity: 0.65;
  pointer-events: none;
}

.hero-panel-inner {
  position: relative;
  display: grid;
  gap: 0.75rem;
}

.flow-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--muted);
}

.flow-arrow {
  color: var(--teal);
  font-weight: 700;
}

.pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.55rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: var(--text);
}

.hero-panel-copy {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.section {
  padding: 3rem 0;
}

.section-head {
  max-width: 52ch;
  margin-bottom: 1.75rem;
}

.section-head--tight {
  margin-bottom: 1rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  letter-spacing: -0.02em;
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--muted);
}

.grid-3 {
  display: grid;
  gap: 1rem;
}

@media (min-width: 700px) {
  .grid-3 {
    grid-template-columns: repeat(3, 1fr);
  }
}

.card {
  background: linear-gradient(165deg, rgba(15, 34, 56, 0.95), rgba(10, 25, 41, 0.98));
  border: 1px solid rgba(148, 196, 216, 0.1);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.tools-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(2, 1fr);
}

@media (min-width: 600px) {
  .tools-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 900px) {
  .tools-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.tool {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1rem 1rem 1.1rem;
  border-radius: var(--radius-sm);
  background: rgba(10, 25, 41, 0.85);
  border: 1px solid rgba(38, 208, 206, 0.14);
}

.tool-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tool-logo-wrap {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 12px;
}

.tool-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.tool strong {
  font-size: 0.95rem;
}

.tool-desc {
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.split {
  display: grid;
  gap: 2rem;
}

@media (min-width: 800px) {
  .split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

form.lead-form {
  display: grid;
  gap: 1rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

input,
textarea {
  font: inherit;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text);
}

input:focus,
textarea:focus {
  outline: 2px solid var(--accent-strong);
  outline-offset: 1px;
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.captcha-question {
  margin: 0.2rem 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal);
  font-family: monospace;
}

.field-error {
  font-size: 0.8rem;
  color: #fb7185;
  display: none;
}

.field-error.is-visible {
  display: block;
}

.form-status {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.form-status--ok {
  color: #22c55e;
}

.form-status--error {
  color: #ef4444;
}

.testimonial {
  position: relative;
  padding-left: 1.1rem;
  margin: 0;
  color: var(--muted);
  font-style: italic;
}

.testimonial::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--navy-700), var(--teal-deep) 30%, var(--cyan));
}

.testimonial footer {
  margin-top: 0.75rem;
  font-style: normal;
  font-weight: 600;
  color: var(--text);
  font-size: 0.9rem;
}

.faq details {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  background: var(--surface);
  margin-bottom: 0.5rem;
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  margin-top: 2rem;
  padding: 2rem 1.25rem 3rem;
  color: var(--muted);
  font-size: 0.9rem;
  text-align: center;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  font-size: 0.8rem;
}

.trust-row span {
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-elevated);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
