:root {
  --bg-main: #f8fafc;
  --bg-soft: #eef2ff;
  --bg-elevated: rgba(255, 255, 255, 0.86);
  --bg-strong: #ffffff;
  --text: #0f172a;
  --muted: #475569;
  --muted-2: #64748b;
  --line: rgba(15, 23, 42, 0.10);
  --primary: #2563eb;
  --secondary: #06b6d4;
  --accent: #7c3aed;
  --success: #10b981;
  --danger: #ef4444;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.12);
  --radius: 26px;
  --header-bg: rgba(255, 255, 255, 0.78);
  --field-bg: rgba(255, 255, 255, 0.88);
}

html[data-theme="dark"] {
  --bg-main: #020617;
  --bg-soft: #0f172a;
  --bg-elevated: rgba(15, 23, 42, 0.82);
  --bg-strong: #0f172a;
  --text: #f8fafc;
  --muted: #cbd5e1;
  --muted-2: #94a3b8;
  --line: rgba(148, 163, 184, 0.22);
  --primary: #38bdf8;
  --secondary: #22d3ee;
  --accent: #a78bfa;
  --success: #34d399;
  --danger: #fb7185;
  --shadow: 0 26px 90px rgba(0, 0, 0, 0.45);
  --header-bg: rgba(2, 6, 23, 0.78);
  --field-bg: rgba(8, 16, 29, 0.78);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.18), transparent 26%),
    radial-gradient(circle at 84% 12%, rgba(124, 58, 237, 0.16), transparent 24%),
    radial-gradient(circle at 50% 100%, rgba(6, 182, 212, 0.10), transparent 24%),
    var(--bg-main);
  color: var(--text);
  transition: background 0.35s ease, color 0.35s ease;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1180px, calc(100% - 40px)); margin: auto; position: relative; z-index: 1; }
.bg-grid {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,.85), rgba(0,0,0,.16));
  pointer-events: none;
  opacity: 0.55;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 16px 0; }
.brand { display: flex; align-items: center; gap: 14px; min-width: 235px; }
.brand-mark {
  width: 50px; height: 50px; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  font-weight: 900; color: #ffffff;
  box-shadow: 0 16px 34px rgba(37, 99, 235, 0.28);
}
.brand strong { display: block; color: var(--text); font-weight: 900; letter-spacing: -0.02em; }
.brand small { display: block; color: var(--muted-2); font-size: .78rem; margin-top: 2px; }
.nav { display: flex; gap: 24px; color: var(--muted); font-weight: 700; }
.nav a { transition: color .25s ease; }
.nav a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-width: 250px; }

.theme-toggle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: center;
  padding: 6px;
  width: 240px;
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.03)),
    var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: 0 18px 42px rgba(15, 23, 42, .14);
  overflow: hidden;
  isolation: isolate;
}
.theme-toggle::before {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  width: calc((100% - 12px) / 2);
  height: calc(100% - 12px);
  border-radius: 999px;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent));
  box-shadow: 0 12px 28px rgba(37, 99, 235, .26);
  transition: transform .32s ease, box-shadow .32s ease;
  z-index: 0;
}
.theme-toggle[data-active-theme="dark"]::before {
  transform: translateX(calc((100% - 12px) / 2));
}
.theme-option {
  position: relative;
  z-index: 1;
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-width: 0;
  border: 0;
  cursor: pointer;
  padding: 11px 14px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  font-family: inherit;
  font-size: .84rem;
  font-weight: 900;
  letter-spacing: .01em;
  transition: color .25s ease, transform .25s ease, opacity .25s ease;
}
.theme-option:hover { color: var(--text); }
.theme-option.active {
  color: #ffffff;
}
.theme-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  font-size: .95rem;
  flex: 0 0 auto;
}
.theme-text {
  white-space: nowrap;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px; font-weight: 900; letter-spacing: 0.15px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, border-color .25s ease;
  border: 1px solid transparent;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)); color: #fff; box-shadow: 0 18px 42px rgba(37, 99, 235, 0.30); }
