/* ===== FUENTE BOTONES POSTÚLATE ===== */
.btn-postulate,
.btn-banner-promocional,
a.btn-postulate {
  font-family: 'Georama', sans-serif !important;
  font-weight: 700 !important;
  font-size: 1.125rem !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 14px 48px !important;
  width: auto !important;
  height: auto !important;
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  box-sizing: border-box !important;
  border-radius: 80px !important;
}

/* ===== POSTULACIÓN CREADOREX — Webform Custom Styles ===== */

.webform-submission-postulacioncreadorex-add-form {
  background: #ffffff;
  border-radius: 24px;
  padding: 4px 40px 36px;
  margin: 0 !important;
}

.webform-submission-postulacioncreadorex-add-form .form-item,
.webform-submission-postulacioncreadorex-add-form .webform-flexbox,
.webform-submission-postulacioncreadorex-add-form .webform-flex,
.webform-submission-postulacioncreadorex-add-form .webform-flex--container,
.webform-submission-postulacioncreadorex-add-form .form-wrapper {
  margin: 0 !important;
  padding: 0 !important;
}

.webform-submission-postulacioncreadorex-add-form .form-item label:not(.option) {
  display: none !important;
}

.webform-submission-postulacioncreadorex-add-form input[type="text"],
.webform-submission-postulacioncreadorex-add-form input[type="email"],
.webform-submission-postulacioncreadorex-add-form input[type="number"],
.webform-submission-postulacioncreadorex-add-form input[type="tel"] {
  width: 100% !important;
  border: 2px solid #273578 !important;
  border-radius: 100px !important;
  padding: 15px 24px !important;
  font-size: 0.95rem !important;
  color: #273578 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s !important;
}

.webform-submission-postulacioncreadorex-add-form input[type="text"]::placeholder,
.webform-submission-postulacioncreadorex-add-form input[type="email"]::placeholder,
.webform-submission-postulacioncreadorex-add-form input[type="number"]::placeholder,
.webform-submission-postulacioncreadorex-add-form input[type="tel"]::placeholder {
  color: #273578 !important;
  opacity: 0.65 !important;
}

.webform-submission-postulacioncreadorex-add-form input:focus {
  border-color: #0DD400 !important;
  outline: none !important;
}

.webform-submission-postulacioncreadorex-add-form input[type="checkbox"] {
  accent-color: #273578 !important;
  width: 16px !important;
  height: 16px !important;
}

.webform-submission-postulacioncreadorex-add-form .form-type-checkbox label {
  display: inline !important;
  font-size: 0.85rem !important;
  color: #333 !important;
}

/* Botón de envío — auto-width, centrado */
.webform-submission-postulacioncreadorex-add-form .webform-button--submit,
.webform-submission-postulacioncreadorex-add-form button[type="submit"],
.webform-submission-postulacioncreadorex-add-form input[type="submit"] {
  display: block !important;
  width: auto !important;
  margin: 16px auto 0 !important;
  background: #273578 !important;
  color: #ffffff !important;
  border: none !important;
  border-radius: 100px !important;
  padding: 18px 72px !important;
  font-size: 0.9rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
}

.webform-submission-postulacioncreadorex-add-form .webform-button--submit:hover {
  background: #0a1470 !important;
}

.webform-submission-postulacioncreadorex-add-form .form-item--error-message {
  color: #cc0000 !important;
  font-size: 0.8rem !important;
  margin-top: 4px !important;
  padding-left: 16px !important;
}

/* ===== FONDO DE SECCIÓN ===== */
.paragraph--type--webforms {
  background-color: #696eb1 !important;
  position: relative !important;
  margin: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 60px !important;
  overflow: hidden !important;
}

/* Bolas decorativas superiores — imagen real */
.paragraph--type--webforms::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  height: 396px !important;
  background-image: url('/sites/default/files/2026-09/Group%202%20%281%29.png') !important;
  background-size: cover !important;
  background-repeat: no-repeat !important;
  background-position: top center !important;
  pointer-events: none !important;
  z-index: 0 !important;
  -webkit-mask-image: linear-gradient(to bottom, black 65%, transparent 100%) !important;
  mask-image: linear-gradient(to bottom, black 65%, transparent 100%) !important;
}

.paragraph--type--webforms > * {
  position: relative !important;
  z-index: 1 !important;
}

