/* ExtinControl landing — tokens alineados con la app Ionic */
:root {
  --ec-color-brand: #c81e2a;
  --ec-color-brand-dark: #9a1620;
  --ec-color-brand-light: #fde8ea;
  --ec-color-navy: #1a2744;
  --ec-color-navy-soft: #243352;
  --ec-color-ember: #e85d04;
  --ec-color-surface: #f4f6f9;
  --ec-color-card: #ffffff;
  --ec-color-muted: #64748b;
  --ec-color-text: #1e293b;
  --ec-status-ok: #0d9488;
  --ec-radius-card: 14px;
  --ec-radius-pill: 999px;
  --ec-shadow-card: 0 4px 24px rgba(26, 39, 68, 0.08);
  --ec-shadow-hero: 0 8px 32px rgba(26, 39, 68, 0.35);
  --ec-font: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--ec-font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ec-color-text);
  background: var(--ec-color-surface);
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--ec-color-brand);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.container {
  width: min(1120px, 100% - 2.5rem);
  margin-inline: auto;
}

/* —— Header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244, 246, 249, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(26, 39, 68, 0.06);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ec-color-navy);
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.brand:hover {
  text-decoration: none;
  color: var(--ec-color-brand);
}

.brand__mark-img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  object-fit: contain;
  background: #fff;
  box-shadow: 0 4px 16px rgba(26, 39, 68, 0.18);
  flex-shrink: 0;
}

.nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.5rem 0.75rem;
}

.lang-switch {
  display: inline-flex;
  border-radius: var(--ec-radius-pill);
  border: 1px solid rgba(26, 39, 68, 0.12);
  overflow: hidden;
  background: rgba(26, 39, 68, 0.04);
}

.lang-switch__btn {
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.42rem 0.7rem;
  border: none;
  cursor: pointer;
  background: transparent;
  color: var(--ec-color-muted);
  transition:
    background 0.15s ease,
    color 0.15s ease;
}

.lang-switch__btn:hover {
  color: var(--ec-color-navy);
}

.lang-switch__btn--active {
  background: #fff;
  color: var(--ec-color-brand);
  box-shadow: 0 1px 4px rgba(26, 39, 68, 0.08);
}

.lang-switch__btn:focus-visible {
  outline: 2px solid var(--ec-color-brand);
  outline-offset: 2px;
}

/* —— Buttons —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.25rem;
  font-family: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--ec-radius-pill);
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.btn--primary {
  background: var(--ec-color-brand);
  color: #fff;
  box-shadow: 0 4px 14px rgba(200, 30, 42, 0.35);
}

.btn--primary:hover {
  background: var(--ec-color-brand-dark);
  color: #fff;
  box-shadow: 0 6px 20px rgba(200, 30, 42, 0.4);
}

.btn--ghost {
  background: transparent;
  color: var(--ec-color-navy);
  border: 1px solid rgba(26, 39, 68, 0.15);
}

.btn--ghost:hover {
  background: rgba(26, 39, 68, 0.04);
  color: var(--ec-color-navy);
}

.btn--lg {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
}

.btn svg {
  width: 1.125rem;
  height: 1.125rem;
  flex-shrink: 0;
}

/* —— Hero —— */
.hero {
  background: linear-gradient(145deg, var(--ec-color-navy) 0%, var(--ec-color-navy-soft) 55%, #2a3f66 100%);
  color: #fff;
  padding: clamp(3rem, 8vw, 5.5rem) 0 clamp(4rem, 10vw, 6rem);
  margin-bottom: 0;
  box-shadow: var(--ec-shadow-hero);
  border-radius: 0 0 1.25rem 1.25rem;
}

.hero__grid {
  display: grid;
  gap: clamp(2rem, 5vw, 3.5rem);
  align-items: center;
}

@media (min-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr 1fr;
  }
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.75);
  margin-bottom: 1rem;
}

.hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

.hero__lead {
  margin: 0 0 1.75rem;
  font-size: 1.125rem;
  color: rgba(255, 255, 255, 0.88);
  max-width: 36ch;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.hero .btn--primary {
  background: #fff;
  color: var(--ec-color-brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.hero .btn--primary:hover {
  background: var(--ec-color-brand-light);
  color: var(--ec-color-brand-dark);
}

.hero .btn--ghost {
  border-color: rgba(255, 255, 255, 0.35);
  color: #fff;
}

.hero .btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero__stats strong {
  display: block;
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
}

.hero__stats span {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.7);
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding-block: 0.5rem;
}

.hero__shots {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: min(420px, 100%);
  margin-inline: auto;
}

@media (min-width: 900px) {
  .hero__shots {
    max-width: min(440px, 100%);
    justify-content: flex-end;
  }
}

.hero__shot {
  margin: 0;
  padding: 0;
  border-radius: 1.35rem;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.25);
  background: #0f1419;
  flex: 0 1 min(200px, 46vw);
  max-width: min(220px, 46vw);
}

.hero__shot img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: middle;
}