.btn-primary:hover { box-shadow: 0 24px 60px rgba(37, 99, 235, 0.38); }
.btn-secondary { background: var(--bg-elevated); border-color: var(--line); color: var(--text); }
.btn-sm { padding: 11px 16px; font-size: .9rem; }

.hero { padding: 90px 0 42px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 42px; }
.pill, .eyebrow {
  display: inline-block; padding: 10px 14px; border-radius: 999px;
  background: var(--bg-elevated); border: 1px solid var(--line); color: var(--muted);
  font-size: .86rem; font-weight: 800;
}
.hero h1 { font-size: clamp(2.6rem, 5vw, 5rem); line-height: 1.02; margin: 18px 0; letter-spacing: -0.055em; }
.hero h1 span { background: linear-gradient(135deg, var(--text), var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { font-size: 1.08rem; line-height: 1.78; color: var(--muted); max-width: 780px; }
.hero-actions { display: flex; gap: 16px; flex-wrap: wrap; margin: 30px 0; }
.hero-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.hero-meta div { padding: 18px; border: 1px solid var(--line); border-radius: 22px; background: var(--bg-elevated); box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08); }
.hero-meta strong { display: block; font-size: 1.06rem; margin-bottom: 7px; }
.hero-meta span { color: var(--muted); font-size: .92rem; line-height: 1.45; }
.hero-visual { min-height: 560px; position: relative; }
.glass { background: linear-gradient(180deg, var(--bg-elevated), rgba(255, 255, 255, .04)); border: 1px solid var(--line); backdrop-filter: blur(18px); box-shadow: var(--shadow); border-radius: 30px; }
.card-float { position: absolute; padding: 24px; animation: float 8s ease-in-out infinite; }
.card-a { inset: 30px 120px auto 0; }
.card-b { inset: 210px 10px auto 110px; animation-delay: 1.3s; }
.card-c { inset: auto 100px 10px 40px; animation-delay: 2.1s; }
.orb { position: absolute; border-radius: 50%; filter: blur(24px); opacity: .72; }
.orb-1 { width: 180px; height: 180px; background: rgba(56, 189, 248, .25); right: 0; top: 40px; }
.orb-2 { width: 220px; height: 220px; background: rgba(124, 58, 237, .25); left: 40px; bottom: 0; }

.logos { display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px; padding: 20px 0 18px; }
.logos div { border: 1px solid var(--line); padding: 14px; border-radius: 18px; text-align: center; color: var(--muted); background: var(--bg-elevated); font-weight: 800; box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08); }

.section { padding: 92px 0; }
.section-head { max-width: 900px; margin-bottom: 34px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .contact-copy h2, .cta-band h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.08; margin: 14px 0; letter-spacing: -0.035em; }
.section-head p, .contact-copy p { color: var(--muted); font-size: 1.02rem; line-height: 1.78; }
.cards-grid, .solution-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.service-card, .solution, .contact-card {
  padding: 30px; border-radius: var(--radius); background: var(--bg-elevated); border: 1px solid var(--line); box-shadow: var(--shadow);
}
.service-card, .solution { transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease; }
.service-card:hover, .solution:hover { transform: translateY(-7px); border-color: rgba(56, 189, 248, .45); box-shadow: 0 28px 76px rgba(37, 99, 235, .18); }
.card-icon { width: 54px; height: 54px; border-radius: 18px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 16px; font-size: 1.7rem; background: linear-gradient(135deg, rgba(37, 99, 235, .12), rgba(6, 182, 212, .12)); border: 1px solid var(--line); }
.service-card h3, .solution h3 { margin: 0 0 12px; font-size: 1.2rem; color: var(--text); }
.service-card p, .solution p { margin: 0; color: var(--muted); line-height: 1.72; }

