:root {
  --sky: #56b6ff;
  --sky-soft: #bfe8ff;
  --navy: #0a2342;
  --navy-deep: #07172d;
  --navy-soft: #102d56;
  --white: #ffffff;
  --cream: #f8fbff;
  --gold: #f7c948;
  --gold-soft: #ffe9a6;
  --text: #0d1b2a;
  --muted: #58708d;
  --border: rgba(21, 59, 105, 0.12);
  --shadow: 0 20px 60px rgba(9, 33, 66, 0.12);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --container: 1200px;
  /* Altura del bloque superior del header (nav-wrap); debe coincidir con anclas y menú móvil */
  --site-header-h: 84px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--site-header-h);
}
body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(86, 182, 255, 0.25), transparent 28%),
    radial-gradient(circle at top right, rgba(247, 201, 72, 0.18), transparent 22%),
    linear-gradient(180deg, #f7fbff 0%, #eef6ff 100%);
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font: inherit; }

.container {
  width: min(calc(100% - 2rem), var(--container));
  margin: 0 auto;
}

.section { padding: 96px 0; }
.center { text-align: center; }
.narrow { width: min(calc(100% - 2rem), 860px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(86, 182, 255, 0.12);
  color: var(--navy-soft);
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-head h2,
.hero h1,
.cta-panel h2,
.about h2,
.benefits h2,
.security h2 {
  margin: 0;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.hero h1 {
  font-size: clamp(2.7rem, 6vw, 5.1rem);
  max-width: 12ch;
}

.section-head h2,
.about h2,
.benefits h2,
.security h2,
.cta-panel h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.section-head p,
.hero-text,
.about p,
.cta-panel p,
.security p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.75;
}

/* Solo overflow-x: el overflow hidden en ambos ejes rompía position:sticky; el header fijo no lo necesita. */
.site-shell {
  overflow-x: hidden;
  overflow-y: visible;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 120;
  backdrop-filter: blur(18px);
  background: rgba(255, 255, 255, 0.78);
  border-bottom: 1px solid rgba(10, 35, 66, 0.06);
}

main.site-main {
  padding-top: var(--site-header-h);
}

.nav-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 84px;
  gap: 1rem;
}

.header-start {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex: 1 1 auto;
  min-width: 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.85rem;
  font-weight: 800;
  font-size: 1.25rem;
}

.brand-logo,
.brand-fallback {
  width: 46px;
  height: 46px;
  border-radius: 14px;
}

.brand-fallback {
  place-items: center;
  background: linear-gradient(135deg, var(--sky), var(--navy));
  color: white;
  font-weight: 800;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.3rem;
}

.nav a {
  color: #264260;
  font-weight: 600;
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: 0.8rem;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-left: 0;
  flex-shrink: 0;
}

.site-lang {
  position: relative;
}

.site-lang-inner {
  position: relative;
}

.site-lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  min-width: 8.5rem;
  max-width: 14rem;
  padding: 0.45rem 0.6rem;
  font: inherit;
  font-weight: 600;
  font-size: 0.88rem;
  color: #264260;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 12px;
  cursor: pointer;
  text-align: start;
}

.site-lang-trigger:focus {
  outline: 2px solid rgba(86, 182, 255, 0.45);
  outline-offset: 2px;
}

.site-lang-flag-wrap {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.site-lang-flag-img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 0 0 1px rgba(10, 35, 66, 0.08);
}

.site-lang-trigger-text {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.site-lang-chevron {
  flex-shrink: 0;
  font-size: 0.65rem;
  opacity: 0.75;
}

.site-lang-panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-width: min(18rem, calc(100vw - 2rem));
  max-height: min(70vh, 22rem);
  overflow-y: auto;
  padding: 0.35rem;
  margin: 0;
  list-style: none;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(10, 35, 66, 0.12);
  border-radius: 14px;
  box-shadow: var(--shadow);
  z-index: 120;
}

html[dir="rtl"] .site-lang-panel {
  left: auto;
  right: 0;
}

.site-lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.5rem;
  margin: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font: inherit;
  font-weight: 600;
  font-size: 0.86rem;
  color: #264260;
  cursor: pointer;
  text-align: start;
}

