:root {
  --color-ink: #1a1310;
  --color-cream: #fbeee2;
  --color-page: #f5f3f3;
  --color-muted: #5c5450;
  --color-white: #ffffff;

  --color-secondary-red: #5c0f08;
  --color-secondary-yellow: #d4900a;
  --color-secondary-green: #1c7a4b;
  --color-secondary-blue: #1a5fc7;

  --font-display: 'Space Grotesk', sans-serif;
  --font-accent: 'Source Serif 4', serif;
  --font-body: 'Inter', sans-serif;

  --radius: 32px;
  --radius-smaller: 16px;
  --radius-small: 24px;
  --stroke: 3px solid #000;

  --hero-logo-width: 25vw;
  --hero-robot-width: 80vw;
  --hero-overlap: -4rem;

  --card-w: min(650px, 95vw);
  --card-h: min(650px, 95svh);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  background: var(--color-page);
  font-family: var(--font-body);
  overflow-x: hidden;
  width: 100%;
}

main {
  display: flex;
  flex-direction: column;
}

/* ============================================================
   Hero
   ============================================================ */
#hero {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 2rem;
  min-height: 100vh;
}

.hero-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  z-index: 1;
}

.logo-img {
  width: var(--hero-logo-width);
  padding-top: 1rem;
}

.logo-img img {
  width: 100%;
  height: auto;
  display: block;
}

.robot-img {
  width: var(--hero-robot-width);
  margin-top: var(--hero-overlap);
  position: relative;
}

.robot-img::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 40%;
  background: linear-gradient(to bottom, transparent 50%, var(--color-page));
  pointer-events: none;
}

.robot-img img {
  width: 100%;
  height: auto;
  display: block;
}

.hero-eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
  text-align: center;
  margin-bottom: .5rem;
}

.hero-statement {
  margin-top: .75rem;
  font-size: 1.7rem;
  font-weight: 600;
  color: var(--color-ink);
  text-align: center;
  max-width: 560px;
  font-family: var(--font-accent);
  font-style: italic;
  line-height: 1.3;
}

.hero-scroll-cue {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  margin-top: 1.5rem;
  color: var(--color-muted);
  font-size: .7rem;
  font-weight: 500;
  letter-spacing: .06em;
  text-transform: uppercase;
  cursor: default;
}

.hero-scroll-cue .arrow {
  display: block;
  font-size: 1rem;
  line-height: 1;
  animation: cue-bounce 2s ease-in-out infinite;
}

@keyframes cue-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(6px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-scroll-cue .arrow {
    animation: none;
  }
}

.hero-buttons {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius);
  font-size: 0.875rem;
  font-weight: 500;
  height: 2.5rem;
  padding: 0.5rem 1.25rem;
  cursor: pointer;
  font-family: inherit;
  border: 1px solid transparent;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--color-ink);
  color: white;
}

.btn-primary:hover {
  background: #000;
}

.btn-outline {
  background: transparent;
  border-color: var(--color-ink);
  color: var(--color-ink);
}

.btn-outline:hover {
  background: rgba(26,19,16,0.06);
}

.btn:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

/* ============================================================
   Carousel
   ============================================================ */
#carousel {
  width: 100%;
  height: 90svh;
  overflow: hidden;
  position: relative;
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  gap: 2rem;
  height: calc(var(--card-h) + 1rem);
  padding-top: .5rem;
  padding-bottom: .5rem;
  position: relative;
  top: calc(50% - var(--card-h) / 2);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.carousel-slide {
  flex: 0 0 var(--card-w);
  height: var(--card-h);
  background: #fff;
  border-radius: var(--radius);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.5s ease;
}

.carousel-slide.is-dim {
  transform: scale(0.9);
  opacity: 0.6;
}

.carousel-slide.is-active {
  transform: scale(1);
  opacity: 1;
}

/* ============================================================
   Chart inside slide
   ============================================================ */
.slide-top {
  height: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2rem 1.75rem .5rem;
}

.slide-top h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-align: center;
}

.slide-top p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.6;
  max-width: 560px;
  margin-top: 0.5rem;
  padding: .5rem;
}

.slide-bottom {
  height: 80%;
  display: flex;
  align-items: flex-end;
  padding: 0 1.25rem 1.25rem;
}

.pie-wrap {
  width: 70%;
  max-width: 300px;
  aspect-ratio: 1 / 1;
  flex-shrink: 0;
}

