:root {
  --red: #e31b23;
  --red-dark: #bd1118;
  --text: #17171b;
  --muted: #6d6d75;
  --line: #e8e8ec;
  --soft: #f7f7f9;
  --white: #ffffff;
  --shadow: 0 24px 70px rgba(20, 20, 30, 0.10);
  --radius: 24px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  max-width: 100%;
  overflow-x: hidden;
}

body {
  margin: 0;
  max-width: 100%;
  overflow-x: hidden;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

img {
  max-width: 100%;
}

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

/* =========================
   HEADER
   ========================= */

.site-header {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
}

.brand {
  display: inline-flex;
  align-items: center;
}

.brand img {
  display: block;
  width: 155px;
  height: auto;
}

.site-header nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-size: 15px;
  font-weight: 600;
}

.site-header nav > a:not(.nav-cta) {
  transition: color 0.2s ease;
}

.site-header nav > a:not(.nav-cta):hover {
  color: var(--red);
}

.nav-cta {
  color: var(--white);
  background: var(--red);
  padding: 11px 20px;
  border-radius: 999px;
  transition: background 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background: var(--red-dark);
  transform: translateY(-1px);
}

/* =========================
   HERO
   ========================= */

.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 650px;
  padding: 80px 0 95px;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: 60px;
}

.hero-copy {
  min-width: 0;
}

.eyebrow {
  display: inline-block;
  margin-bottom: 15px;
  color: var(--red);
  font-size: 13px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero h1 {
  max-width: 610px;
  margin: 0;
  font-size: clamp(44px, 5vw, 72px);
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero-copy > p {
  max-width: 590px;
  margin: 25px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.65;
}

.hero-actions {
  margin-top: 34px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 13px;
}

.hero-actions > span {
  color: var(--muted);
  font-size: 14px;
}

/* =========================
   BOTONES
   ========================= */

.button {
  min-height: 50px;
  padding: 13px 23px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700;
  line-height: 1.25;
  transition: transform 0.2s ease, box-shadow 0.2s ease,
    background 0.2s ease;
}

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

.button.primary {
  color: var(--white);
  background: var(--red);
  box-shadow: 0 12px 30px rgba(227, 27, 35, 0.18);
}

.button.primary:hover {
  background: var(--red-dark);
  box-shadow: 0 16px 34px rgba(227, 27, 35, 0.24);
}

.button.secondary {
  color: var(--text);
  background: var(--white);
  border: 1px solid var(--line);
}

.button svg {
  width: 21px;
  height: 21px;
  fill: currentColor;
  flex: 0 0 auto;
}

/* =========================
   IMAGEN REAL DEL SOFTWARE
   ========================= */

.hero-product {
  position: relative;
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
}

.hero-product::before {
  content: "";
  position: absolute;
  z-index: 0;
  width: 88%;
  height: 76%;
  border-radius: 50%;
  background: radial-gradient(
    circle,
    rgba(227, 27, 35, 0.11) 0%,
    rgba(227, 27, 35, 0) 70%
  );
  filter: blur(15px);
  pointer-events: none;
}

.hero-product img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  max-width: 760px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 24px 32px rgba(20, 28, 40, 0.15));
}

/* Compatibilidad por si todavía existe hero-card */
.hero-card {
  width: 100%;
  min-height: 400px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.card-top {
  height: 45px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
}

.card-top i {
  width: 10px;
  height: 10px;
  display: block;
  border-radius: 50%;
  background: #dedee4;
}

.dashboard {
  min-height: 355px;
  display: grid;
  grid-template-columns: 90px 1fr;
}

.dash-side {
  background: #f1f1f4;
  border-right: 1px solid var(--line);
}

.dash-main {
  padding: 35px;
}

.dash-title {
  width: 45%;
  height: 18px;
  margin-bottom: 30px;
  border-radius: 10px;
  background: #dedee4;
}

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.dash-stats b {
  height: 70px;
  border-radius: 14px;
  background: #f0f0f3;
}

.dash-calendar {
  height: 170px;
  margin-top: 25px;
  border-radius: 17px;
  background:
    linear-gradient(#ececf0 1px, transparent 1px),
    linear-gradient(90deg, #ececf0 1px, transparent 1px);
  background-size: 45px 34px;
}

/* =========================
   SECCIONES
   ========================= */

.section {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 100px 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 50px;
}

.section-heading h2 {
  margin: 0;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.section-heading p {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 17px;
}

/* =========================
   FUNCIONES
   ========================= */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.feature-grid article {
  min-width: 0;
  padding: 30px 27px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
}

.feature-grid article > span {
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
}

.feature-grid h3 {
  margin: 28px 0 10px;
  font-size: 21px;
  line-height: 1.25;
}

.feature-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 15px;
}

/* =========================
   PLANES
   ========================= */

.plans {
  position: relative;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 25px;
  max-width: 900px;
}

.plan-card {
  position: relative;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--white);
}

.plan-card.featured {
  border-color: rgba(227, 27, 35, 0.35);
  box-shadow: 0 24px 60px rgba(227, 27, 35, 0.10);
}

.plan-card h3 {
  margin: 0;
  font-size: 28px;
}

.plan-subtitle {
  margin: 8px 0 25px;
  color: var(--muted);
}

.plan-card ul {
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  position: relative;
  padding: 10px 0 10px 27px;
  color: #4f4f57;
}

.plan-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--red);
  font-weight: 900;
}