.paragraph--type--webforms .container {
  max-width: 860px !important;
  padding: 120px 40px 0 !important;
}

.paragraph--type--webforms .mb-5 {
  margin-bottom: 0 !important;
}

.postulate-card-top {
  text-align: center;
  padding: 32px 0 24px;
  grid-column: 1 / -1;
}

.postulate-card-top h2 {
  font-family: 'Roc Grotesk', 'Inter', Arial, sans-serif;
  font-size: 1.9rem;
  font-weight: 900;
  color: #273578;
  margin: 0 0 12px;
}

.postulate-card-top p {
  font-size: 0.97rem;
  color: #333;
  line-height: 1.65;
  margin: 0 0 4px;
}

/* ===== CHECKBOXES ALINEADOS ===== */
.webform-submission-postulacioncreadorex-add-form .form-check {
  grid-column: 1 / -1 !important;
  padding-left: 1.75em !important;
  box-sizing: border-box !important;
  width: 100% !important;
  margin-top: 4px !important;
}

.webform-submission-postulacioncreadorex-add-form .form-check-input {
  margin-left: -1.75em !important;
  flex-shrink: 0 !important;
}

@media (max-width: 768px) {
  .webform-submission-postulacioncreadorex-add-form {
    padding: 24px 20px 32px;
  }
}

/* ===== LAYOUT 2 COLUMNAS ===== */
.webform-submission-postulacioncreadorex-add-form {
  max-width: 100% !important;
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  column-gap: 14px !important;
  row-gap: 0 !important;
  align-items: stretch !important;
}

.webform-submission-postulacioncreadorex-add-form .webform-element--type-markup {
  grid-column: 1 / -1 !important;
  padding-bottom: 14px !important;
}

.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-01"],
.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-02"] {
  grid-column: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
}

.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-01"] {
  padding-bottom: 14px !important;
}

.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-01"] .webform-flex--1,
.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-02"] .webform-flex--1 {
  flex: 1 !important;
  min-width: 0 !important;
}

.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] {
  grid-column: 2 !important;
  grid-row: 2 / 4 !important;
  display: flex !important;
  flex-direction: column !important;
  align-self: stretch !important;
}

.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] .webform-flex,
.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] .webform-flex--1,
.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] .webform-flex--container,
.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] .form-item,
.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] .js-form-item,
.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] .form-textarea-wrapper {
  flex: 1 !important;
  display: flex !important;
  flex-direction: column !important;
}

.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-04"] textarea {
  flex: 1 !important;
  min-height: 200px !important;
  resize: none !important;
}

.webform-submission-postulacioncreadorex-add-form [data-drupal-selector^="edit-flexbox-03"] {
  display: none !important;
}

.webform-submission-postulacioncreadorex-add-form > .js-form-item,
.webform-submission-postulacioncreadorex-add-form > .form-actions,
.webform-submission-postulacioncreadorex-add-form > .captcha {
  grid-column: 1 / -1 !important;
  margin-top: 14px !important;
}

.webform-submission-postulacioncreadorex-add-form textarea {
  width: 100% !important;
  border: 2px solid #273578 !important;
  border-radius: 16px !important;
  padding: 15px 24px !important;
  font-size: 0.95rem !important;
  color: #273578 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  outline: none !important;
  box-sizing: border-box !important;
  transition: border-color 0.2s !important;
}

.webform-submission-postulacioncreadorex-add-form textarea::placeholder {
  color: #273578 !important;
  opacity: 0.65 !important;
}

.webform-submission-postulacioncreadorex-add-form textarea:focus {
  border-color: #0DD400 !important;
}

/* ===== FIX ESPACIO BLANCO ENTRE BANNER Y FORMULARIO ===== */
/* Solo en desktop: el banner de escritorio tiene ~130px blancos al fondo */
@media (min-width: 1025px) {
  .paragraph--type--webforms {
    margin-top: -130px !important;
  }
}

/* Ensure the banner section doesn't show white below the banner image */
.section-banner-imagen {
  overflow: hidden !important;
}


