/* RecepIA — landing styles */
:root {
  --bg: #07080d;
  --bg-elevated: #0e1018;
  --surface: #141824;
  --border: rgba(255, 255, 255, 0.08);
  --text: #f4f6fb;
  --muted: #9aa3b5;
  --accent: #5eead4;
  --accent-dim: rgba(94, 234, 212, 0.15);
  --accent-hot: #38bdf8;
  --radius: 14px;
  --radius-lg: 22px;
  --font: "Instrument Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.55);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: hidden;
}

.noise {
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: 0.04;
  z-index: 9999;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

img {
  max-width: 100%;
  display: block;
}

.container {
  width: min(1120px, 92vw);
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 8, 13, 0.75);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  gap: 1rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.logo-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-hot));
  color: #041014;
  display: grid;
  place-items: center;
  font-size: 0.95rem;
}

.logo-accent {
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.75rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.nav a:not(.btn):hover {
  color: var(--text);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 6px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
}

.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
}

@media (max-width: 900px) {
  .nav-toggle {
    display: flex;
  }

  .nav {
    position: fixed;
    inset: 72px 1rem auto;
    flex-direction: column;
    align-items: stretch;
    padding: 1.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: 0.2s ease;
  }

  .nav.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
  }

  .nav .btn {
    text-align: center;
  }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:active {
  transform: scale(0.98);
}

.btn-sm {
  padding: 0.55rem 1.1rem;
  font-size: 0.85rem;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  color: #042f2e;
  box-shadow: 0 8px 32px rgba(45, 212, 191, 0.35);
}

.btn-primary:hover {
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.45);
}

.btn-ghost {
  border-color: var(--border);
  color: var(--text);
  background: transparent;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.04);
}

/* Hero */
.hero {
  position: relative;
  padding: clamp(3rem, 8vw, 6rem) 0 clamp(4rem, 10vw, 7rem);
  overflow: hidden;
}

.hero-glow {
  position: absolute;
  top: -20%;
  right: -10%;
  width: min(70vw, 600px);
  height: min(70vw, 600px);
  background: radial-gradient(circle, rgba(94, 234, 212, 0.12), transparent 65%);
  pointer-events: none;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
}

.eyebrow {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin: 0 0 1rem;
}

.hero h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.35rem);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  font-weight: 700;
}

.hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, var(--accent), var(--accent-hot));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.75rem;
}

.hero-badges {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
  color: var(--muted);
  font-size: 0.875rem;
}

.hero-badges li {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-badges i {
  color: var(--accent);
  opacity: 0.9;
}

/* Mock UI */
.hero-visual {
  position: relative;
  min-height: 320px;
}

.mock-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.mock-primary {
  position: relative;
  z-index: 1;
}

.mock-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.25);
}

.mock-header .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #334155;
}

.mock-header .dot:first-child {
  background: #f87171;
}
.mock-header .dot:nth-child(2) {
  background: #fbbf24;
}
.mock-header .dot:nth-child(3) {
  background: #4ade80;
}

.mock-title {
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--muted);
  font-family: var(--mono);
}

.mock-thread {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bubble {
  max-width: 88%;
  padding: 0.75rem 1rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.5;
}

.bubble.user {
  align-self: flex-end;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.2);
}

.bubble.agent {
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
}

.agent-label {
  display: block;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin-bottom: 0.35rem;
  font-weight: 600;
}

.bubble.agent.success {
  border-color: rgba(94, 234, 212, 0.35);
  background: var(--accent-dim);
}

.bubble.agent.success i {
  margin-right: 0.35rem;
  color: var(--accent);
}

.mock-float {
  position: absolute;
  bottom: -12px;
  right: -8px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 1rem 1.15rem;
  max-width: 240px;
  animation: float 5s ease-in-out infinite;
}

.mock-float i {
  font-size: 1.75rem;
  color: #fff;
}

.mock-float strong {
  display: block;
  font-size: 0.9rem;
}