.tech-section {
  position: relative; overflow: hidden;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, .16), transparent 32%),
    radial-gradient(circle at bottom right, rgba(6, 182, 212, .14), transparent 34%),
    var(--bg-soft);
}
.tech-section::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 52px 52px; opacity: .26; pointer-events: none;
}
.tech-spotlight {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, .88fr);
  gap: 26px;
  align-items: stretch;
  margin-bottom: 26px;
}
.tech-spotlight-copy,
.tech-spotlight-points {
  position: relative;
  padding: 34px;
  border-radius: 30px;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--bg-elevated);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.tech-spotlight-copy h2 {
  margin: 16px 0 14px;
  font-size: clamp(2rem, 3.5vw, 3.2rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
}
.tech-spotlight-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 1.04rem;
  line-height: 1.8;
  max-width: 760px;
}
.tech-spotlight-copy::after {
  content: "";
  position: absolute;
  right: -32px;
  bottom: -36px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56,189,248,.26), rgba(56,189,248,0));
  pointer-events: none;
}
.tech-spotlight-points {
  display: grid;
  gap: 16px;
}
.tech-spotlight-points article {
  position: relative;
  padding: 18px 18px 18px 20px;
  border-radius: 22px;
  background: rgba(255,255,255,.04);
  border: 1px solid var(--line);
}
.tech-spotlight-points article::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--primary), var(--secondary));
}
.tech-spotlight-points strong {
  display: block;
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 6px;
}
.tech-spotlight-points span {
  display: block;
  color: var(--muted);
  line-height: 1.55;
  font-size: .94rem;
}
.tech-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 28px 0 36px; }
.tech-tabs span { padding: 10px 16px; border-radius: 999px; color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)), var(--bg-elevated); border: 1px solid var(--line); font-size: .84rem; font-weight: 900; box-shadow: 0 12px 28px rgba(15, 23, 42, .08); }
.tech-stack-vanguardia { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; padding-top: 10px; }
.tech-card {
  position: relative; min-height: 210px; padding: 30px 24px; border-radius: 28px; overflow: hidden; text-align: left;
  background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)), var(--bg-elevated); border: 1px solid var(--line); box-shadow: var(--shadow);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease, background .35s ease;
}
.tech-card::before { content: ""; position: absolute; inset: -1px; background: linear-gradient(135deg, rgba(37, 99, 235, .20), rgba(6, 182, 212, .15), rgba(167, 139, 250, .18)); opacity: 0; transition: opacity .35s ease; }
.tech-card::after { content: ""; position: absolute; width: 130px; height: 130px; right: -55px; top: -55px; border-radius: 999px; background: linear-gradient(135deg, var(--primary), var(--accent)); opacity: .14; filter: blur(2px); }
.tech-card:hover { transform: translateY(-9px) scale(1.015); border-color: rgba(56, 189, 248, .52); box-shadow: 0 32px 90px rgba(37, 99, 235, .22); }
.tech-card:hover::before { opacity: 1; }
.tech-card > * { position: relative; z-index: 2; }
.tech-icon { display: inline-flex; align-items: center; justify-content: center; width: 62px; height: 62px; margin-bottom: 18px; border-radius: 20px; font-size: 2rem; background: linear-gradient(135deg, rgba(37, 99, 235, .14), rgba(255, 255, 255, .08)); border: 1px solid var(--line); }
.tech-card strong { display: block; margin-bottom: 9px; font-size: 1.04rem; font-weight: 900; letter-spacing: -0.2px; color: var(--text); }
.tech-card small { display: block; color: var(--muted); font-size: .88rem; line-height: 1.55; }

