:root {
  --bg: #0f1117;
  --bg-soft: #171b24;
  --panel: rgba(20, 24, 34, 0.76);
  --panel-strong: #121621;
  --panel-light: #f5efe7;
  --text: #f6f1eb;
  --muted: #c7bdae;
  --muted-dark: #5a5047;
  --line: rgba(255, 255, 255, 0.1);
  --gold: #d8a35d;
  --gold-strong: #f0b96a;
  --terracotta: #b95c41;
  --accent: #7a351f;
  --success: #8cd2b8;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
  --radius-lg: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --max-width: 1200px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(216, 163, 93, 0.16), transparent 28%),
    radial-gradient(circle at top right, rgba(185, 92, 65, 0.14), transparent 24%),
    linear-gradient(180deg, #0f1117 0%, #11141d 45%, #17131a 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

ul {
  margin: 0;
  padding-left: 1.1rem;
}

.site-shell {
  width: min(100%, calc(var(--max-width) + 64px));
  margin: 0 auto;
  padding: 24px 32px 40px;
}

.topbar {
  position: sticky;
  top: 16px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 22px;
  margin-bottom: 26px;
  background: rgba(12, 15, 22, 0.74);
  border: 1px solid var(--line);
  border-radius: 999px;
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--gold-strong), var(--terracotta));
  color: #170f0d;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.brand-copy strong {
  font-size: 0.98rem;
}

.brand-copy small {
  color: var(--muted);
  font-size: 0.8rem;
}

.topnav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.topnav a:hover,
.topnav a:focus-visible {
  color: var(--text);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.95fr);
  gap: 28px;
  align-items: stretch;
  margin-bottom: 34px;
}

.hero-copy,
.hero-panel,
.info-card,
.app-card,
.model-card,
.calculator-card,
.contact-card,
.pitch-grid article {
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.hero-copy {
  padding: 42px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(21, 26, 36, 0.92), rgba(15, 17, 23, 0.94));
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold-strong);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
}

.hero h1,
.section-heading h2,
.contact-card h2,
.calculator-copy h3,
.panel-card h2,
.info-card h2 {
  margin: 0;
  font-family: "Playfair Display", serif;
  line-height: 1.05;
}

.hero h1 {
  max-width: 12ch;
  font-size: clamp(2.9rem, 6vw, 5rem);
}

.hero-text,
.section-heading p,
.app-card p,
.model-card p,
.contact-card p,
.pitch-grid p,
.info-card p,
.panel-card p,
.calculator-copy p {
  color: var(--muted);
  line-height: 1.72;
}

.hero-text {
  max-width: 64ch;
  margin: 24px 0 0;
  font-size: 1.04rem;
}

.hero-actions,
.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 28px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-1px);
}

.button-primary {
  background: linear-gradient(135deg, var(--gold-strong), var(--terracotta));
  color: #1b120f;
}

.button-secondary {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.04);
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 30px;
}

.hero-metrics article,
.calculator-results article {
  padding: 18px;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.hero-metrics strong,
.model-card strong,
.calculator-results strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.7rem;
}

.hero-panel {
  display: grid;
  gap: 18px;
}

.panel-card {
  padding: 28px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(20, 24, 35, 0.92), rgba(16, 18, 27, 0.96));
}

.panel-card.accent {
  background: linear-gradient(135deg, rgba(121, 53, 31, 0.94), rgba(185, 92, 65, 0.76));
}

.panel-label,
.model-label {
  display: inline-block;
  margin-bottom: 12px;
  color: #f8dfbd;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.panel-card ul {
  display: grid;
  gap: 10px;
  color: var(--text);
  line-height: 1.6;
}

.intro-grid,
.model-grid,
.expansion-grid,
.pitch-grid {
  display: grid;
  gap: 20px;
}

.intro-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 42px;
}

.info-card {
  padding: 28px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.info-card h2,
.info-card h3 {
  margin: 0 0 12px;
  font-size: 1.6rem;
}

.section {
  margin-bottom: 42px;
}

.section-heading {
  margin-bottom: 22px;
}

.section-heading.narrow {
  max-width: 760px;
}

.section-heading h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
}

.apps-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.detail-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.detail-card {
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.detail-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.35rem;
}

.detail-card p {
  margin: 0 0 14px;
  color: var(--muted);
  line-height: 1.68;
}

.detail-card ul {
  display: grid;
  gap: 9px;
  color: #efe3d5;
  line-height: 1.58;
}

.app-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.03)),
    linear-gradient(180deg, rgba(18, 22, 33, 0.98), rgba(14, 17, 24, 0.98));
}

.app-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(216, 163, 93, 0.14);
  color: #f7d4a1;
  font-size: 0.82rem;
  font-weight: 700;
}

.app-card h3 {
  margin: 0;
  font-size: 1.55rem;
}

.app-card ul {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  color: #ece2d5;
  line-height: 1.6;
}

.app-note {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.model-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 20px;
}

.model-card {
  padding: 26px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
}

.model-card.strong {
  background: linear-gradient(135deg, rgba(216, 163, 93, 0.16), rgba(185, 92, 65, 0.18));
}

.calculator-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.92fr);
  gap: 24px;
  padding: 30px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(18, 22, 33, 0.98), rgba(14, 17, 24, 0.96));
}

.calculator-ui label {
  display: inline-block;
  margin-bottom: 12px;
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--gold-strong);
}

.calculator-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}

.calculator-results span {
  color: var(--muted);
  font-size: 0.9rem;
}