.site-lang-option:hover,
.site-lang-option:focus-visible {
  background: rgba(86, 182, 255, 0.12);
  outline: none;
}

.site-lang-option.is-active {
  background: rgba(86, 182, 255, 0.18);
}

.site-lang-option-text {
  flex: 1 1 auto;
  min-width: 0;
}

.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;
}

.nav-toggle {
  display: none;
  width: 48px;
  height: 48px;
  border: 0;
  background: rgba(86, 182, 255, 0.1);
  border-radius: 14px;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  margin: 5px auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  padding: 0.95rem 1.25rem;
  font-weight: 700;
  transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
  border: 1px solid transparent;
}

.btn:hover { transform: translateY(-2px); }

.btn-primary {
  color: var(--white);
  background: linear-gradient(135deg, var(--sky), #2c7be5);
  box-shadow: 0 16px 32px rgba(44, 123, 229, 0.28);
}

.btn-secondary {
  color: var(--navy);
  background: rgba(255, 255, 255, 0.74);
  border-color: rgba(10, 35, 66, 0.08);
  box-shadow: 0 8px 18px rgba(10, 35, 66, 0.08);
}

.btn-ghost {
  background: transparent;
  border-color: rgba(10, 35, 66, 0.1);
}

.btn-lg { padding: 1.05rem 1.6rem; font-size: 1rem; }
.btn-full { width: 100%; }

.hero {
  padding: 68px 0 80px;
}

.hero-grid,
.split-grid,
.footer-grid {
  display: grid;
  gap: 2rem;
}

.hero-grid {
  grid-template-columns: 1.05fr 0.95fr;
  align-items: center;
  min-height: calc(100vh - 84px);
}

.hero-copy { position: relative; z-index: 2; }
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; margin: 2rem 0 1.5rem; }
.hero-actions.centered { justify-content: center; }
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  color: var(--navy-soft);
  font-weight: 600;
}
.hero-points li::before { content: '✦ '; color: var(--gold); }

.hero-visual {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(50px);
}
.hero-glow-a {
  width: 300px;
  height: 300px;
  background: rgba(86, 182, 255, 0.28);
  top: 40px;
  right: 40px;
}
.hero-glow-b {
  width: 240px;
  height: 240px;
  background: rgba(247, 201, 72, 0.24);
  bottom: 60px;
  left: 20px;
}

.floating-card {
  animation: float 6s ease-in-out infinite;
}

.product-card,
.metric-card,
.info-panel,
.feature-card,
.step-card,
.use-card,
.price-card,
.security-card,
.testimonial-card,
.cta-panel,
.info-item,
.faq-list details {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.product-card {
  position: relative;
  width: min(100%, 430px);
  border-radius: 34px;
  padding: 1.2rem;
  background: linear-gradient(180deg, rgba(255,255,255,0.96), rgba(247,251,255,0.96));
}

.card-topbar { display: flex; gap: 0.45rem; margin-bottom: 1rem; }
.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(10, 35, 66, 0.18);
}