.cta-band { padding-top: 46px; }
.cta-grid { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 36px; border-radius: 30px; background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(124, 58, 237, .16), rgba(6, 182, 212, .14)); border: 1px solid var(--line); box-shadow: var(--shadow); }
.cta-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; align-items: start; }
.contact-points { display: flex; flex-direction: column; gap: 14px; margin-top: 28px; }
.contact-points a { padding: 16px 18px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 18px; color: var(--muted); }
.contact-points strong { color: var(--text); }
.contact-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 8px; }
.field.full { grid-column: 1 / -1; }
label { font-size: .95rem; color: var(--text); font-weight: 800; }
input, select, textarea { width: 100%; padding: 14px 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--field-bg); color: var(--text); outline: none; font-family: inherit; }
input:focus, select:focus, textarea:focus { border-color: rgba(56, 189, 248, .70); box-shadow: 0 0 0 4px rgba(56, 189, 248, .13); }
.full-btn { width: 100%; grid-column: 1 / -1; }
.hp-field {
  position: absolute !important;
  left: -10000px !important;
  top: auto !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
select {
  cursor: pointer;
}
select option {
  color: #0f172a;
}
html[data-theme="dark"] select option {
  color: #0f172a;
}

.alert { padding: 14px 16px; border-radius: 16px; margin-bottom: 14px; font-weight: 800; }
.alert.success { background: rgba(16, 185, 129, .14); border: 1px solid rgba(16, 185, 129, .32); }
.alert.error { background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .28); }
.site-footer { padding: 32px 0 48px; border-top: 1px solid var(--line); background: rgba(255, 255, 255, .02); }
.footer-wrap { display: flex; justify-content: space-between; gap: 20px; align-items: flex-start; }
.footer-wrap p, .footer-wrap a { color: var(--muted); display: block; margin-top: 8px; }
.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 60; padding: 16px 20px; border-radius: 999px; background: linear-gradient(135deg, #22c55e, #18d57a); color: #052311; font-weight: 900; box-shadow: 0 18px 40px rgba(34, 197, 94, .35); }
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }
.delay-1 { transition-delay: .12s; }
.delay-2 { transition-delay: .24s; }
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-18px); } }

@media (max-width: 1080px) {
  .nav-wrap { flex-wrap: wrap; }
  .nav { order: 3; width: 100%; justify-content: center; }
  .nav-actions { margin-left: auto; }
  .hero-grid, .contact-grid, .cards-grid, .solution-grid, .tech-spotlight { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(4, 1fr); }
  .hero-visual { min-height: 460px; }
  .cta-grid, .footer-wrap { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 720px) {
  .container { width: min(100% - 28px, 1180px); }
  .nav { display: none; }
  .nav-actions { width: 100%; justify-content: center; }
  .theme-toggle { width: min(100%, 320px); }
  .theme-text { font-size: .78rem; }
  .hero { padding-top: 54px; }
  .hero-meta, .contact-form { grid-template-columns: 1fr; }
  .logos { grid-template-columns: repeat(2, 1fr); }
  .card-a { inset: 20px 40px auto 0; }
  .card-b { inset: 180px 0 auto 70px; }
  .card-c { inset: auto 30px 0 20px; }
  .tech-stack-vanguardia { grid-template-columns: 1fr; }
  .tech-card { min-height: auto; }
  .tech-spotlight-copy, .tech-spotlight-points { padding: 24px; }
  .wa-float span { display: none; }
  .wa-float { width: 58px; height: 58px; padding: 0; display: grid; place-items: center; }
}


/* =========================================================
   HEADER FINAL CON ISOTIPO ST - PREMIUM RESPONSIVE
========================================================= */

.brand-st {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-width: 255px;
  max-width: 330px;
  padding: 7px 10px 7px 7px;
  border-radius: 24px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.92), rgba(241, 245, 249, 0.80));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.10),
    0 7px 16px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition:
    transform 0.28s ease,
    box-shadow 0.28s ease,
    border-color 0.28s ease,
    background 0.28s ease;
}

.brand-st:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.30);
  box-shadow:
    0 24px 58px rgba(37, 99, 235, 0.16),
    0 9px 22px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1);
}

