/* Mantén tu smooth */
html, body { scroll-behavior: smooth; }

/* El scroll debe “anclar” arriba del contenedor principal */
#cuestionario-compliance {
  /* ajusta si tu header sticky mide distinto */
  scroll-margin-top: calc(var(--adminbar-h, 0px) + 70px + 8px);
}

/* (opcional) define la altura del admin bar si quieres afinar aún más */
#wpadminbar { --adminbar-h: 32px; }
@media (max-width: 782px) { #wpadminbar { --adminbar-h: 46px; } }

/* Ajuste real del margen superior */
body #cuestionario-compliance {
  margin-top: calc(var(--adminbar-h, 0px) + 70px) !important; 
}

#cuestionario-compliance:focus {
  outline: none;
}

/* Eliminar cualquier borde/outline al enfocar el título */
#cuestionario-compliance .pregunta h3:focus {
  outline: none !important;
  box-shadow: none !important;
  border: none !important;
}

/* Forzar ancho y centrado del cuestionario (evita que se estire a full width) */
body #cuestionario-compliance {
  max-width: 700px !important;
  /* mantener centrado sin pisar el margin-top calculado */
  margin-right: auto !important;
  margin-left: auto !important;
  margin-bottom: 20px !important;
  padding: 0 16px;
  box-sizing: border-box;
}

/* Por si el tema/Elementor mete overflow/box-sizing raros */
#cuestionario-compliance .preguntas,
#cuestionario-compliance .resultado {
  box-sizing: border-box;
}

.obligacion { border: 1px solid #ddd; padding: 10px; margin-bottom: 10px; border-radius: 5px; background:#F1F7FF; }
button { margin-top: 10px; padding: 8px 16px; background: #0073aa; color: #fff; border: none; border-radius: 4px; cursor: pointer; }
button:hover { background: #005f8d; }

/* Contenedor general del progreso */
#progress-container {
  margin-bottom: 20px;
  text-align: center;
  font-family: Arial, sans-serif;
}

/* Texto "Pregunta X de Y" */
#progress-text {
  font-weight: bold;
  margin-bottom: 5px;
  display: block;
  font-size: 16px;
  margin-top: 0px;
  color: #333;
}

/* Barra de progreso */
#progress-bar {
  width: 100%;
  height: 10px;
  background: #e0e0e0;
  border-radius: 5px;
  overflow: hidden;
  margin: 0 auto;
  max-width: 400px;
}

/* Relleno animado de la barra */
#progress-fill {
  height: 100%;
  width: 0%;
  background: #015D8E; /* Color corporativo */
  transition: width 0.3s ease-in-out;
}

button.btn-atras {
    margin-right: 20px;
}

.botones-nav {
    margin-top: 10px;
}

.preguntas {
    border: 1px solid #ddd;
    padding: 10px;
    margin-bottom: 10px;
    border-radius: 5px;
    background: #F1F7FF;
}
.pregunta h3 {
  color: #1C3059;
  font-size: 20px;

}

/* Orden por defecto en ESCRITORIO: texto primero, icono después */
.pregunta h3 .pregunta-texto {
  order: 1;
}
.pregunta h3 .info-icon {
  order: 2;
}

/* ======== OBLIGACIONES (ESCRITORIO) ======== */
/* Texto primero, icono después */
.obligacion p {
  display: flex;
    align-items: flex-start; 
  gap: 6px;
}
p.seguimiento-title{
  margin-top: 10px;
      display: block;
          margin-bottom: 10px !important;

}

.obligacion .oblig-texto {
  order: 1;
  margin-bottom: 10px;
}

.obligacion .info-icon {
  order: 2;
}

/* ======== OBLIGACIONES (MÓVIL) ======== */
/* Icono primero, texto después */
@media only screen and (max-width: 768px) {
  .obligacion .oblig-texto {
      margin-bottom: 10px;
    order: 2;
  }

  .obligacion .info-icon {
    order: 1;
  }
}


@media (max-width: 768px) {
  .pregunta h3 {
  display: flex;
    flex-direction: row;
    align-items: flex-start;
    flex-wrap: nowrap;
    gap: 6px;
    font-size: 18px;
    line-height: 25px;
  }

  .obligacion h3 {
    color: #1C3059;
    font-size: 18px!important;
}

  #contenedor-cuestionario .resultado .cc-oblig-title {
    font-size: 1.3rem;
    line-height: 1.3;
  }

  .seguimiento-title{


  margin-top: 10px;
  margin-bottom: 5px;

  }

    .pregunta h3 .info-icon      { order: 1;     align-self: flex-start;  
    margin-top: 2px;          /* Ajuste fino opcional */
}
  .pregunta h3 .pregunta-texto { order: 2; }