.hero__shot--back {
  transform: translate(18%, 12%) scale(0.9);
  z-index: 1;
  opacity: 0.92;
}

.hero__shot--front {
  z-index: 2;
  transform: translate(-10%, 0);
  max-width: min(230px, 48vw);
}

@media (max-width: 599px) {
  .hero__shots {
    max-width: 100%;
    padding-inline: 0.25rem;
  }

  .hero__shot {
    flex: 0 1 min(160px, 44vw);
    max-width: min(170px, 44vw);
    border-radius: 1rem;
    border-width: 2px;
  }

  .hero__shot--back {
    transform: translate(22%, 14%) scale(0.88);
  }

  .hero__shot--front {
    transform: translate(-6%, 0);
    max-width: min(175px, 46vw);
  }
}

/* —— Feature graphic (tiendas) —— */
.showcase {
  padding: clamp(2rem, 5vw, 3rem) 0;
  background: var(--ec-color-surface);
}

.showcase__inner {
  max-width: min(1024px, 100%);
  margin-inline: auto;
}

.showcase__graphic {
  width: 100%;
  height: auto;
  border-radius: var(--ec-radius-card);
  box-shadow: var(--ec-shadow-card), 0 12px 40px rgba(26, 39, 68, 0.1);
  border: 1px solid rgba(26, 39, 68, 0.06);
}

.showcase--hidden {
  display: none;
}

/* —— Sections —— */
.section {
  padding: clamp(3.5rem, 8vw, 5rem) 0;
}

.section__title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ec-color-navy);
}

.section__subtitle {
  text-align: center;
  margin: 0 auto 2.5rem;
  max-width: 42ch;
  color: var(--ec-color-muted);
  font-size: 1.0625rem;
}

.features {
  display: grid;
  gap: 1.25rem;
}

@media (min-width: 700px) {
  .features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.feature-card {
  background: var(--ec-color-card);
  border-radius: var(--ec-radius-card);
  box-shadow: var(--ec-shadow-card);
  padding: 1.5rem 1.35rem;
  border: 1px solid rgba(26, 39, 68, 0.05);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 32px rgba(26, 39, 68, 0.12);
  transform: translateY(-2px);
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
  background: var(--ec-color-brand-light);
  color: var(--ec-color-brand);
}

.feature-card__icon--navy {
  background: rgba(26, 39, 68, 0.08);
  color: var(--ec-color-navy);
}

.feature-card__icon--ember {
  background: rgba(232, 93, 4, 0.12);
  color: var(--ec-color-ember);
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ec-color-navy);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ec-color-muted);
}

/* —— CTA band —— */
.cta-band {
  margin: 0 calc(50% - 50vw);
  width: 100vw;
  background: linear-gradient(135deg, var(--ec-color-navy) 0%, var(--ec-color-navy-soft) 100%);
  color: #fff;
  padding: clamp(2.5rem, 6vw, 3.5rem) 1.25rem;
  text-align: center;
}

.cta-band h2 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
}

.cta-band p {
  margin: 0 0 1.5rem;
  color: rgba(255, 255, 255, 0.85);
  max-width: 40ch;
  margin-inline: auto;
}

.cta-band .btn--primary {
  background: #fff;
  color: var(--ec-color-brand);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.cta-band .btn--primary:hover {
  background: var(--ec-color-brand-light);
  color: var(--ec-color-brand-dark);
}

/* —— Footer —— */
.site-footer {
  padding: 2rem 0 2.5rem;
  text-align: center;
  color: var(--ec-color-muted);
  font-size: 0.875rem;
}

.site-footer .brand {
  justify-content: center;
  margin-bottom: 1.25rem;
}

.site-footer a {
  color: var(--ec-color-navy);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--ec-color-brand);
}

.footer-publisher {
  width: 100%;
  max-width: 440px;
  margin: 0 auto 1.5rem;
}

.footer-publisher__inner {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1.1rem 1.15rem;
  border-radius: 16px;
  text-align: start;
  background: var(--ec-color-card);
  border: 1px solid rgba(26, 39, 68, 0.07);
  box-shadow:
    0 2px 10px rgba(26, 39, 68, 0.04),
    0 10px 28px rgba(26, 39, 68, 0.06);
}

