:root {
    --font: 'Inter', system-ui, sans-serif;
    --bg: #ffffff;
    --text: #111;
    --muted: #555;
    --primary: #7a5ac4;
    --radius: 8px;
    --gray: #f4f4f5;
  }
  
  body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
  }
  
  .wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 4rem 1.5rem; /* el padding top -primer valor- es el hueco que hay arriba hasta el logo */
  }
  
  .hero {
    text-align: center;
    padding-bottom: 2rem;     /* antes 4rem */
  }
  
  .hero h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1rem;
    line-height: 1.6;
  }
  .hero .highlight {
    color: var(--primary);
  }
  .lead {
    font-size: 1.05rem;         /* antes 1.2rem */
    color: #444;                /* más oscuro que var(--muted) */
    margin-bottom: 1.5rem;      /* más compacto */
  }
  
  .waitlist {
    display: flex;
    gap: 0.75rem;
    justify-content: center;
    flex-wrap: wrap;
  }
  
  .waitlist input {
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    width: 250px;
  }
  
  .waitlist button {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    padding: 0.75rem 1.2rem;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.2s ease;
  }
  .waitlist button:hover {
    background: rgba(87, 51, 230, 0.747);
  }
  
  .form-foot {
    font-size: 0.85rem;
    color: var(--muted);
    margin-top: 0.5rem;
  }
  
  .demo {
    background: var(--gray) url('/assets/background.png') center/cover no-repeat;
    text-align: center;
    padding: 3rem 1rem;
    border-radius: var(--radius);
    position: relative;
    color: white;
    text-align: right;
    padding: 2rem 2rem 2rem 1rem; /* antes 3rem 2rem 3rem 1rem */ /* top right bottom left */
  }
  .demo h2 {
    font-size: 1.6rem;
    margin-bottom: 1rem;
  }
  .demo-link {
    display: inline-block;
    margin-bottom: 1.5rem;
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
    color: white;
  }
  .demo-link:hover {
    text-decoration: underline;
  }
  .demo-img {
    width: 100%;
    max-width: 720px;
    border-radius: var(--radius);
    box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  }
  
  .foot {
    text-align: center;
    font-size: 0.9rem;
    color: var(--muted);
    padding: 0.25rem 1rem;
  }  
  
  .header {
    display: flex;
    justify-content: center;
    margin-bottom: -1.5rem; /* Espacio entre el logo de arriba y el headline */
  }
  
  .logo {
    height: 60px;
    width: auto;
  }
  
  .form-foot {
    margin-bottom: 1.25rem;     /* antes no tenía bottom margin */
  }

  .lead-main {
    font-size: 1.2rem; /* sobrescribe el valor de .lead para la principal */
  }

  .demo-overlay-link {
    display: block;
    text-decoration: none;
    color: inherit;
  }
  
  .demo-overlay-link:hover .demo-link {
    text-decoration: underline;
  }

  .demo-overlay-link {
    display: block;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
  }
  
  .demo-overlay-link:hover {
    transform: scale(1.015);
  }
  
  @media (max-width: 600px) {
    .hero h1 {
      font-size: 2rem;
      line-height: 1.2;
    }
    .lead {
      font-size: 1rem;
    }
    .waitlist {
      display: flex;
      flex-direction: column;
      align-items: stretch;
      gap: 0.75rem;
      width: 100%;
    }
  
    .waitlist input,
    .waitlist button {
      width: 100%;
      box-sizing: border-box;
    }
  
    .demo h2 {
      font-size: 1.0rem;
    }
  
    .demo-link {
      font-size: 0.85rem;
    }
  
    .foot {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 0.25rem;
      text-align: center;
      padding-inline: 1rem;
    }

    .wrapper {
      padding-top: 3rem; /* el padding top -primer valor- es el hueco que hay arriba hasta el logo en mobile */
    }

    .header {
      margin-bottom: 0.5rem; /* más suave en móvil */
    }
  }