.phone-header,
.phone-footer,
.avatar-stack { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.avatar-stack { justify-content: flex-start; }
.mini-avatar {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), var(--navy));
  color: #fff;
  font-weight: 800;
}
.phone-header p { margin: 0.25rem 0 0; color: var(--muted); font-size: 0.92rem; }
.live-pill {
  border-radius: 999px;
  padding: 0.45rem 0.75rem;
  background: rgba(87, 197, 144, 0.16);
  color: #157347;
  font-weight: 700;
  font-size: 0.82rem;
}
.chat-stream {
  display: grid;
  gap: 0.9rem;
  margin: 1.4rem 0;
}
.bubble {
  max-width: 85%;
  padding: 0.95rem 1rem;
  border-radius: 18px;
  line-height: 1.55;
}
.bubble-left {
  background: rgba(86, 182, 255, 0.12);
  border-top-left-radius: 6px;
}
.bubble-right {
  margin-left: auto;
  background: rgba(10, 35, 66, 0.92);
  color: #fff;
  border-top-right-radius: 6px;
}
.input-sim {
  flex: 1;
  border-radius: 14px;
  padding: 0.9rem 1rem;
  background: rgba(10, 35, 66, 0.05);
  color: var(--muted);
}
.send-btn {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  border: 0;
  background: linear-gradient(135deg, var(--gold), #f59f00);
  color: var(--navy);
  font-weight: 800;
  cursor: pointer;
}

.metric-card {
  position: absolute;
  width: 240px;
  padding: 1rem 1.1rem;
  border-radius: 22px;
}
.metric-card span {
  font-size: 0.82rem;
  text-transform: uppercase;
  color: var(--navy-soft);
  font-weight: 800;
  letter-spacing: 0.05em;
}
.metric-card strong {
  display: block;
  margin: 0.45rem 0 0.5rem;
  font-size: 1.2rem;
}
.metric-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.metric-left { top: 95px; left: -10px; animation-delay: 1.2s; }
.metric-right { bottom: 70px; right: -20px; animation-delay: 2.1s; }

.trust-strip {
  padding: 0 0 24px;
}
.trust-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.trust-grid > div {
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(10, 35, 66, 0.06);
  padding: 1rem 1.1rem;
  border-radius: 20px;
}
.trust-grid strong { display: block; font-size: 1rem; }
.trust-grid span { color: var(--muted); font-size: 0.95rem; }

.split-grid {
  grid-template-columns: 1fr 1fr;
  align-items: center;
}
.split-grid.reverse { grid-template-columns: 0.95fr 1.05fr; }
.info-panel {
  border-radius: var(--radius-xl);
  padding: 1.4rem;
  display: grid;
  gap: 1rem;
}
.info-item {
  border-radius: 18px;
  padding: 1.2rem;
}
.info-item h3 { margin: 0 0 0.4rem; }
.info-item p { margin: 0; color: var(--muted); }

.feature-grid,
.step-grid,
.use-grid,
.pricing-grid,
.testimonial-grid,
.security-grid {
  display: grid;
  gap: 1.25rem;
}
.feature-grid { grid-template-columns: repeat(3, 1fr); }
.step-grid { grid-template-columns: repeat(4, 1fr); }
.use-grid { grid-template-columns: repeat(3, 1fr); }
.pricing-grid { grid-template-columns: repeat(3, 1fr); align-items: stretch; }
.testimonial-grid { grid-template-columns: repeat(3, 1fr); }
.security-grid { grid-template-columns: repeat(2, 1fr); }

.feature-card,
.step-card,
.use-card,
.testimonial-card,
.security-card {
  border-radius: var(--radius-lg);
  padding: 1.35rem;
}
.security-card strong + span {
  margin-inline-start: 0.4em;
}
.feature-icon {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  background: rgba(86, 182, 255, 0.12);
  font-size: 1.45rem;
  margin-bottom: 1rem;
}
.feature-card h3,
.step-card h3,
.use-card h3,
.price-card h3,
.testimonial-card strong { margin: 0 0 0.65rem; }
.feature-card p,
.step-card p,
.use-card p,
.security-card span,
.testimonial-card p { margin: 0; color: var(--muted); line-height: 1.65; }
.step-number {
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--sky), #2c7be5);
  color: #fff;
  font-weight: 800;
  margin-bottom: 1rem;
}