.brand-st-badge {
  width: clamp(52px, 5vw, 66px);
  height: clamp(52px, 5vw, 66px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 6px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.95), rgba(226, 232, 240, 0.92)),
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.86));
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(15,23,42,0.05);
}

.brand-st-badge img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter:
    drop-shadow(0 2px 2px rgba(15, 23, 42, 0.14))
    drop-shadow(0 8px 14px rgba(37, 99, 235, 0.18));
}

.brand-st-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.08;
}

.brand-st-text strong {
  display: block;
  color: var(--text);
  font-size: clamp(1rem, 1.5vw, 1.16rem);
  font-weight: 950;
  letter-spacing: -0.035em;
  white-space: nowrap;
}

.brand-st-text small {
  display: block;
  margin-top: 5px;
  color: var(--muted-2);
  font-size: clamp(0.66rem, 1vw, 0.75rem);
  font-weight: 850;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

html[data-theme="dark"] .brand-st {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.86), rgba(2, 6, 23, 0.76));
  border-color: rgba(56, 189, 248, 0.20);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

html[data-theme="dark"] .brand-st-badge {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.92));
  border-color: rgba(56, 189, 248, 0.24);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.95);
}

.nav-wrap {
  min-height: 82px;
}

.nav {
  flex: 1;
  justify-content: center;
}

.nav-actions {
  flex-shrink: 0;
}

@media (max-width: 1080px) {
  .brand-st {
    min-width: 235px;
    max-width: 300px;
  }

  .brand-st-badge {
    width: 58px;
    height: 58px;
  }
}

@media (max-width: 720px) {
  .brand-st {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    justify-content: flex-start;
  }

  .brand-st-badge {
    width: 54px;
    height: 54px;
  }

  .brand-st-text strong {
    font-size: 1rem;
  }

  .brand-st-text small {
    font-size: 0.66rem;
  }

  .nav-wrap {
    min-height: auto;
  }
}

@media (max-width: 420px) {
  .brand-st {
    gap: 10px;
    padding-right: 9px;
  }

  .brand-st-badge {
    width: 48px;
    height: 48px;
    border-radius: 17px;
  }

  .brand-st-text small {
    white-space: normal;
    line-height: 1.25;
  }
}


/* =========================================================
   FORMULARIO AJAX PROFESIONAL + TELÉFONO INTERNACIONAL
========================================================= */

.form-status {
  display: none;
  grid-column: 1 / -1;
  padding: 14px 16px;
  border-radius: 18px;
  font-weight: 850;
  line-height: 1.5;
  border: 1px solid transparent;
}

.form-status.show {
  display: block;
}

.form-status.success {
  color: #065f46;
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
}

.form-status.error {
  color: #991b1b;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.32);
}

html[data-theme="dark"] .form-status.success {
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.16);
}

html[data-theme="dark"] .form-status.error {
  color: #fecaca;
  background: rgba(239, 68, 68, 0.16);
}

.phone-group {
  display: grid;
  grid-template-columns: minmax(128px, 0.58fr) minmax(0, 1fr);
  gap: 10px;
}

.phone-group select {
  font-weight: 850;
}

.field-hint {
  color: var(--muted-2);
  font-size: 0.78rem;
  line-height: 1.4;
}

.field-error {
  display: none;
  margin-top: 2px;
  color: var(--danger);
  font-size: 0.80rem;
  font-weight: 850;
  line-height: 1.35;
}

.field.has-error input,
.field.has-error select,
.field.has-error textarea {
  border-color: rgba(239, 68, 68, 0.75);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.12);
}

.field.has-error .field-error {
  display: block;
}

.contact-form.is-sending {
  opacity: 0.82;
  pointer-events: none;
}

.contact-form .btn[disabled] {
  cursor: wait;
  opacity: 0.82;
}

@media (max-width: 560px) {
  .phone-group {
    grid-template-columns: 1fr;
  }
}