.pie-chart {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pie-hole {
  position: absolute;
  width: 60%;
  height: 60%;
  border-radius: 50%;
  background: #fbbc04;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: .1rem;
}

.pie-explain {
  font-size: .85rem;
  line-height: 1.5;
  color: #0a0a0a;
  text-align: center;
  max-width: 360px;
  font-family: var(--font-accent);
  font-style: italic;
}

.pie-pct {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1;
}

.pie-sub {
  font-size: .65rem;
  font-weight: 500;
  color: #0a0a0a;
  text-transform: uppercase;
  letter-spacing: .05em;
}

.pie-rest {
  font-size: .55rem;
  font-weight: 600;
  color: #0a0a0a;
  margin-top: .15rem;
  opacity: .7;
}

.chart-wrap.horizontal {
  width: 100%;
}

.chart-wrap.horizontal .grid-h {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.bar-group-h {
  display: flex;
  align-items: center;
}

.bar-h {
  height: 5rem;
  border-radius: var(--radius-smaller);
  width: var(--bar-w);
  background: rgba(0,0,0,.12);
  min-width: 60px;
  transition: width .3s;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 .75rem;
}

.bar-h.bar-dim {
  background: rgba(0,0,0,.2);
}

.bar-h.is-tobi-bar {
  background: #0a0a0a;
}

.bar-inner-label {
  font-size: .8rem;
  font-weight: 600;
  color: #0a0a0a;
}

.bar-inner-val {
  font-size: .75rem;
  font-weight: 700;
  color: #0a0a0a;
}

.is-tobi-bar .bar-inner-label,
.is-tobi-bar .bar-inner-val {
  color: #fff;
}

.plan-row {
  display: flex;
  gap: 1rem;
  justify-content: center;
  width: 100%;
}

.plan-card {
  flex: 1;
  max-width: 120px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .35rem;
  padding: 1rem .5rem;
  border-radius: var(--radius-smaller);
  background: rgba(0,0,0,.06);
}

.plan-number {
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1;
}

.plan-label {
  font-size: .75rem;
  font-weight: 500;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.3;
  text-transform: uppercase;
  letter-spacing: .03em;
}

.plan-invest {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: .9rem;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.6;
}



.stats-row {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.stat {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
}

.stat-number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #0a0a0a;
  line-height: 1;
}

.stat-label {
  font-size: .75rem;
  font-weight: 500;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.3;
}

#carousel .slide-bottom .btn {
  margin-top: .75rem;
}

.chart-wrap.vertical {
  display: flex;
  flex-direction: column;
  height: 100%;
  width: 100%;
}

.chart-wrap.vertical .grid {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  flex: 1;
}

.bar-group {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
}

.chart-wrap.vertical .bar {
  width: 100%;
  height: var(--bar-value);
  background: #5c0f08;
  border-radius: var(--radius-smaller);
  min-height: 4px;
}

.bar-label {
  font-size: .9rem;
  font-weight: 700;
  color: #0a0a0a;
  text-align: center;
  padding-top: 8px;
  line-height: 1.3;
  word-break: break-word;
}

/* ============================================================
   Navigation dots
   ============================================================ */
#slide-nav {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.5rem 0;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: none;
  background: #aeaeae;
  cursor: pointer;
  transition: background 0.3s;
  padding: 0;
}

.dot.active {
  background: var(--color-ink);
}

.dot:focus-visible {
  outline: 2px solid var(--color-ink);
  outline-offset: 2px;
}

/* ============================================================
   Plataforma
   ============================================================ */
#plataforma {
  background: #fff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.plataforma-inner {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
}

.plataforma-inner h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.plataforma-inner p {
  font-size: 1rem;
  font-weight: 500;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.6;
  max-width: 560px;
}

.video-container {
  width: 100%;
  max-width: 800px;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius);
  outline: var(--stroke);
  overflow: hidden;
  background: var(--color-ink);
  margin-top: 0.5rem;
}

.video-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  cursor: pointer;
}

.video-placeholder span {
  color: var(--color-cream);
  font-size: 0.9rem;
  font-weight: 600;
}

.play-icon {
  opacity: 0.8;
}

/* ============================================================
   Modelo de propiedad intelectual
   ============================================================ */
#modelo-ip {
  background: #fff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.modelo-ip-inner {
  max-width: 760px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.modelo-ip-inner h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.modelo-ip-row {
  display: flex;
  align-items: center;
  gap: 2rem;
  width: 100%;
}

.modelo-ip-intro {
  flex: 1;
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1rem;
  font-weight: 500;
  color: #0a0a0a;
  text-align: justify;
  line-height: 1.6;
}

.modelo-ip-columns {
  display: flex;
  gap: 1.5rem;
  width: 100%;
}

.modelo-ip-card {
  flex: 1;
  border-radius: var(--radius);
  padding: .5rem;
  padding-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.modelo-ip-card > h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-align: center;
}