.mock-float span {
  font-size: 0.75rem;
  color: var(--muted);
}

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

/* Sections */
.section {
  padding: clamp(3.5rem, 8vw, 5.5rem) 0;
}

.section-alt {
  background: linear-gradient(180deg, rgba(20, 24, 36, 0.5), transparent);
  border-block: 1px solid var(--border);
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 3rem;
}

.section-head h2,
.split h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  margin: 0 0 1rem;
}

.section-desc {
  color: var(--muted);
  margin: 0;
  font-size: 1.05rem;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

@media (max-width: 1000px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 540px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
  border-color: rgba(94, 234, 212, 0.25);
  transform: translateY(-2px);
}

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--accent-dim);
  color: var(--accent);
  display: grid;
  place-items: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}

/* Split */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.split-reverse {
  direction: rtl;
}

.split-reverse > * {
  direction: ltr;
}

@media (max-width: 900px) {
  .split,
  .split-reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
}

.checklist {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
}

.checklist li {
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.75rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.checklist i {
  color: var(--accent);
  margin-top: 0.2rem;
  flex-shrink: 0;
}

/* Calendar panel */
.calendar-panel {
  display: flex;
  justify-content: center;
}

.calendar-ui {
  width: 100%;
  max-width: 340px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.calendar-ui header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  font-weight: 600;
}

.cal-nav {
  display: flex;
  gap: 0.75rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 0.35rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 1rem;
}

.cal-grid span:nth-child(-n + 7) {
  font-weight: 600;
  color: var(--text);
  font-size: 0.65rem;
  text-transform: uppercase;
}

.cal-grid span:not(:nth-child(-n + 7)) {
  padding: 0.35rem 0;
  border-radius: 8px;
  color: var(--text);
  font-size: 0.8rem;
}

.cal-grid .muted {
  opacity: 0.35;
}

.cal-grid .active {
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  color: #042f2e;
  font-weight: 700;
}

.cal-event {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
}

.cal-event i {
  color: var(--accent-hot);
}

.cal-event small {
  display: block;
  color: var(--muted);
  margin-top: 0.15rem;
}

/* Notifications */
.notif-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

@media (max-width: 800px) {
  .notif-grid {
    grid-template-columns: 1fr;
  }
}

.notif-card {
  padding: 1.5rem;
  border-radius: var(--radius);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
}

.notif-card p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.notif-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
}

.notif-tag.create {
  background: rgba(74, 222, 128, 0.12);
  color: #86efac;
}

.notif-tag.update {
  background: rgba(56, 189, 248, 0.12);
  color: #7dd3fc;
}

.notif-tag.cancel {
  background: rgba(248, 113, 113, 0.12);
  color: #fca5a5;
}

/* Audio */
.audio-demo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.wave-card {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 2rem 1.5rem 1.5rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  text-align: center;
}

.wave-bars {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  height: 64px;
  margin-bottom: 1rem;
}

.wave-bars span {
  width: 6px;
  background: linear-gradient(180deg, var(--accent), var(--accent-hot));
  border-radius: 4px;
  animation: wave 1.2s ease-in-out infinite;
}

.wave-bars span:nth-child(1) {
  height: 40%;
  animation-delay: 0s;
}
.wave-bars span:nth-child(2) {
  height: 65%;
  animation-delay: 0.1s;
}
.wave-bars span:nth-child(3) {
  height: 90%;
  animation-delay: 0.2s;
}
.wave-bars span:nth-child(4) {
  height: 55%;
  animation-delay: 0.15s;
}
.wave-bars span:nth-child(5) {
  height: 75%;
  animation-delay: 0.25s;
}
.wave-bars span:nth-child(6) {
  height: 45%;
  animation-delay: 0.05s;
}
.wave-bars span:nth-child(7) {
  height: 80%;
  animation-delay: 0.2s;
}
.wave-bars span:nth-child(8) {
  height: 50%;
  animation-delay: 0.12s;
}