/* =========================================================
   CLOUDFLARE TURNSTILE - VERIFICACIÓN HUMANA
========================================================= */

.human-check {
  padding: 16px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.human-check label {
  margin-bottom: 10px;
}

.cf-turnstile {
  min-height: 65px;
  display: flex;
  align-items: center;
}

.human-check.has-error {
  border-color: rgba(239, 68, 68, 0.65);
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.10);
}

html[data-theme="dark"] .human-check {
  background: rgba(15, 23, 42, 0.38);
}


/* =========================================================
   FIX FINAL HEADER + LOGO ST + MODO CLARO/OSCURO
   Este bloque sobrescribe estilos previos del encabezado.
========================================================= */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--header-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.nav-wrap {
  min-height: 82px !important;
  display: grid !important;
  grid-template-columns: minmax(260px, 340px) 1fr auto;
  align-items: center !important;
  gap: 22px !important;
  padding: 14px 0 !important;
}

.brand-st {
  display: inline-flex !important;
  align-items: center !important;
  gap: 13px !important;
  width: fit-content !important;
  min-width: 255px !important;
  max-width: 340px !important;
  padding: 7px 12px 7px 7px !important;
  border-radius: 24px !important;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.94), rgba(241, 245, 249, 0.82)) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow:
    0 18px 42px rgba(15, 23, 42, 0.10),
    0 7px 16px rgba(15, 23, 42, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    inset 0 -1px 0 rgba(15, 23, 42, 0.04) !important;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  text-decoration: none !important;
  flex-shrink: 0 !important;
}

.brand-st:hover {
  transform: translateY(-2px);
  border-color: rgba(56, 189, 248, 0.30) !important;
  box-shadow:
    0 24px 58px rgba(37, 99, 235, 0.16),
    0 9px 22px rgba(15, 23, 42, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

.brand-st-badge {
  width: clamp(50px, 4.8vw, 64px) !important;
  height: clamp(50px, 4.8vw, 64px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 auto !important;
  padding: 6px !important;
  border-radius: 20px !important;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.94)),
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(226, 232, 240, 0.88)) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow:
    0 12px 26px rgba(15, 23, 42, 0.12),
    inset 0 1px 0 rgba(255,255,255,0.95),
    inset 0 -1px 0 rgba(15,23,42,0.05) !important;
  overflow: hidden !important;
}

.brand-st-badge img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
  filter:
    drop-shadow(0 2px 2px rgba(15, 23, 42, 0.14))
    drop-shadow(0 8px 14px rgba(37, 99, 235, 0.18)) !important;
}

.brand-st-text {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  line-height: 1.08 !important;
}

.brand-st-text strong {
  display: block !important;
  color: var(--text) !important;
  font-size: clamp(1rem, 1.45vw, 1.16rem) !important;
  font-weight: 950 !important;
  letter-spacing: -0.035em !important;
  white-space: nowrap !important;
}

.brand-st-text small {
  display: block !important;
  margin-top: 5px !important;
  color: var(--muted-2) !important;
  font-size: clamp(0.66rem, 0.95vw, 0.75rem) !important;
  font-weight: 850 !important;
  letter-spacing: 0.035em !important;
  white-space: nowrap !important;
}

html[data-theme="dark"] .brand-st {
  background:
    linear-gradient(145deg, rgba(15, 23, 42, 0.90), rgba(2, 6, 23, 0.78)) !important;
  border-color: rgba(56, 189, 248, 0.20) !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.38),
    0 0 34px rgba(56, 189, 248, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html[data-theme="dark"] .brand-st-badge {
  background:
    radial-gradient(circle at 30% 16%, rgba(255, 255, 255, 0.98), rgba(226, 232, 240, 0.92)) !important;
  border-color: rgba(56, 189, 248, 0.24) !important;
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.34),
    0 0 26px rgba(56, 189, 248, 0.16),
    inset 0 1px 0 rgba(255,255,255,0.95) !important;
}

