/* ═══════════════════════════════════════════════════════════════
   FORMULARIO CLUB — ESTILOS FIDEDIGNOS AL DISEÑO
   ═══════════════════════════════════════════════════════════════ */

/* ── Contenedor General de la Página ── */
.page-club {
  background-color: #f7f5f2;
  background-image: url('../img/img-fondo-product-single.webp');
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  background-attachment: fixed;
  color: #1f2d24;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.club-page-container {
  flex: 1;
  width: 100%;
  max-width: 860px;
  margin: 38px auto 70px;
  padding: 0 20px;
  box-sizing: border-box;
}

/* ── Tarjeta Principal del Club ── */
.club-card {
  background: rgba(252, 251, 250, 0.96);
  backdrop-filter: blur(8px);
  border: 1px solid #e7e2da;
  border-radius: 14px;
  padding: 46px 52px 48px;
  box-shadow: 0 8px 30px rgba(23, 42, 30, 0.05);
  box-sizing: border-box;
}

/* ── Cabecera: Logo arriba y Título centrado ── */
.club-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 16px;
  padding-bottom: 30px;
  margin-bottom: 36px;
  border-bottom: 1px solid #eee8df;
  position: relative;
}

.club-header__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 2px;
}

.club-header__logo-img {
  width: 155px;
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.club-header__title {
  font-family: 'Jost', sans-serif;
  font-size: 22px;
  font-weight: 500;
  letter-spacing: 3px;
  color: #172a1e;
  text-transform: uppercase;
  margin: 0;
  line-height: 1.2;
}

.club-header__divider {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 130px;
  margin: 4px auto 0;
  position: relative;
}

.club-header__divider::before,
.club-header__divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: #bfaea1;
}

.club-header__dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: #5c6e3b;
  margin: 0 8px;
  display: inline-block;
}

/* ── Secciones y Badges Circulares ── */
.club-section {
  margin-bottom: 32px;
}

.club-section__title-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.club-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  min-width: 28px;
  background-color: #133824;
  color: #ffffff;
  border-radius: 50%;
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
}

.club-section__title {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #172a1e;
  text-transform: uppercase;
  margin: 0;
}

/* ── Campos y Formulario ── */
.club-form-group {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}

.club-label {
  font-family: 'Jost', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #172a1e;
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.club-req {
  color: #b33927;
  font-weight: 600;
}

.club-input {
  width: 100%;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid #e2ded7;
  border-radius: 6px;
  padding: 0 16px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #1f2d24;
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.club-input::placeholder {
  color: #9aa59d;
  font-weight: 400;
}

.club-input:focus {
  border-color: #133824;
  box-shadow: 0 0 0 3px rgba(19, 56, 36, 0.08);
}

/* Grilla de 2 columnas para País y Email */
.club-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* Select personalizado */
.club-select-wrap {
  position: relative;
  width: 100%;
}

.club-select {
  width: 100%;
  height: 44px;
  background-color: #ffffff;
  border: 1px solid #e2ded7;
  border-radius: 6px;
  padding: 0 40px 0 16px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #1f2d24;
  outline: none;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.club-select:invalid,
.club-select option[value=""] {
  color: #9aa59d;
}

.club-select:focus {
  border-color: #133824;
  box-shadow: 0 0 0 3px rgba(19, 56, 36, 0.08);
}

.club-select-arrow {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #172a1e;
  pointer-events: none;
}

/* Input con Icono de Correo */
.club-input-icon-wrap {
  position: relative;
  width: 100%;
}

.club-input-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #6d7d74;
  pointer-events: none;
}

.club-input--has-icon {
  padding-left: 42px;
}

/* ── Sección 02: Cuadrícula de Checkbox Cards ── */
.club-checkboxes-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 20px;
}

.club-check-card {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  background-color: #ffffff;
  border: 1px solid #e2ded7;
  border-radius: 6px;
  padding: 13px 18px;
  cursor: pointer;
  box-sizing: border-box;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.2s;
  user-select: none;
}

.club-check-card:hover {
  border-color: #b5c2ba;
  background-color: #fafcfb;
}

.club-check-card.is-checked {
  border-color: #133824;
  background-color: #f7faf8;
}

.club-check-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

/* Casilla personalizada */
.club-check-box {
  width: 18px;
  height: 18px;
  min-width: 18px;
  border: 1.5px solid #b8b0a2;
  border-radius: 3px;
  background-color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  box-sizing: border-box;
}

.club-check-box::after {
  content: '';
  width: 5px;
  height: 9px;
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  margin-top: -2px;
  transition: transform 0.15s ease-in-out;
}

.club-check-input:checked + .club-check-box {
  background-color: #133824;
  border-color: #133824;
}

.club-check-input:checked + .club-check-box::after {
  transform: rotate(45deg) scale(1);
}

.club-check-input:focus + .club-check-box {
  box-shadow: 0 0 0 3px rgba(19, 56, 36, 0.15);
}

.club-check-text {
  font-family: 'Jost', sans-serif;
  font-size: 13.5px;
  color: #1f2d24;
  line-height: 1.35;
}

.club-privacy-link {
  color: #133824;
  text-decoration: underline;
  text-underline-offset: 2px;
  font-weight: 500;
  transition: color 0.2s;
}

.club-privacy-link:hover {
  color: #5c6e3b;
}

/* ── Sección 03: Textarea con Contador ── */
.club-textarea-wrap {
  position: relative;
  width: 100%;
  background-color: #ffffff;
  border: 1px solid #e2ded7;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.club-textarea-wrap:focus-within {
  border-color: #133824;
  box-shadow: 0 0 0 3px rgba(19, 56, 36, 0.08);
}

.club-textarea {
  width: 100%;
  min-height: 125px;
  padding: 14px 16px 36px;
  border: none;
  background: transparent;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: #1f2d24;
  outline: none;
  resize: vertical;
  box-sizing: border-box;
}

.club-textarea::placeholder {
  color: #9aa59d;
}

.club-char-counter {
  position: absolute;
  right: 14px;
  bottom: 10px;
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: #9aa59d;
  pointer-events: none;
}

/* ── Botón Enviar Centrado ── */
.club-submit-row {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 16px;
  margin-top: 36px;
}

.club-submit-row .club-check-card {
  max-width: 320px;
  width: 100%;
}

.club-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  height: 48px;
  padding: 0 52px;
  background-color: #0e3820;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(14, 56, 32, 0.2);
  transition: background-color 0.2s, transform 0.15s, box-shadow 0.2s;
}

