/* ============================================================
   RespiraX — landing page styles
   Estilo: minimalista premium, inspirado en páginas de producto
   tipo Apple. Paleta extraída del logo (azul -> verde).
   ============================================================ */

:root {
  --c-navy: #16233c;
  --c-blue-deep: #14548a;
  --c-blue: #1c6eaf;
  --c-teal: #17879b;
  --c-green: #00a056;
  --c-green-bright: #17c171;

  --c-text: #16233c;
  --c-text-muted: #57647a;
  --c-bg: #ffffff;
  --c-bg-soft: #f6f8fa;
  --c-bg-soft-2: #eef1f5;
  --c-border: #e3e7ee;

  --gradient-brand: linear-gradient(120deg, var(--c-blue) 0%, var(--c-teal) 50%, var(--c-green) 100%);
  --gradient-soft: linear-gradient(160deg, rgba(28,110,175,0.08) 0%, rgba(0,160,86,0.08) 100%);

  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1160px;
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;

  --shadow-sm: 0 2px 10px rgba(22, 35, 60, 0.06);
  --shadow-md: 0 10px 30px rgba(22, 35, 60, 0.08);
  --shadow-lg: 0 20px 60px rgba(22, 35, 60, 0.12);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

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

a { color: inherit; text-decoration: none; }

.container {
  position: relative;
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

section { position: relative; }

/* ---------- Brand badge (logo watermark) ---------- */

.brand-badge {
  position: absolute;
  z-index: 2;
  width: 38px;
  height: 38px;
  padding: 7px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  box-shadow: var(--shadow-sm);
}
.brand-badge img { width: 100%; height: 100%; object-fit: contain; display: block; }

.brand-badge.corner-tr { top: 16px; right: 16px; }
.brand-badge.corner-br { bottom: 16px; right: 16px; }
.brand-badge.corner-tl { top: 16px; left: 16px; }
.brand-badge.corner-bl { bottom: 16px; left: 16px; }

@media (max-width: 560px) {
  .brand-badge { width: 30px; height: 30px; padding: 6px; }
}

@media (max-width: 640px) {
  .brand-badge-section { display: none; }
}

.section-pad { padding: 128px 0; }
@media (max-width: 900px) { .section-pad { padding: 88px 0; } }
@media (max-width: 560px) { .section-pad { padding: 64px 0; } }

.bg-soft { background: var(--c-bg-soft); }

/* ---------- Typography ---------- */

.kicker {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--c-teal);
  margin-bottom: 18px;
}

h1, h2, h3, h4 {
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
}

h2 {
  font-size: clamp(32px, 4.2vw, 48px);
  color: var(--c-navy);
}

h3 {
  font-size: clamp(20px, 2.2vw, 24px);
  color: var(--c-navy);
}

.lead {
  font-size: clamp(18px, 2vw, 22px);
  color: var(--c-text-muted);
  line-height: 1.55;
  font-weight: 400;
}

p { line-height: 1.65; color: var(--c-text-muted); margin: 0; }

.section-head {
  max-width: 680px;
  margin: 0 0 56px;
}
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.text-gradient {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.97); }

.btn-primary {
  background: var(--c-navy);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-primary:hover { background: var(--c-blue-deep); box-shadow: var(--shadow-md); }

.btn-gradient {
  background: var(--gradient-brand);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.btn-gradient:hover { box-shadow: var(--shadow-md); transform: translateY(-1px); }

.btn-ghost {
  background: transparent;
  color: var(--c-navy);
  border-color: var(--c-border);
}
.btn-ghost:hover { background: var(--c-bg-soft-2); }

.btn-light {
  background: #fff;
  color: var(--c-navy);
}
.btn-light:hover { box-shadow: var(--shadow-md); }

/* ---------- Header ---------- */

.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(255,255,255,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--c-border);
  box-shadow: 0 1px 0 rgba(22,35,60,0.02);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 20px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--c-navy);
  flex-shrink: 0;
}
.brand img { height: 30px; width: auto; }
.brand .x-letter {
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  list-style: none;
  margin: 0; padding: 0;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--c-navy);
}
.nav-links a {
  opacity: 0.75;
  transition: opacity 0.2s ease;
}
.nav-links a:hover { opacity: 1; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 14px;
}

.lang-switch {
  display: flex;
  background: var(--c-bg-soft-2);
  border-radius: 999px;
  padding: 4px;
  gap: 2px;
}
.lang-switch button {
  border: none;
  background: transparent;
  padding: 6px 11px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--c-text-muted);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease;
}
.lang-switch button.active {
  background: var(--c-navy);
  color: #fff;
}
.lang-switch button:not(.active):hover { color: var(--c-navy); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  width: 22px; height: 2px;
  background: var(--c-navy);
  border-radius: 2px;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle { display: flex; }
  .nav-right .lang-switch { display: none; }
  body.nav-open .mobile-panel { max-height: 420px; padding-top: 8px; padding-bottom: 24px; }
  body.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  body.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
  body.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
}