.modelo-ip-card > .card-sub {
  text-align: center;
}

.modelo-ip-card-inner {
  background: #fff;
  border-radius: var(--radius-small);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  flex: 1;
  width: 100%;
}

.modelo-ip-card-inner h2 {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--color-ink);
  text-align: center;
}

.modelo-ip-card.is-open {
  background: var(--color-page);
}

.modelo-ip-card.is-closed {
  background: #0a0a0a;
}

.modelo-ip-card.is-closed > h2,
.modelo-ip-card.is-closed > .card-sub {
  color: #fff;
}

.card-sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.85rem;
  color: var(--color-muted);
}

.modelo-ip-card ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 0;
}

.modelo-ip-card li {
  font-size: 0.88rem;
  line-height: 1.5;
  color: #0a0a0a;
  padding-left: 1rem;
  position: relative;
}

.modelo-ip-card li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-ink);
}

.modelo-ip-card li strong {
  font-weight: 700;
}

.modelo-ip-explain {
  background: var(--color-page);
  border-radius: var(--radius);
  padding: 1.75rem;
}

.modelo-ip-explain p {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.7;
  color: #0a0a0a;
}

/* ============================================================
   FAQ
   ============================================================ */
#faq {
  background: #fff;
  padding: 4rem 2rem;
  display: flex;
  justify-content: center;
}

.faq-inner {
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

.faq-inner h1 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: #0a0a0a;
  text-align: center;
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.faq-list {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

details {
  border: 1px solid #0a0a0a;
  border-radius: var(--radius-small);
  padding: 1rem 1.25rem;
  cursor: pointer;
  transition: background 0.15s;
}

details:hover {
  background: var(--color-page);
}

details summary {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: #0a0a0a;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

details summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: #0a0a0a;
  line-height: 1;
  transition: transform 0.2s;
}

details[open] summary::after {
  content: '−';
}

details p {
  font-size: 0.9rem;
  line-height: 1.6;
  color: #0a0a0a;
  margin-top: 0.75rem;
  font-family: var(--font-body);
}

/* ============================================================
   CTA
   ============================================================ */
#cta {
  background: #000;
  padding: 5rem 2rem;
  display: flex;
  justify-content: center;
}

.cta-inner {
  max-width: 600px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  text-align: center;
}

.cta-eyebrow {
  font-family: var(--font-display);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.cta-inner h2 {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--color-white);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.cta-sub {
  font-family: var(--font-accent);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--color-cream);
  line-height: 1.6;
  max-width: 480px;
}

.btn-outline-light {
  background: transparent;
  border-color: var(--color-white);
  color: var(--color-white);
}

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

/* ============================================================
   Footer
   ============================================================ */
footer {
  background: var(--color-page);
  padding: 1.5rem 2rem;
  display: flex;
  justify-content: center;
  border-top: 1px solid rgba(0,0,0,0.06);
}

.footer-inner {
  max-width: 720px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-logo {
  width: 48px;
  flex-shrink: 0;
}

.footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

.footer-text {
  font-size: .78rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.footer-link {
  color: var(--color-ink);
  text-decoration: none;
  font-size: .78rem;
  transition: opacity .15s;
}

.footer-link:hover {
  opacity: .5;
}

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 768px) {
  :root {
    --hero-logo-width: 60vw;
    --hero-robot-width: 160vw;
    --hero-overlap: -2.5rem;
    --card-w: min(540px, 92vw);
    --card-h: min(600px, 90vh);
  }

  .hero-desc {
    font-size: 1rem;
  }

  .modelo-ip-row {
    flex-direction: column;
    align-items: center;
  }

  .modelo-ip-intro {
    text-align: center;
  }

  #modelo-ip .video-container {
    max-width: 200px;
  }

  .modelo-ip-columns {
    flex-direction: column;
  }

  .modelo-ip-inner h1 {
    font-size: 1.5rem;
  }

  #slide-nav {
    gap: 0.6rem;
    padding: 1rem 0;
  }

  .dot {
    width: 10px;
    height: 10px;
  }

  .slide-top {
    padding: 2rem 1rem 1rem;
  }

  .slide-top h1 {
    font-size: 1.5rem;
  }

  .slide-top p {
    font-size: 1rem;
  }

  .hero-statement {
    font-size: 1.3rem;
    max-width: 360px;
  }

  .cta-inner h2 {
    font-size: 1.5rem;
  }

  .footer-inner {
    flex-direction: column;
    text-align: center;
    gap: .5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track,
  .carousel-slide {
    transition: none;
  }
}