.club-btn-submit:hover {
  background-color: #164f2f;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(14, 56, 32, 0.28);
}

.club-btn-submit:active {
  transform: translateY(0);
}

.club-btn-submit__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

/* ── Modal de Política de Privacidad y Feedback ── */
.club-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(19, 56, 36, 0.4);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
  box-sizing: border-box;
}

.club-modal-backdrop.is-open {
  display: flex;
}

.club-modal-box {
  background: #ffffff;
  border: 1px solid #e7e2da;
  border-radius: 12px;
  max-width: 580px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 36px 40px;
  position: relative;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

.club-modal-close {
  position: absolute;
  top: 18px;
  right: 20px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #6a7c72;
  cursor: pointer;
}

.club-modal-title {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 26px;
  font-weight: 600;
  color: #172a1e;
  margin-top: 0;
  margin-bottom: 16px;
}

.club-modal-text {
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  line-height: 1.6;
  color: #3f4e45;
}

.club-modal-btn {
  margin-top: 24px;
  display: inline-block;
  padding: 10px 24px;
  background-color: #0e3820;
  color: #ffffff;
  border-radius: 6px;
  border: none;
  font-family: 'Jost', sans-serif;
  font-weight: 500;
  font-size: 13px;
  cursor: pointer;
}

/* Notificación Flotante / Éxito */
.club-toast {
  position: fixed;
  bottom: 30px;
  right: 30px;
  background-color: #0e3820;
  color: #ffffff;
  padding: 16px 28px;
  border-radius: 8px;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 12px;
  transform: translateY(100px);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  z-index: 10000;
}

.club-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

/* ── Adaptación Responsive ── */
@media (max-width: 768px) {
  .club-page-container {
    margin: 20px auto 40px;
    padding: 0 12px;
  }

  .club-card {
    padding: 30px 20px 36px;
    border-radius: 10px;
  }

  .club-header {
    gap: 14px;
    padding-bottom: 22px;
    margin-bottom: 26px;
  }

  .club-header__logo-img {
    width: 130px;
  }

  .club-header__title {
    font-size: 19px;
    letter-spacing: 2px;
  }

  .club-grid-2 {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .club-checkboxes-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .club-check-card {
    padding: 12px 14px;
  }

  .club-btn-submit {
    width: 100%;
    padding: 0 20px;
  }
}