.mobile-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  border-top: 1px solid var(--c-border);
}
.mobile-panel-inner {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.mobile-panel .nav-links {
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 16px;
}
.mobile-panel .lang-switch { align-self: flex-start; }
@media (min-width: 861px) { .mobile-panel { display: none; } }

/* ---------- Hero ---------- */

.hero {
  padding: 168px 0 80px;
  background: var(--gradient-soft);
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero-actions { justify-content: center; }
  .hero-badge { margin-left: auto; margin-right: auto; }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 14px 7px 7px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c-navy);
  box-shadow: var(--shadow-sm);
  margin-bottom: 28px;
}
.hero-badge .dot {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--gradient-brand);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hero-badge .dot svg { width: 12px; height: 12px; }

.hero h1 {
  font-size: clamp(36px, 5.4vw, 62px);
  color: var(--c-navy);
  margin-bottom: 24px;
}

.hero .lead { max-width: 520px; margin-bottom: 36px; }
@media (max-width: 900px) { .hero .lead { max-width: 100%; margin-left: auto; margin-right: auto; } }

.hero-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.hero-visual {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-visual .glow {
  position: absolute;
  width: 82%;
  height: 82%;
  background: var(--gradient-brand);
  filter: blur(90px);
  opacity: 0.28;
  border-radius: 50%;
  z-index: 0;
}
.hero-media {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 460px;
}
.hero-media img {
  display: block;
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.trust-strip {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid rgba(22,35,60,0.08);
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: space-between;
}
.trust-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--c-text-muted);
}
.trust-item svg { width: 18px; height: 18px; color: var(--c-green); flex-shrink: 0; }

/* ---------- Reveal animation ---------- */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s cubic-bezier(.2,.7,.3,1), transform 0.7s cubic-bezier(.2,.7,.3,1);
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}
.reveal-1 { transition-delay: 0.05s; }
.reveal-2 { transition-delay: 0.15s; }
.reveal-3 { transition-delay: 0.25s; }
.reveal-4 { transition-delay: 0.35s; }

/* ---------- What is section ---------- */

.what-grid {
  display: grid;
  grid-template-columns: 0.95fr 1.05fr;
  gap: 64px;
  align-items: center;
}
@media (max-width: 900px) {
  .what-grid { grid-template-columns: 1fr; gap: 40px; }
}

.what-image {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--c-bg-soft-2);
  box-shadow: var(--shadow-md);
}
.what-image img { width: 100%; }

.callout {
  margin-top: 28px;
  display: flex;
  gap: 14px;
  padding: 18px 20px;
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-sm);
}
.callout .icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: var(--gradient-brand);
  display: flex; align-items: center; justify-content: center;
}
.callout .icon svg { width: 18px; height: 18px; color: #fff; }
.callout p { font-size: 14.5px; color: var(--c-text-muted); }

.body-copy { margin-top: 18px; font-size: 16.5px; }
.body-copy + .body-copy { margin-top: 14px; }

/* ---------- Stat banner ---------- */

.stat-banner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin: 56px 0 64px;
}
@media (max-width: 760px) {
  .stat-banner { grid-template-columns: 1fr; gap: 28px; }
}
.stat {
  text-align: center;
  padding: 28px 16px;
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}
.stat .num {
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.stat .cap {
  margin-top: 6px;
  font-size: 14px;
  color: var(--c-text-muted);
  font-weight: 500;
}

/* ---------- Benefit cards ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
@media (max-width: 980px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .card-grid { grid-template-columns: 1fr; } }

.card {
  background: #fff;
  border: 1px solid var(--c-border);
  border-radius: var(--radius-md);
  padding: 28px 24px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

.card .icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--gradient-soft);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}
.card .icon svg { width: 22px; height: 22px; color: var(--c-teal); }

.card h4 {
  font-size: 16.5px;
  font-weight: 650;
  color: var(--c-navy);
  margin-bottom: 8px;
}
.card p { font-size: 14.5px; }

/* ---------- Where to use ---------- */

.use-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
@media (max-width: 900px) { .use-layout { grid-template-columns: 1fr; gap: 40px; } }

.use-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.use-item {
  display: flex;
  gap: 16px;
  padding: 20px 4px;
  border-bottom: 1px solid var(--c-border);
}
.use-item:first-child { padding-top: 4px; }
.use-item .icon {
  flex-shrink: 0;
  width: 40px; height: 40px;
  border-radius: 10px;
  background: var(--c-bg-soft);
  display: flex; align-items: center; justify-content: center;
}
.use-item .icon svg { width: 20px; height: 20px; color: var(--c-blue); }
.use-item h4 { font-size: 16px; margin-bottom: 4px; }
.use-item p { font-size: 14.5px; }

.use-visual {
  position: sticky;
  top: 100px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--c-bg-soft-2);
}
.use-visual img { width: 100%; }
.use-visual .tag {
  position: absolute;
  left: 20px; bottom: 20px;
  background: rgba(22,35,60,0.85);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 999px;
}
@media (max-width: 900px) { .use-visual { position: static; } }