.badge {
  position: absolute;
  top: 25px;
  right: 25px;
  padding: 6px 11px;
  color: var(--red);
  background: rgba(227, 27, 35, 0.08);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
}

/* =========================
   DESCARGAS
   ========================= */

.downloads {
  padding-top: 90px;
  padding-bottom: 110px;
}

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  max-width: 900px;
}

.download-card {
  min-width: 0;
  padding: 25px 27px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 12px 35px rgba(20, 20, 30, 0.05);
  transition: transform 0.2s ease, border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.download-card:hover {
  transform: translateY(-3px);
  border-color: rgba(227, 27, 35, 0.3);
  box-shadow: 0 18px 45px rgba(20, 20, 30, 0.09);
}

.os-icon {
  width: 42px;
  height: 42px;
  fill: currentColor;
}

.download-card strong {
  display: block;
  font-size: 17px;
  line-height: 1.3;
}

.download-card small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.download-card > span {
  color: var(--red);
  font-size: 27px;
  font-weight: 700;
}

.download-note {
  max-width: 900px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   CTA FINAL
   ========================= */

.cta {
  width: min(1120px, calc(100% - 40px));
  margin: 30px auto 100px;
  padding: 75px 40px;
  text-align: center;
  border-radius: 32px;
  background: var(--soft);
}

.cta img {
  width: 155px;
  height: auto;
}

.cta h2 {
  max-width: 700px;
  margin: 25px auto 0;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.035em;
}

.cta p {
  margin: 18px 0 28px;
  color: var(--muted);
  font-size: 17px;
}

/* =========================
   FOOTER
   ========================= */

footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 30px 0 45px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  border-top: 1px solid var(--line);
}

footer img {
  width: 125px;
  height: auto;
}

footer p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

/* =========================
   TABLET
   ========================= */

@media (max-width: 900px) {
  .site-header {
    min-height: 75px;
  }

  .site-header nav {
    gap: 16px;
  }

  .site-header nav > a:not(.nav-cta) {
    display: none;
  }

  .hero {
    min-height: auto;
    padding: 60px 0 75px;
    grid-template-columns: 1fr;
    gap: 45px;
  }

  .hero-copy {
    width: 100%;
  }

  .hero h1 {
    max-width: 700px;
  }

  .hero-product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 auto;
    padding: 0 10px;
  }

  .hero-product img {
    display: block;
    width: 100%;
    max-width: 680px;
    height: auto;
    margin: 0 auto;
    transform: none;
  }

  .feature-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .section {
    padding: 80px 0;
  }
}

/* =========================
   CELULAR
   ========================= */

@media (max-width: 600px) {
  .site-header {
    width: calc(100% - 32px);
    min-height: 70px;
  }

  .brand img {
    width: 125px;
  }

  .nav-cta {
    padding: 9px 14px;
    font-size: 13px;
  }

  .hero {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 50px 20px 65px;
    box-sizing: border-box;
  }

  .hero-copy {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .hero h1 {
    width: 100%;
    font-size: clamp(39px, 12vw, 55px);
    line-height: 1.04;
  }

  .hero-copy > p {
    font-size: 17px;
    line-height: 1.6;
  }

  .hero-actions {
    width: 100%;
  }

  .hero-actions .button {
    width: 100%;
    max-width: 100%;
    text-align: center;
  }

  .hero-product {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 10px auto 0;
    padding: 0;
    overflow: visible;
  }

  .hero-product img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
    object-fit: contain;
    transform: none;
  }

  .hero-product::before {
    width: 90%;
    height: 70%;
  }

  .section {
    width: calc(100% - 40px);
    padding: 65px 0;
  }

  .section-heading {
    margin-bottom: 35px;
  }

  .section-heading h2 {
    font-size: 36px;
  }

  .feature-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid article {
    padding: 26px 24px;
  }

  .plan-grid {
    grid-template-columns: 1fr;
  }

  .plan-card {
    padding: 30px 25px;
  }

  .badge {
    position: static;
    display: inline-block;
    margin-bottom: 18px;
  }

  .download-grid {
    grid-template-columns: 1fr;
  }

  .download-card {
    padding: 22px 20px;
    gap: 15px;
  }

  .os-icon {
    width: 36px;
    height: 36px;
  }

  .cta {
    width: calc(100% - 32px);
    margin-bottom: 65px;
    padding: 55px 22px;
  }

  .cta .button {
    width: 100%;
  }

  footer {
    width: calc(100% - 40px);
    flex-direction: column;
    text-align: center;
  }
}