[data-info]:hover::after,
[data-info]:focus::after,
[data-info].open::after {

  transform: translateX(0%)!important;

}

}

.obligacion h3 {
    color: #1C3059;
    font-size: 25px;
}
/* Tooltips custom basados en data-info */
.cc-info,
[data-info] {
  position: relative;
  cursor: help;
}

button#cc_btn_enviar_codigo {
  background: #1963EF !important;
  border: 1px solid #1963EF !important;
  color: white !important;
  border-radius: 50px !important;
}

button#btn-finalizar {
  background: #1963EF !important;
  border: 1px solid #1963EF !important;
  color: white !important;
  border-radius: 50px !important;
}

[data-info]:hover::after,
[data-info]:focus::after,
[data-info].open::after {
  content: attr(data-info);
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: #222;
  color: #fff;
  padding: 8px 10px;
  min-width: 220px;
  max-width: min(80vw, 320px);
  font-size: 14px;
  line-height: 1.4;
  border-radius: 6px;
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
  white-space: normal;
  z-index: 9999;
}

[data-info]:hover::before,
[data-info]:focus::before,
[data-info].open::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translate(-50%, -2px) rotate(45deg);
  width: 10px;
  height: 10px;
  background: #222;
  z-index: 10000;
}

a.button.contratar {
  background: #1C3059!important;
  border:1px solid #1C3059!important;
  color: white !important;
  border-radius: 50px!important;
  font-weight: 600!important;
}

a.button.contratar:hover {
  background: white!important;
  color: #1963EF !important;
  border:1px solid #1963EF!important;
  border-radius: 50px!important;
}

button.button.contratar.button-primary {
    background: #1C3059!important;
  border:1px solid #1C3059!important;
  color: white !important;
  border-radius: 50px!important;
  font-weight: 600!important;
}

button.button.contratar.button-primary:hover{
    background: white!important;
  color: #1963EF !important;
  border:1px solid #1963EF!important;
  border-radius: 50px!important;
}

button.btn-siguiente {
  background: #1963EF !important;
  border: 1px solid #1963EF !important;
  color: white !important;
  border-radius: 50px !important;
}

button.btn-atras {
  background: white !important;
  border: 1px solid #1963EF !important;
  color: #1963EF !important;
  border-radius: 50px !important;
}


.cc-field-error {
  border: 2px solid #d9534f !important;
  background: #fff6f6;
  border-radius: 6px;
  animation: ccShake 0.20s ease-in-out;
}

@keyframes ccShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  50% { transform: translateX(3px); }
  75% { transform: translateX(-2px); }
  100% { transform: translateX(0); }
}
.cc-privacy a {
  color: #1C3059 !important;
  font-weight: 500;
  text-decoration: underline;
}


/*obligaciones*/
/* ===== Ajuste SOLO para móvil ===== */
@media (max-width: 768px) {

  /* La fila principal pasa a columnas */
  .cc-flexbar {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 10px !important;
  }

  /* El contenedor de los botones */
  .cc-flexbar > div:last-child {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 0;
  }

  /* Alinear los botones al inicio */
  .cc-flexbar a.button {
    margin-left: 0 !important;
  }

  /* El separador invisible que metiste (flex:1) se oculta */
  .cc-flexbar > div[style*="flex:1"] {
    display: none !important;
  }
}


#cc_pais {
    width: 110px !important;
    flex-shrink: 0 !important;
}

.cc-thankyou-services-wrap {
            width: 100%;
            display: flex;
            justify-content: center;
            margin: 32px 0 40px;
        }

        .cc-thankyou-services-btn {
            background: #1c3059;
            color: #ffffff !important;
            font-size: 20px;
            font-weight: 600;
            padding: 18px 36px;
            border-radius: 10px;
            text-decoration: none !important;
            text-align: center;
            transition: all 0.2s ease;
            box-shadow: 0 8px 20px rgba(28, 48, 89, 0.25);
        }

        .cc-thankyou-services-btn:hover {
            background: #142241;
            transform: translateY(-1px);
            box-shadow: 0 10px 24px rgba(28, 48, 89, 0.35);
        }

        @media (max-width: 768px) {
            .cc-thankyou-services-btn {
                width: 100%;
                max-width: 320px;
                font-size: 18px;
                padding: 16px 20px;
            }
        }