@keyframes wave {
  0%,
  100% {
    transform: scaleY(0.55);
    opacity: 0.7;
  }
  50% {
    transform: scaleY(1);
    opacity: 1;
  }
}

.play-fab {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--accent), #2dd4bf);
  color: #042f2e;
  font-size: 1.1rem;
  cursor: pointer;
  box-shadow: 0 12px 40px rgba(45, 212, 191, 0.4);
  transition: transform 0.15s ease;
}

.play-fab:hover {
  transform: translate(-50%, -50%) scale(1.05);
}

.wave-caption {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.audio-hint {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.audio-hint i {
  color: var(--accent);
}

/* CTA */
.cta-section {
  padding-bottom: clamp(4rem, 10vw, 6rem);
}

.cta-inner {
  text-align: center;
  padding: clamp(2.5rem, 6vw, 3.5rem);
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(94, 234, 212, 0.08), rgba(56, 189, 248, 0.06));
  border: 1px solid rgba(94, 234, 212, 0.2);
  box-shadow: var(--shadow);
}

.cta-inner h2 {
  margin: 0 0 0.75rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.cta-inner > p {
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 1.75rem;
}

.cta-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  max-width: 560px;
  margin: 0 auto 1rem;
}

.cta-form input {
  flex: 1 1 180px;
  padding: 0.85rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-family: inherit;
  font-size: 0.95rem;
}

.cta-form input::placeholder {
  color: #64748b;
}

.cta-form input:focus {
  outline: none;
  border-color: rgba(94, 234, 212, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.cta-note {
  font-size: 0.8rem;
  color: var(--muted);
  margin: 0;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 2.5rem 0;
  background: var(--bg-elevated);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 2rem;
  align-items: start;
}

.footer-tag {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0.75rem 0 0;
  max-width: 280px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.footer-links a:hover {
  color: var(--accent);
}

.footer-copy {
  grid-column: 1 / -1;
  margin: 0;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-copy {
    grid-column: 1;
  }
}

/* Páginas legales (privacidad / condiciones) */
.legal-hero {
  position: relative;
  padding: clamp(2.5rem, 6vw, 4rem) 0 2rem;
  overflow: hidden;
}

.legal-hero .hero-glow {
  top: -40%;
  opacity: 0.7;
}

.legal-meta {
  font-size: 0.85rem;
  color: var(--muted);
  margin: 0 0 0.75rem;
  font-family: var(--mono);
}

.legal-hero h1 {
  font-size: clamp(1.85rem, 3.5vw, 2.5rem);
  letter-spacing: -0.03em;
  margin: 0 0 1rem;
  line-height: 1.15;
}

.legal-lead {
  color: var(--muted);
  max-width: 42rem;
  margin: 0;
  font-size: 1.05rem;
}

.legal-disclaimer {
  margin-top: 1.5rem;
  padding: 1rem 1.15rem;
  border-radius: var(--radius);
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.08);
  color: #fcd34d;
  font-size: 0.88rem;
  max-width: 42rem;
}

.legal-disclaimer strong {
  color: #fde68a;
}

.legal-doc {
  padding-bottom: clamp(3rem, 8vw, 5rem);
}

.legal-doc .container {
  max-width: 720px;
}

.legal-doc article {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.legal-doc article:last-of-type {
  border-bottom: none;
}

.legal-doc h2 {
  font-size: 1.15rem;
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.legal-doc h3 {
  font-size: 1rem;
  margin: 1.25rem 0 0.5rem;
  color: var(--muted);
  font-weight: 600;
}

.legal-doc p,
.legal-doc li {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 0 0 0.75rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.4rem;
}

.legal-doc a {
  color: var(--accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-doc a:hover {
  color: var(--accent-hot);
}

.legal-doc .placeholder {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 6px;
  background: rgba(148, 163, 184, 0.15);
  color: #cbd5e1;
  font-family: var(--mono);
  font-size: 0.85em;
}

.nav-legal a.is-active {
  color: var(--text);
  font-weight: 600;
}