.expansion-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.section-dark {
  padding: 34px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(10, 12, 18, 0.96), rgba(17, 16, 20, 0.98));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.pitch-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pitch-grid article {
  padding: 24px;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.03);
}

.pitch-grid h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.contact-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at top right, rgba(216, 163, 93, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(245, 239, 231, 0.96), rgba(234, 222, 209, 0.94));
  color: #1d1915;
}

.contact-card p,
.contact-card .eyebrow {
  color: var(--muted-dark);
}

.contact-card .button-secondary {
  border-color: rgba(29, 25, 21, 0.14);
  background: rgba(29, 25, 21, 0.04);
}

.footer {
  padding: 22px 0 6px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 0.92rem;
}

@media (max-width: 1080px) {
  .hero,
  .calculator-card,
  .contact-card,
  .intro-grid,
  .apps-grid,
  .detail-section,
  .model-grid,
  .expansion-grid,
  .pitch-grid {
    grid-template-columns: 1fr;
  }

  .contact-card {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-shell {
    padding: 16px 16px 28px;
  }

  .topbar {
    position: static;
    padding: 18px;
    border-radius: 24px;
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    gap: 14px;
  }

  .hero-copy,
  .panel-card,
  .info-card,
  .app-card,
  .model-card,
  .calculator-card,
  .contact-card,
  .section-dark {
    padding: 22px;
  }

  .hero h1 {
    max-width: none;
    font-size: clamp(2.4rem, 12vw, 4rem);
  }

  .hero-metrics,
  .calculator-results {
    grid-template-columns: 1fr;
  }

  .section-heading h2,
  .contact-card h2 {
    font-size: 2rem;
  }
}

/* ===== Video ===== */
.video-frame {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #000;
  box-shadow: var(--shadow);
}

.video-frame video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

/* ===== Planes y Pro ===== */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.plan-card h3 {
  margin: 0 0 10px;
  font-family: "Playfair Display", serif;
  font-size: 1.6rem;
}

.plan-card.plan-pro {
  border-color: rgba(240, 185, 106, 0.55);
  background: linear-gradient(160deg, rgba(216, 163, 93, 0.2), rgba(185, 92, 65, 0.2)), var(--panel-strong);
}

.plan-ribbon {
  position: absolute;
  top: -13px;
  right: 22px;
  padding: 6px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--gold-strong), var(--terracotta));
  color: #1b120f;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.plan-price {
  margin: 0;
  color: var(--muted);
}

.plan-price strong {
  color: var(--text);
  font-size: 2.3rem;
}

.plan-sub {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.plan-sub strong {
  color: var(--gold-strong);
}

.plan-list {
  display: grid;
  gap: 10px;
  margin: 20px 0 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #ece2d5;
  line-height: 1.55;
}

.plan-card .button {
  margin-top: auto;
}

.compare-wrap {
  margin-top: 24px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow);
}

.compare-table {
  width: 100%;
  min-width: 560px;
  border-collapse: collapse;
  background: rgba(255, 255, 255, 0.03);
}

.compare-table th,
.compare-table td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  color: var(--muted);
}

.compare-table th {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.compare-table td:first-child {
  color: var(--text);
  font-weight: 600;
}

.compare-table .col-pro {
  color: #f7d4a1;
  background: rgba(216, 163, 93, 0.1);
}

.compare-table tr:last-child td {
  border-bottom: 0;
}

.calc-pro label {
  display: inline-block;
  margin-bottom: 10px;
  font-weight: 700;
}

@media (max-width: 1080px) {
  .plans-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .plan-card {
    padding: 22px;
  }
}

/* ===== Videos por aplicación ===== */
.video-sub {
  margin-top: 36px;
}

.video-sub h3 {
  margin: 0;
  font-family: "Playfair Display", serif;
  font-size: clamp(1.5rem, 2.6vw, 2.2rem);
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.video-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: var(--shadow);
}

.video-card .video-frame {
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.video-card-copy {
  padding: 18px 20px 22px;
}

.video-card-copy h3 {
  margin: 12px 0 6px;
  font-size: 1.3rem;
}

.video-card-copy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

@media (max-width: 1080px) {
  .video-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}

/* ===== Plataformas y socios ===== */
.platform-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 16px;
}

.platform-link {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.platform-link:hover,
.platform-link:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(240, 185, 106, 0.6);
}

.platform-link strong {
  font-size: 1.1rem;
}

.platform-link span {
  color: var(--gold-strong);
  font-size: 0.9rem;
}

.app-link {
  margin-top: 18px;
}

/* ===== Menú hamburguesa ===== */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 46px;
  height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
}

.nav-toggle span {
  display: block;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.nav-toggle.is-open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-toggle.is-open span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.is-open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

@media (max-width: 760px) {
  .topbar {
    position: sticky;
    top: 8px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }

  .brand-copy small {
    display: none;
  }

  .nav-toggle {
    display: flex;
  }

  .topnav {
    display: none;
    flex-direction: column;
    flex-basis: 100%;
    gap: 0;
    padding-top: 10px;
    border-top: 1px solid var(--line);
  }

  .topnav.is-open {
    display: flex;
  }

  .topnav a {
    padding: 12px 4px;
    font-size: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  }

  .topnav a:last-child {
    border-bottom: 0;
  }
}

@media (max-width: 760px) {
  .brand-mark {
    width: 46px;
    height: 46px;
    font-size: 0.72rem;
  }
}
