:root {
  --bg-primary: #faf8f5;
  --bg-secondary: #f5efe7;
  --bg-warm: #fdf6ee;
  --text-primary: #18171a;
  --text-secondary: #5f5a57;
  --text-muted: #8b837d;
  --accent-warm: #e6a57a;
  --accent-peach: #f4d8c3;
  --accent-light: #fff4eb;
  --accent-teal: #79bdc8;
  --accent-teal-deep: #2f98a6;
  --accent-line: #dbe9eb;
  --border-color: #e8e1d7;
  --border-light: #efe9e1;
  --white: #ffffff;
  --shadow-soft: 0 20px 60px rgba(26, 18, 12, 0.08);
  --shadow-card: 0 12px 30px rgba(26, 18, 12, 0.06);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  color: var(--text-primary);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.36), rgba(255, 255, 255, 0)),
    url("../Fondos/fondo_3.svg") center bottom / cover no-repeat,
    var(--bg-primary);
  overflow-x: hidden;
}

a,
button {
  color: inherit;
}

button,
input,
textarea,
select {
  font: inherit;
}

.page-shell {
  position: relative;
  min-height: 100vh;
  isolation: isolate;
}

.ambient {
  position: fixed;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 999px;
  filter: blur(16px);
  opacity: 0.55;
  pointer-events: none;
}

.ambient-left {
  top: -7rem;
  left: -9rem;
  background: radial-gradient(circle, rgba(121, 189, 200, 0.28), rgba(121, 189, 200, 0));
}

.ambient-right {
  right: -10rem;
  bottom: -8rem;
  background: radial-gradient(circle, rgba(230, 165, 122, 0.26), rgba(230, 165, 122, 0));
}

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

.site-header {
  display: flex;
  align-items: center;
  padding: 28px 0 10px;
}

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

.brand-mark {
  display: inline-block;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 30px;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--text-primary);
}

.hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(340px, 520px);
  gap: 44px;
  align-items: center;
  min-height: calc(100vh - 132px);
  padding: 36px 0 32px;
}

.hero-copy {
  max-width: 610px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
  padding: 7px 14px;
  border: 1px solid var(--accent-peach);
  border-radius: 999px;
  background: rgba(255, 244, 235, 0.9);
  color: var(--accent-warm);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.badge-star {
  width: 12px;
  height: 12px;
  background:
    linear-gradient(currentColor, currentColor) center / 1px 100% no-repeat,
    linear-gradient(90deg, currentColor, currentColor) center / 100% 1px no-repeat,
    linear-gradient(45deg, transparent 45%, currentColor 46% 54%, transparent 55%) center / 100% 100% no-repeat,
    linear-gradient(-45deg, transparent 45%, currentColor 46% 54%, transparent 55%) center / 100% 100% no-repeat;
}

.hero h1,
.signal-copy h2,
.modal-header h2 {
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 500;
  letter-spacing: -0.02em;
}

.hero h1 {
  margin: 0;
  font-size: clamp(48px, 7vw, 76px);
  line-height: 1.04;
}

.hero-text {
  max-width: 520px;
  margin: 22px 0 30px;
  color: var(--text-secondary);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}

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

.btn-dark {
  background: #19171a;
  color: var(--white);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}

.btn-dark:hover {
  background: #262328;
}

.btn-light {
  background: rgba(255, 255, 255, 0.82);
  border-color: var(--border-color);
  box-shadow: var(--shadow-card);
  color: var(--text-primary);
}

.btn-light:hover {
  background: rgba(255, 255, 255, 0.95);
}

.status-panel {
  padding: 26px;
  border: 1px solid rgba(239, 233, 225, 0.95);
  border-radius: var(--radius-xl);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 24px;
}

.panel-kicker,
.panel-state {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.panel-kicker {
  background: rgba(121, 189, 200, 0.14);
  color: var(--accent-teal-deep);
}

.panel-state {
  background: rgba(230, 165, 122, 0.14);
  color: #b26d41;
}

.signal-block {
  padding: 22px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(250, 248, 245, 0.9), rgba(245, 239, 231, 0.95));
  border: 1px solid var(--border-light);
}

.signal-label {
  margin: 0 0 8px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.signal-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 38px);
  line-height: 1.06;
}

.signal-copy p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

.waveform {
  display: grid;
  grid-template-columns: repeat(28, minmax(0, 1fr));
  gap: 6px;
  align-items: end;
  height: 68px;
  margin-top: 24px;
}

.waveform-bar {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(121, 189, 200, 0.95), rgba(47, 152, 166, 0.8));
  transition: height 0.18s linear;
}

.feature-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.feature-item {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 14px;
  align-items: start;
  padding: 16px 14px;
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.48);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-item.is-active {
  border-color: var(--border-color);
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-1px);
}

.feature-item:focus-visible,
.privacy-link:focus-visible,
.modal-close:focus-visible,
.btn:focus-visible {
  outline: 2px solid rgba(47, 152, 166, 0.6);
  outline-offset: 3px;
}

.feature-dot {
  width: 10px;
  height: 10px;
  margin-top: 7px;
  border-radius: 999px;
}

.feature-dot.teal {
  background: var(--accent-teal-deep);
}

.feature-dot.warm {
  background: var(--accent-warm);
}

.feature-dot.dark {
  background: #19171a;
}

.feature-item h3 {
  margin: 0 0 4px;
  font-size: 15px;
}

.feature-item p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 0 24px;
}

.site-footer p {
  margin: 0;
  color: var(--text-muted);
  font-size: 14px;
}

.privacy-link {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.privacy-link:hover {
  color: var(--text-primary);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(18, 17, 19, 0.42);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(760px, 100%);
  max-height: min(84vh, 920px);
  overflow: auto;
  padding: 24px 24px 20px;
  border: 1px solid rgba(232, 225, 215, 0.95);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 24px 70px rgba(26, 18, 12, 0.18);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 12px;
}

.modal-header h2 {
  margin: 0;
  font-size: 32px;
}

.modal-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  background: var(--white);
  cursor: pointer;
}

.modal-close span {
  font-size: 26px;
  line-height: 1;
}

.modal-body {
  color: var(--text-secondary);
}

.modal-body p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
}

.modal-body a {
  color: var(--accent-teal-deep);
}

body.is-locked {
  overflow: hidden;
}

@media (max-width: 960px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 30px;
    min-height: auto;
    padding-top: 18px;
  }

  .hero-copy {
    max-width: none;
  }
}

@media (max-width: 640px) {
  .page-width {
    width: min(100% - 24px, 1180px);
  }

  .site-header {
    padding-top: 22px;
  }

  .brand-mark {
    font-size: 28px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .hero-text {
    font-size: 16px;
  }

  .panel-head,
  .site-footer {
    flex-direction: column;
    align-items: flex-start;
  }

  .status-panel,
  .signal-block,
  .modal {
    padding-left: 18px;
    padding-right: 18px;
  }

  .waveform {
    gap: 4px;
  }

  .modal-header h2 {
    font-size: 28px;
  }
}