.nav {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(16px, 2.2vw, 28px) !important;
  width: auto !important;
  color: var(--muted) !important;
  font-weight: 800 !important;
  white-space: nowrap !important;
}

.nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 40px !important;
  padding: 8px 2px !important;
  color: var(--muted) !important;
  transition: color .22s ease, transform .22s ease !important;
}

.nav a:hover {
  color: var(--text) !important;
  transform: translateY(-1px);
}

.nav-actions {
  display: flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  min-width: 0 !important;
  width: auto !important;
  flex-shrink: 0 !important;
}

.theme-toggle {
  position: relative !important;
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  align-items: center !important;
  width: 202px !important;
  height: 48px !important;
  padding: 5px !important;
  border-radius: 999px !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.18), rgba(255,255,255,.03)),
    var(--bg-elevated) !important;
  border: 1px solid var(--line) !important;
  box-shadow: 0 16px 34px rgba(15, 23, 42, .13) !important;
  overflow: hidden !important;
  isolation: isolate !important;
}

.theme-toggle::before {
  content: "" !important;
  position: absolute !important;
  top: 5px !important;
  left: 5px !important;
  width: calc((100% - 10px) / 2) !important;
  height: calc(100% - 10px) !important;
  border-radius: 999px !important;
  background: linear-gradient(135deg, var(--primary), var(--secondary), var(--accent)) !important;
  box-shadow: 0 10px 24px rgba(37, 99, 235, .26) !important;
  transition: transform .32s ease !important;
  z-index: 0 !important;
}

.theme-toggle[data-active-theme="dark"]::before {
  transform: translateX(100%) !important;
}

.theme-option {
  position: relative !important;
  z-index: 1 !important;
  appearance: none !important;
  border: 0 !important;
  cursor: pointer !important;
  height: 38px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: var(--muted) !important;
  font-family: inherit !important;
  font-size: .78rem !important;
  font-weight: 950 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  white-space: nowrap !important;
  box-shadow: none !important;
}

.theme-option:hover {
  color: var(--text) !important;
  background: transparent !important;
}

.theme-option.active {
  color: #ffffff !important;
  background: transparent !important;
  box-shadow: none !important;
}

.theme-icon {
  display: inline-flex !important;
  width: 18px !important;
  height: 18px !important;
  align-items: center !important;
  justify-content: center !important;
  font-size: .88rem !important;
}

.theme-text {
  display: inline-block !important;
}

@media (max-width: 1120px) {
  .nav-wrap {
    grid-template-columns: 1fr auto !important;
  }

  .nav {
    grid-column: 1 / -1 !important;
    order: 3 !important;
    padding-top: 6px !important;
  }

  .nav-actions {
    justify-content: flex-end !important;
  }
}

@media (max-width: 720px) {
  .nav-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    min-height: auto !important;
  }

  .brand-st {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }

  .brand-st-badge {
    width: 52px !important;
    height: 52px !important;
  }

  .brand-st-text strong {
    font-size: 1rem !important;
  }

  .brand-st-text small {
    font-size: .66rem !important;
  }

  .nav {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    padding-top: 0 !important;
  }

  .nav a {
    justify-content: center !important;
    min-height: 42px !important;
    padding: 8px 10px !important;
    border-radius: 14px !important;
    background: var(--bg-elevated) !important;
    border: 1px solid var(--line) !important;
  }

  .nav-actions {
    width: 100% !important;
    justify-content: center !important;
  }

  .theme-toggle {
    width: min(100%, 310px) !important;
  }
}

@media (max-width: 420px) {
  .brand-st {
    gap: 10px !important;
    padding-right: 9px !important;
  }

  .brand-st-badge {
    width: 48px !important;
    height: 48px !important;
    border-radius: 17px !important;
  }

  .brand-st-text small {
    white-space: normal !important;
    line-height: 1.22 !important;
  }

  .theme-text {
    font-size: .76rem !important;
  }
}
