
/* ================================
   Hero section
================================== */
.hero {
  background: radial-gradient(
    circle at top left,
    rgba(10, 0, 107, 0.95) 20%,
    rgba(5, 0, 60, 0.85) 40%,
    var(--color-bg-dark) 70%,
    var(--color-dark) 100%
  );
  color: #fff;
  padding: 100px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  min-height: 400px;
  max-height: 450px;

  .hero__container {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: center;
    gap: 40px;
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
  }

  /* Texto lateral */
  .hero__content {
    flex: 1;
    min-width: 300px;
    text-align: left;

    .hero__title {
      font-size: 2.5rem;
      margin-bottom: 10px;
      color: var(--color-title);
    }

    .hero__subtitle {
      color: var(--color-primary);
      margin-bottom: 20px;
      font-weight: 600;
    }

    .hero__text {
      color: var(--color-text-muted);
      font-size: 1rem;
      line-height: 1.6;
    }
  }

  /* Formulario */
  .form-card {
    position: sticky;
    top: 0;
    flex: 1;
    z-index: 2;
    max-width: 450px;
    background: #fff;
    color: var(--color-text);
    padding: 40px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);

    .form-header {
      display: flex;
      justify-content: start;
      align-items: start;
      column-gap: 20px;
      margin-bottom: 20px;

      .form-card__title {
        font-size: 1.5rem;
        font-weight: 700;
        text-align: left;
        margin: 0;
      }
    }


    .form-card__divider {
      margin-bottom: 25px;
      border: none;
      border-top: 1px solid var(--color-border);
    }

    .form {
      .form__row {
        display: flex;
        flex-wrap: wrap;
        column-gap: 15px;

        .form__group {
          flex: 1 0 160px;
        }
      }

      .form__group {
        flex: 1;
        display: flex;
        flex-direction: column;
        margin-bottom: 15px;

        input {
          width: 100%;
          padding: 10px;
          border: 1px solid var(--color-border);
          border-radius: var(--radius-md);
          font-size: 0.95rem;
          transition: var(--transition);

          &::placeholder {
            font-size: 12px;
            text-transform: uppercase;
          }

          &:focus {
            outline: none;
            border-color: var(--color-primary);
            box-shadow: 0 0 4px rgba(30, 144, 255, 0.3);
          }
        }
      }

      .form-checkbox {
        font-size: var(--font-small);
        color: var(--color-text);
        margin: 20px 0 30px 0;

        label {
          display: flex;
          align-items: center;
          line-height: 1.4em;
          cursor: pointer;
          color: #555;

          &:first-child {
            margin-bottom: 20px;
          }

          input[type="checkbox"] {
            margin-right: 5px;
            font-size: inherit;
            min-height: 20px;
            min-width: 20px;
            border-radius: var(--radius);
            accent-color: var(--color-primary);
            cursor: pointer;
            transition: filter 0.2s ease;

            &:hover {
              filter: brightness(1.2);
            }

            &:focus-visible {
              outline: 2px solid var(--color-primary);
              outline-offset: 2px;
            }
          }

          a {
            margin-left: 5px;
            color: #103d8a;
            text-decoration: underline;
            text-underline-offset: 2px;
            transition: color 0.2s ease;

            &:hover {
              color: color-mix(in srgb, var(--color-primary), #000 20%);
            }
          }
        }
      }

      .btn {
        width: 100%;
        padding: 12px;
        border-radius: var(--radius-md);
        border: 1px solid #103d8a;
        background: rgba(0, 153, 255, 0.363);
        color: #103d8a;
        font-size: 13px;
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.9px;
        cursor: pointer;
        transition: var(--transition);

        &:hover {
          transform: translateY(-2px);
          box-shadow: 0 6px 20px rgba(30, 144, 255, 0.25);
          background: #0b1736;
          color: #fff;
        }
        
        &:active {
          transform: translateY(0);
          box-shadow: 0 3px 10px rgba(30, 144, 255, 0.2);
        }
      }
    }

    .form-card__note {
      text-align: center;
      font-size: 0.8rem;
      margin-top: 15px;
      color: #555;

      a {
        color: var(--color-primary);
        text-decoration: none;
      }
    }
  }
}

/* ================================
   Products section
================================== */
.products {
  background: var(--color-bg-light);
  padding: 60px 20px;

  .products__wrapper {
    max-width: var(--max-width);
    margin: 0 auto;
    display: flex;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 40px;
  }

  /* Espaciador lateral para mantener alineación */
  .products__spacer {
    flex: 0 0 450px;
  }

  .products__content {
    flex: 1;
    z-index: 1;

    .products__title {
      font-size: 2.2rem;
      font-weight: 600;
      margin-bottom: 40px;
    }

    .products-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
      gap: 30px;

      .product-card {
        border: 1px solid rgba(5, 0, 80, 1);
        border-radius: var(--radius-md);
        transition: var(--transition);
        overflow: hidden;
        cursor: crosshair;
        background: #fff;

        &:hover {
          border-color: rgba(5, 0, 80, 0.7);
          transform: translateY(-5px);

          .product-card__figure::before {
            opacity: 1;
          }
        }

        .product-card__figure {
          position: relative;
          padding: 30px 20px;
          background: radial-gradient(
            circle at top left,
            rgba(25, 90, 200, 1) 15%,
            rgba(15, 40, 100, 0.95) 45%,
            rgba(5, 10, 35, 0.9) 75%,
            var(--color-dark) 100%
          );
          margin: 0;
          overflow: hidden;

          &::before {
            content: "";
            position: absolute;
            inset: 0;
            background: radial-gradient(
              circle at top left,
              rgba(5, 0, 80, 1) 20%,
              rgba(3, 0, 45, 0.9) 40%,
              #09041a 75%,
              var(--color-dark) 100%
            );
            opacity: 0;
            transition: var(--transition);
          }

          .product-card__image {
            position: relative;
            z-index: 1;
            margin-bottom: 10px;
            object-fit: cover;
            width: 100%;
            height: auto;
          }
        }

        .product-card__text {
          text-align: left;
          color: #444;
          font-size: 0.9rem;
          padding: 20px;
          margin: 0;
        }
      }
    }
  }
}

/* ================================
   Beneficios para distribuidores
================================== */
.benefits {
  margin-top: 40px;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  padding: 25px;
  color: var(--color-text);
  border: 1px solid rgba(0, 0, 0, 0.05);

  .benefits__title {
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #0b1736;
    text-align: left;
  }

  .benefits__list {
    list-style: none;
    margin: 0;
    padding: 0;

    li {
      position: relative;
      padding-left: 25px;
      margin-bottom: 10px;
      font-size: 0.95rem;
      line-height: 1.5;

      &::before {
        content: "✓";
        position: absolute;
        left: 0;
        top: 0;
        color: var(--color-primary);
        font-weight: bold;
        font-size: 1rem;
      }
    }
  }
}


/* ================================
   Responsive
================================== */
@media (width <= 1020px) {
  .hero {
    padding: 60px 20px;
    max-height: none;

    .hero__container {
      flex-direction: column;

      .hero__content {
        order: 1;
      }

      .form-card {
        order: 2;
        max-width: 100%;
        width: 100%;
        padding: 20px;
      }
    }
  }

  .products {
    padding: 40px 20px;

    .products__wrapper {
      flex-direction: column;
    }

    .products__spacer {
      display: none;
    }

    .products__content {
      width: 100%;
    }
  }
}
