/**
 * VERSPORT — COMPONENTES REUTILIZABLES
 *
 * Todos los componentes propios utilizan el prefijo
 * "versport-" para evitar conflictos con Classic,
 * Bootstrap y los módulos de PrestaShop.
 */

/* ==========================================================
   BOTONES
   ========================================================== */

.versport-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid transparent;
  border-radius: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
}

.versport-button:hover,
.versport-button:focus {
  text-decoration: none;
}

.versport-button--primary {
  color: #fff;
  background-color: var(--versport-color-primary, #111);
  border-color: var(--versport-color-primary, #111);
}

.versport-button--primary:hover,
.versport-button--primary:focus {
  color: #fff;
  opacity: 0.88;
}

.versport-button--secondary {
  color: var(--versport-color-primary, #111);
  background-color: transparent;
  border-color: currentColor;
}

.versport-button--secondary:hover,
.versport-button--secondary:focus {
  color: #fff;
  background-color: var(--versport-color-primary, #111);
  border-color: var(--versport-color-primary, #111);
}

/* Agrupación de botones */

.versport-button-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

/* ==========================================================
   CABECERAS DE SECCIÓN
   ========================================================== */

.versport-section-heading {
  margin-bottom: 40px;
}

.versport-section-heading--center {
  text-align: center;
}

.versport-section-heading__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.versport-section-heading__title {
  margin-bottom: 16px;
  font-size: clamp(2rem, 3vw, 3.5rem);
  font-weight: 700;
  line-height: 1.08;
}

.versport-section-heading__description {
  max-width: 760px;
  margin-bottom: 0;
  color: inherit;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.versport-section-heading--center
  .versport-section-heading__description {
  margin-right: auto;
  margin-left: auto;
}

/* ==========================================================
   TARJETAS
   ========================================================== */

.versport-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  background-color: var(--versport-color-surface, #f5f5f5);
}

.versport-card__media {
  position: relative;
  overflow: hidden;
}

.versport-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.versport-card__body {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  padding: 24px;
}

.versport-card__title {
  margin-bottom: 12px;
  font-size: 1.375rem;
  font-weight: 700;
}

.versport-card__description {
  margin-bottom: 20px;
}

.versport-card__actions {
  margin-top: auto;
}

/* ==========================================================
   REJILLAS
   ========================================================== */

.versport-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 32px;
}

.versport-grid--3-columns {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.versport-grid--4-columns {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ==========================================================
   CONTENIDO SUPERPUESTO SOBRE IMÁGENES
   ========================================================== */

.versport-overlay {
  position: relative;
  overflow: hidden;
}

.versport-overlay__media {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.versport-overlay__shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.8) 0%,
    rgba(0, 0, 0, 0.45) 50%,
    rgba(0, 0, 0, 0) 100%
  );
  pointer-events: none;
}

.versport-overlay__content {
  position: absolute;
  z-index: 2;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
}

/* ==========================================================
   SEPARADORES
   ========================================================== */

.versport-divider {
  width: 100%;
  height: 1px;
  margin: 32px 0;
  border: 0;
  background-color: rgba(0, 0, 0, 0.15);
}

/* ==========================================================
   NEWSLETTER VERSPORT
   ========================================================== */

.versport-newsletter {
  width: 100%;

  margin: 0;
  padding: 0;

  background: #000;

  color: #fff;
}


/*
 * Seguimos tomando como referencia maestra
 * el PSD original de 1920 px.
 */
.versport-newsletter__inner {
  width: 100%;
  max-width: 1920px;

  margin: 0 auto;

  /*
   * En el PSD el contenido arranca aproximadamente
   * a 96 px del margen izquierdo.
   */
  padding: 36px 96px 38px;
}


/*
 * El bloque ocupa únicamente la zona izquierda
 * del diseño, aunque el fondo negro continúa
 * hasta los 1920 px.
 */
.versport-newsletter__content {
  width: 680px;
  max-width: 100%;
}


/* ==========================================================
   CABECERA
   ========================================================== */

.versport-newsletter__heading {
  margin: 0 0 30px;
  padding: 0;
}


.versport-newsletter__title {
  margin: 0 0 8px;
  padding: 0;

  color: #ed1c24;

  font-family: "Inter", sans-serif;

  font-size: 24px;
  font-weight: 700;
  line-height: 1.05;

  text-transform: uppercase;
}


.versport-newsletter__intro {
  margin: 0;
  padding: 0;

  color: #fff;

  font-family: "Inter", sans-serif;

  font-size: 18px;
  font-weight: 400;
  line-height: 1.2;
}


/* ==========================================================
   FORMULARIO
   ========================================================== */

.versport-newsletter__form {
  width: 100%;

  margin: 0;
  padding: 0;
}


.versport-newsletter__fields {
  display: grid;

  /*
   * Aproximación PSD:
   *
   * input  ≈ 430 px
   * botón  ≈ 230 px
   */
  grid-template-columns:
    minmax(0, 430px)
    230px;

  width: 100%;

  margin: 0;
  padding: 0;
}


/* ==========================================================
   INPUT
   ========================================================== */

.versport-newsletter__input {
  width: 100%;
  height: 48px;

  margin: 0;
  padding: 0 12px;

  border: 1px solid #4c4c4c;
  border-radius: 0;

  outline: 0;

  background: #000;

  color: #fff;

  font-family: "Inter", sans-serif;

  font-size: 14px;
  font-weight: 400;

  box-shadow: none;
}


.versport-newsletter__input::placeholder {
  color: #aaa;

  opacity: 1;
}


.versport-newsletter__input:focus {
  border-color: #ed1c24;

  outline: 0;

  box-shadow: none;
}


/* ==========================================================
   BOTÓN
   ========================================================== */

.versport-newsletter__submit {
  display: flex;

  align-items: center;
  justify-content: center;

  width: 100%;
  height: 48px;

  margin: 0;
  padding: 0 18px;

  border: 0;
  border-radius: 0;

  background: #ed1c24;

  color: #fff;

  font-family: "Inter", sans-serif;

  font-size: 14px;
  font-weight: 600;

  text-align: center;
  text-transform: uppercase;

  cursor: pointer;

  transition: background-color 180ms ease;
}


.versport-newsletter__submit:hover,
.versport-newsletter__submit:focus {
  background: #ca171d;

  color: #fff;
}


/* ==========================================================
   GDPR / PRIVACIDAD
   ========================================================== */

.versport-newsletter__legal {
  margin-top: 16px;
}


.versport-newsletter__gdpr,
.versport-newsletter__conditions {
  margin: 0;

  color: #bfbfbf;

  font-family: "Inter", sans-serif;

  font-size: 12px;
  font-weight: 400;

  line-height: 1.25;
}


.versport-newsletter__gdpr p,
.versport-newsletter__conditions p {
  margin: 0;
}


.versport-newsletter__gdpr label {
  color: #bfbfbf;

  font-size: 12px;
}


/*
 * Checkbox sin apariencia Bootstrap llamativa.
 */
.versport-newsletter__gdpr input[type="checkbox"] {
  width: 14px;
  height: 14px;

  margin-right: 7px;

  vertical-align: middle;
}


/* ==========================================================
   MENSAJES
   ========================================================== */

.versport-newsletter__alert {
  margin: 0 0 14px;

  border-radius: 0;
}