/* ---------- Contribution / pillars ---------- */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

.pillar {
  text-align: left;
  padding: 8px 0;
}
.pillar .num-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1.5px solid var(--c-border);
  font-weight: 700;
  font-size: 14px;
  color: var(--c-teal);
  margin-bottom: 20px;
}
.pillar h4 { font-size: 18px; margin-bottom: 10px; }
.pillar p { font-size: 15px; }

.quote-block {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 64px;
}
.quote-block h2 { margin-bottom: 0; }

/* ---------- Specs ---------- */

.specs-panel {
  position: relative;
  background: var(--c-navy);
  border-radius: var(--radius-lg);
  padding: 56px;
  color: #fff;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
}
@media (max-width: 900px) {
  .specs-panel { grid-template-columns: 1fr; padding: 40px 28px; }
}
.specs-panel .section-head { color: #fff; }
.specs-panel .section-head p { color: rgba(255,255,255,0.65); }
.specs-panel .kicker { color: #7fd9c4; }
.specs-panel h2 { color: #fff; }

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0;
}
@media (max-width: 560px) { .spec-grid { grid-template-columns: 1fr; } }

.spec-item {
  padding: 18px 0;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.spec-grid .spec-item:nth-child(odd) { padding-right: 24px; }
.spec-item .label {
  font-size: 12.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255,255,255,0.5);
  font-weight: 600;
  margin-bottom: 6px;
}
.spec-item .value {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

/* ---------- Safety ---------- */

.safety-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-bottom: 48px;
}
@media (max-width: 760px) { .safety-grid { grid-template-columns: 1fr; } }

.safety-item {
  display: flex;
  gap: 16px;
  padding: 24px;
  border-radius: var(--radius-md);
  background: var(--c-bg-soft);
  border: 1px solid var(--c-border);
}
.safety-item .check {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--c-green);
  display: flex; align-items: center; justify-content: center;
}
.safety-item .check svg { width: 16px; height: 16px; color: #fff; }
.safety-item h4 { font-size: 16px; margin-bottom: 6px; }
.safety-item p { font-size: 14.5px; }

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.badge-pill {
  padding: 10px 22px;
  border: 1.5px solid var(--c-border);
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--c-navy);
}

/* ---------- Commitment ---------- */

.commitment {
  background: var(--gradient-soft);
}
.commitment-inner {
  max-width: 780px;
  margin: 0 auto;
  text-align: center;
}
.commitment .kicker { display: block; }
.commitment blockquote {
  margin: 0 0 28px;
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 600;
  color: var(--c-navy);
  line-height: 1.35;
}
.commitment .company {
  margin-top: 36px;
  font-size: 14px;
  font-weight: 600;
  color: var(--c-text-muted);
}

/* ---------- CTA ---------- */

.cta-panel {
  position: relative;
  background: var(--gradient-brand);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  color: #fff;
}
.cta-panel h2 { color: #fff; margin-bottom: 16px; }
.cta-panel p { color: rgba(255,255,255,0.9); max-width: 520px; margin: 0 auto 32px; font-size: 17px; }
.cta-actions { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
@media (max-width: 560px) { .cta-panel { padding: 48px 24px; } }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--c-navy);
  color: rgba(255,255,255,0.7);
  padding: 64px 0 32px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand { display: flex; align-items: center; gap: 10px; color: #fff; font-size: 20px; font-weight: 700; }
.footer-brand img { height: 28px; }
.footer-tagline { margin-top: 14px; max-width: 320px; font-size: 14.5px; color: rgba(255,255,255,0.55); }
.footer-contact { display: flex; flex-direction: column; gap: 8px; font-size: 14.5px; }
.footer-contact a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 28px;
  font-size: 13px;
  color: rgba(255,255,255,0.45);
}
.footer-bottom a:hover { color: #fff; }

/* ---------- Utility ---------- */

.mt-0 { margin-top: 0; }
.text-center { text-align: center; }