/* ===== RESPONSIVE MOBILE + TABLET (≤1024px) ===== */
@media (max-width: 1024px) {

  /* Sección: padding ajustado */
  .paragraph--type--webforms {
    padding-top: 40px !important;
    padding-bottom: 50px !important;
  }

  /* Círculos: cubrir toda la sección */
  .paragraph--type--webforms::before {
    height: 100% !important;
    background-size: cover !important;
    background-position: center center !important;
    opacity: 0.35 !important;
  }

  /* Container: centrado sin padding top */
  .paragraph--type--webforms .container {
    padding: 0 20px 0 !important;
    max-width: 560px !important;
  }

  /* Form card - columna única mobile/tablet */
  .webform-submission-postulacioncreadorex-add-form {
    display: block !important;
    grid-template-columns: unset !important;
    padding: 32px 24px 36px !important;
    border-radius: 20px !important;
    box-shadow: 0 8px 32px rgba(39, 53, 120, 0.18) !important;
  }


  /* Espaciado entre campos */
  .webform-submission-postulacioncreadorex-add-form .form-item {
    margin-bottom: 12px !important;
    margin-top: 0 !important;
  }

  .webform-submission-postulacioncreadorex-add-form .webform-flex {
    margin-bottom: 0 !important;
  }

  /* Título y subtítulo */
  .postulate-card-top h2 {
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #273578 !important;
    text-align: center !important;
    margin-bottom: 10px !important;
  }

  .postulate-card-top p {
    font-size: 15px !important;
    text-align: center !important;
    color: #333 !important;
    margin-bottom: 20px !important;
    line-height: 1.5 !important;
  }

  /* === CLAVE: forzar bloque en todos los flex containers del webform === */
  .webform-submission-postulacioncreadorex-add-form .webform-flexbox,
  .webform-submission-postulacioncreadorex-add-form .js-webform-flexbox {
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  .webform-submission-postulacioncreadorex-add-form .webform-flex,
  .webform-submission-postulacioncreadorex-add-form .webform-flex--1,
  .webform-submission-postulacioncreadorex-add-form .webform-flex--container {
    display: block !important;
    flex: none !important;
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
  }

  /* Inputs y textarea: ancho completo */
  .webform-submission-postulacioncreadorex-add-form input[type="text"],
  .webform-submission-postulacioncreadorex-add-form input[type="email"],
  .webform-submission-postulacioncreadorex-add-form input[type="number"],
  .webform-submission-postulacioncreadorex-add-form input[type="tel"],
  .webform-submission-postulacioncreadorex-add-form textarea {
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .webform-submission-postulacioncreadorex-add-form textarea {
    min-height: 120px !important;
  }

  /* Botón ENVIAR: full width + uppercase */
  .webform-submission-postulacioncreadorex-add-form .webform-button--submit,
  .webform-submission-postulacioncreadorex-add-form button[type="submit"],
  .webform-submission-postulacioncreadorex-add-form input[type="submit"] {
    width: 100% !important;
    text-transform: uppercase !important;
    letter-spacing: 1.5px !important;
    font-size: 16px !important;
    padding: 16px 24px !important;
    border-radius: 100px !important;
    margin-top: 8px !important;
  }
}

/* ===== SOLO MOBILE (≤767px) ===== */
@media (max-width: 767px) {
  .paragraph--type--webforms .container {
    padding: 0 12px 0 !important;
    max-width: 100% !important;
  }

  .webform-submission-postulacioncreadorex-add-form {
    padding: 28px 18px 32px !important;
    border-radius: 16px !important;
  }

  .postulate-card-top h2 {
    font-size: 24px !important;
  }
}

/* ===== FIX BANNER ADULTOS EN PROCESO - ELIMINAR GAP BLANCO ===== */
.section-banner-imagen .container.mt-4 {
  margin-top: 0 !important;
}

/* ===== FIX IMAGEN BANNER INFORMATIVO - MOBILE/TABLET ===== */
@media (max-width: 1024px) {
  .section-banner-informativo {
    overflow: visible !important;
  }
  .section-banner-informativo .col-md-6,
  .section-banner-informativo .col-md-6.text-center {
    overflow: visible !important;
  }
  .img-banner-informativo {
    border-radius: 80px 30px !important;
  }
}

/* ===== FIX BANNER ADULTOS EN PROCESO - FONDO TRANSPARENTE ===== */
/* El banner tiene zonas transparentes arriba y abajo que mostraban blanco */
.field--name-field-contenido .field__item:nth-child(6) .section-banner-imagen {
  background-color: rgb(39, 53, 120) !important;
}