.benefits-list {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
  display: grid;
  gap: 0.85rem;
}
.benefits-list li {
  padding: 0.95rem 1rem;
  border-radius: 16px;
  background: rgba(255,255,255,0.74);
  border: 1px solid rgba(10,35,66,0.08);
  box-shadow: 0 10px 20px rgba(9, 33, 66, 0.06);
  font-weight: 600;
}
.benefits-list li::before { content: '✓ '; color: #1ea672; font-weight: 800; }
.price-card {
  border-radius: 28px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.price-card ul {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  line-height: 1.85;
  flex: 1;
}
.price-tag {
  display: inline-flex;
  width: fit-content;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(10, 35, 66, 0.08);
  font-weight: 800;
  color: var(--navy-soft);
}
.featured {
  transform: translateY(-10px);
  background: linear-gradient(180deg, rgba(10,35,66,0.96), rgba(16,45,86,0.94));
  color: #fff;
  border-color: rgba(86, 182, 255, 0.18);
}
.featured p,
.featured ul,
.featured .price-tag { color: rgba(255,255,255,0.82); }
.featured-tag {
  background: rgba(247, 201, 72, 0.18);
  color: #fff;
}

.faq-list {
  display: grid;
  gap: 1rem;
}
.faq-list details {
  border-radius: 18px;
  padding: 1rem 1.15rem;
}
.faq-list summary {
  cursor: pointer;
  font-weight: 700;
  list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list p {
  margin: 0.9rem 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.cta-panel {
  border-radius: 32px;
  padding: 2.2rem;
  text-align: center;
  background: linear-gradient(135deg, rgba(255,255,255,0.98), rgba(244,250,255,0.98));
}

.footer {
  padding: 40px 0 18px;
  background: linear-gradient(180deg, rgba(7,23,45,0.96), rgba(7,23,45,1));
  color: rgba(255,255,255,0.9);
}
.footer-grid {
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 1.4rem;
}
.footer a { display: block; color: rgba(255,255,255,0.78); margin-bottom: 0.75rem; }
.footer h4 { margin: 0 0 1rem; }
.footer-copy { color: rgba(255,255,255,0.72); max-width: 32ch; line-height: 1.7; }
.footer-legal-row {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  margin-top: 1rem;
}
.footer-legal-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  justify-content: center;
  font-size: 0.92rem;
}
.footer-legal-nav a {
  display: inline !important;
  margin-bottom: 0 !important;
  color: rgba(255,255,255,0.78) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.footer-legal-sep {
  color: rgba(255,255,255,0.4);
  user-select: none;
}
.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 1rem;
  margin-top: 1rem;
  color: rgba(255,255,255,0.56);
  font-size: 0.92rem;
}
.footer-bottom--copyright-only {
  justify-content: center;
  text-align: center;
}
.footer-bottom--copyright-only span {
  display: block;
  width: 100%;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@media (max-width: 1080px) {
  .hero-grid,
  .split-grid,
  .split-grid.reverse,
  .footer-grid { grid-template-columns: 1fr; }
  .feature-grid,
  .use-grid,
  .testimonial-grid,
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .step-grid { grid-template-columns: repeat(2, 1fr); }
  .security-grid { grid-template-columns: 1fr 1fr; }
  .hero-visual { min-height: 540px; }
}

@media (max-width: 860px) {
  .nav-toggle { display: inline-block; }
  .nav {
    position: absolute;
    top: var(--site-header-h);
    left: 1rem;
    right: 1rem;
    display: none;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    padding: 1rem;
    border-radius: 22px;
    background: rgba(255,255,255,0.96);
    box-shadow: var(--shadow);
    border: 1px solid rgba(10,35,66,0.08);
  }
  .nav.open { display: flex; }
  .header-start {
    gap: 0.5rem;
    flex-wrap: nowrap;
  }
  .site-lang-trigger {
    min-width: 0;
    max-width: 11.5rem;
    padding: 0.4rem 0.5rem;
    font-size: 0.82rem;
  }
  .nav-cta { width: 100%; margin-left: 0; flex-direction: column; }
  .nav-cta .btn { width: 100%; }
  .hero { padding-top: 36px; }
  .hero-grid { min-height: auto; }
  .feature-grid,
  .use-grid,
  .testimonial-grid,
  .pricing-grid,
  .security-grid,
  .trust-grid { grid-template-columns: 1fr; }
  .step-grid { grid-template-columns: 1fr; }
  .metric-left, .metric-right { position: static; width: 100%; }
  .hero-visual { gap: 1rem; min-height: auto; }
  .section { padding: 72px 0; }
  .footer-bottom { flex-direction: column; }
}

@media (max-width: 560px) {
  .container { width: min(calc(100% - 1.2rem), var(--container)); }
  .brand-name { font-size: 1.08rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
  .product-card { border-radius: 24px; }
  .cta-panel { padding: 1.4rem; }
}