.footer-publisher__brand {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(145deg, var(--ec-color-navy) 0%, var(--ec-color-navy-soft) 100%);
  box-shadow:
    0 4px 14px rgba(26, 39, 68, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.footer-publisher__copy {
  flex: 1;
  min-width: 0;
}

.footer-publisher__label {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ec-color-muted);
}

.footer-publisher__name {
  margin: 0.15rem 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--ec-color-navy);
}

.footer-publisher__text {
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
  line-height: 1.45;
  color: var(--ec-color-muted);
}

.footer-publisher__link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.85rem;
  border-radius: var(--ec-radius-pill);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ec-color-brand);
  text-decoration: none;
  border: 1px solid rgba(200, 30, 42, 0.32);
  background: rgba(200, 30, 42, 0.06);
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    transform 0.2s ease;
}

.footer-publisher__link:hover {
  text-decoration: none;
  border-color: rgba(200, 30, 42, 0.5);
  background: rgba(200, 30, 42, 0.1);
  transform: translateY(-1px);
  color: var(--ec-color-brand-dark);
}

.site-footer__legal {
  margin: 0;
}

/* —— Footer: legal, soporte —— */
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 1rem;
  margin-bottom: 1.25rem;
  padding: 0;
  list-style: none;
}

.footer-nav a {
  font-size: 0.875rem;
  font-weight: 600;
}

.footer-support {
  max-width: 28rem;
  margin: 0 auto 1.25rem;
  padding: 1rem 1.15rem;
  border-radius: var(--ec-radius-card);
  background: var(--ec-color-card);
  border: 1px solid rgba(26, 39, 68, 0.07);
  text-align: center;
}

.footer-support__title {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--ec-color-muted);
}

.footer-support__lead {
  margin: 0 0 0.5rem;
  font-size: 0.875rem;
  color: var(--ec-color-text);
}

.footer-support__meta {
  margin: 0;
  font-size: 0.8125rem;
  color: var(--ec-color-muted);
}

.footer-support a {
  font-weight: 700;
}

/* —— Páginas legales —— */
.legal-header__row {
  flex-wrap: wrap;
}

.legal-header__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

.legal-layout {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--ec-color-surface);
}

.legal-layout main {
  flex: 1;
}

.legal-back {
  display: inline-block;
  margin-bottom: 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ec-color-navy);
  text-decoration: none;
}

.legal-back:hover {
  color: var(--ec-color-brand);
  text-decoration: none;
}

.legal-page {
  padding: clamp(1.5rem, 4vw, 2.5rem) 0 3rem;
}

.legal-page__title {
  margin: 0 0 0.5rem;
  font-size: clamp(1.35rem, 3vw, 1.75rem);
  font-weight: 700;
  color: var(--ec-color-navy);
  letter-spacing: -0.02em;
}

.legal-page__updated {
  margin: 0 0 1.5rem;
  font-size: 0.8125rem;
  color: var(--ec-color-muted);
}

.legal-page__notice {
  margin: 0 0 1.75rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(232, 93, 4, 0.1);
  border: 1px solid rgba(232, 93, 4, 0.25);
  font-size: 0.875rem;
  color: var(--ec-color-navy);
}

.legal-prose {
  max-width: 42rem;
  margin: 0 auto;
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--ec-color-text);
}

.legal-prose h2 {
  margin: 2rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ec-color-navy);
}

.legal-prose h2:first-of-type {
  margin-top: 0;
}

.legal-prose p {
  margin: 0 0 0.85rem;
}

.legal-prose ul {
  margin: 0 0 0.85rem;
  padding-left: 1.25rem;
}

.legal-prose li {
  margin-bottom: 0.35rem;
}

.legal-prose a {
  font-weight: 600;
}

.legal-status-card {
  max-width: 28rem;
  margin: 2rem auto 0;
  padding: 1.5rem 1.25rem;
  border-radius: var(--ec-radius-card);
  background: var(--ec-color-card);
  box-shadow: var(--ec-shadow-card);
  border: 1px solid rgba(13, 148, 136, 0.2);
  text-align: center;
}

.legal-status-card__ok {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  border-radius: 50%;
  background: rgba(13, 148, 136, 0.15);
  color: var(--ec-status-ok);
  font-size: 1.5rem;
  font-weight: 800;
}

.legal-status-card h2 {
  margin: 0 0 0.5rem;
  font-size: 1.125rem;
  color: var(--ec-color-navy);
}

.legal-status-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--ec-color-muted);
}
