/* === GLOBAL === */
body {
  font-family: 'Inter', sans-serif;
  background-color: #f9f9fb;
  margin: 0;
  padding: 0;
  color: #1f1f1f;
}

button {
  font-family: inherit;
  border: none;
  cursor: pointer;
  transition: background 0.3s ease;
}

/* === CONTAINER === */
.crm-connection-container {
  max-width: 800px;
  margin: 40px auto;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  padding: 40px;
  box-sizing: border-box;
}

/* === HEADINGS === */
.crm-connection-container h1 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 10px;
  color: #0d0d12;
}

.crm-connection-container .subtitle {
  font-size: 16px;
  color: #5f5f5f;
  margin-bottom: 32px;
}

/* === STEPS === */
.crm-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  position: relative;
  margin: 40px 0 30px;
  gap: 0;
  counter-reset: step;
}

.crm-steps .step {
  position: relative;
  text-align: center;
  font-weight: 400;
  padding-top: 1px;
  color: #888;
}

 

.crm-steps .step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  background: #e2e2e2;
  color: #333;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 10px;
  z-index: 12;
  position: relative;
}

.crm-steps .step.active::before {
  background: #5f3dc4;
  color: #fff;
}

.crm-steps .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  right: -25%;
  width: 40%;
  height: 1px;
  background: #ddd;
  z-index: 1;
}

.crm-steps4 .step.active + .step::after {
  background: #5f3dc4;
}

.crm-steps4 .step.active::before {
  background: #5f3dc4;
  color: #fff;
}

/* Lineas paso a paso
.crm-steps4 .step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 18px;
  right: -25%;
  width: 40%;
  height: 1px;
  background: #ddd;
  z-index: 1;
}
*/

.crm-steps4 .step.active + .step::after {
  background: #5f3dc4;
}


/* === PLATFORM SECTION === */
.crm-platform-section h2 {
  font-size: 20px;
  margin-bottom: 4px;
}

.crm-platform-section p {
  font-size: 14px;
  color: #555;
  margin-bottom: 16px;
}
/*====================*/


.crm-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

/* Responsivo: 1 columna en pantallas pequeñas */
@media (max-width: 640px) {
  .crm-options {
    grid-template-columns: 1fr;
  }
}

/*
.crm-option {
    flex: 1 1 calc(50% - 16px);
    padding: 24px;
    border: 1px solid #ddd;
    border-radius: 10px;
    
}
*/

/* Botón flotante estilo tarjeta */
.crm-option {
  position: relative;
  border: 1px solid #e0e0e0;
  border-radius: 10px;
  padding: 20px;
  background-color: #fff;
  width: 100%;
  max-width: 400px;
  height: 120px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
}

.crm-option:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 18px rgba(0,0,0,0.12);
}

.crm-option.selected {
  border-color: #2d6cdf;
}


.crm-option img {
  max-height: 70px;
}

/* Etiqueta Selected */
.crm-selected-tag {
  position: absolute;
  top: 8px;
  right: 8px;
  background-color: #2d6cdf;
  color: white;
  font-size: 12px;
  padding: 4px 25px;
  border-radius: 6px;
}

.coming-soon {
  position: absolute;
  bottom: 8px;
  right: 8px;
  font-size: 12px;
  background-color: #ccc;
  color: #333;
  padding: 4px 8px;
  border-radius: 6px;
}




/*====================*/


/* === HELP SECTION === */
.crm-help-section {
  display: flex;
  gap: 24px;
  margin-bottom: 32px;
  margin-top: 30px;
  flex-wrap: wrap;
}

.help-block {
  flex: 1 1 48%;
  background-color: #f1f5ff;
  border-radius: 8px;
  padding: 20px;
}

.help-block h3 {
  margin-top: 0;
  font-size: 16px;
  font-weight: 600;
}

.help-block p {
  font-size: 14px;
  color: #333;
  margin-bottom: 12px;
}

.btn-primary,
.btn-secondary {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 14px;
  display: inline-block;
  text-align: center;
}

.btn-primary {
  background-color: #0056ff;
  color: white;
}

.btn-primary:hover {
  background-color: #003db3;
}

.btn-secondary {
  background-color: white;
  color: #0056ff;
  border: 2px solid #0056ff;
}

.btn-secondary:hover {
  background-color: #f0f4ff;
}

/* === CONTINUE BUTTON === */
.crm-continue {
  display: flex;
  justify-content: flex-end;
}

.crm-continue .btn-primary {
  font-size: 16px;
  padding: 12px 32px;
  border-radius: 8px;
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
  .crm-option {
    flex: 1 1 100%;
  }

  .crm-help-section {
    flex-direction: column;
  }

  .help-block {
    flex: 1 1 100%;
  }

  .crm-continue {
    justify-content: center;
  }
}


.crm-header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap; /* Para responsividad */
  margin-bottom: 2rem;
}

.crm-header-wrapper h1 {
  font-size: 2rem;
  margin: 0;
  flex: 1 1 auto;
}

.btn-config {
  background: none;
  border: none;
  padding: 0;
  margin-left: 1rem;
  width: 60px;
  height: 60px;
  cursor: pointer;
  flex-shrink: 0;
}

.btn-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  box-shadow: 0 0 10px rgba(0,0,0,0.2);
  transition: transform 0.3s ease;
}

.btn-config:hover .btn-video {
  transform: scale(1.05);
}

/* Responsive ajuste si pantalla es muy estrecha */
@media (max-width: 500px) {
  .crm-header-wrapper {
    flex-direction: column;
    align-items: flex-start;
  }

  .btn-config {
    margin-top: 1rem;
    margin-left: 0;
  }
}


/************************************
HUBSPOT CONNECTION
************************************/

/* Paso 1: Estilos para conexión con HubSpot */
#hubspot-connection {
  background-color: #ffffff;
  padding: 2rem;
  border-radius: 1.25rem;
  box-shadow: 0 0 20px rgba(55, 36, 0, 0.2);
  margin-top: 2rem;
  color: #fff;
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.crm-step-title {
  font-size: 1.75rem;
  margin-bottom: 0.25rem;
  font-weight: 700;
}

.crm-step-subtitle {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #c3c3c3;
}

/* Línea y pasos de progreso */
/*
#hubspot-connection .crm-steps {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  position: relative;
}

#hubspot-connection .crm-steps::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 10%;
  right: 10%;
  height: 3px;
  background-color: #444;
  z-index: 1;
}
*/

/*
#hubspot-connection .step {
  background-color: #292c38;
  border-radius: 12px;
  color: #ccc;
  font-weight: 500;
  font-size: 0.95rem;
  z-index: 2;
  position: relative;
  text-align: center;
  min-width: 120px;
}

#hubspot-connection .step.active {
  background-color: #ff6600;
  color: #fff;
}
*/

.crm-steps4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  position: relative;
  margin: 40px 0 30px;
  gap: 0;
  counter-reset: step;
}

.crm-steps4 .step {
  position: relative;
  text-align: center;
  font-weight: 400;
  padding-top: 1px;
  color: #888;
  margin-left: -10px;
}

.crm-steps4 .step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-block;
  background: #e2e2e2;
  color: #333;
  width: 36px;
  height: 36px;
  line-height: 36px;
  border-radius: 50%;
  font-weight: bold;
  margin-bottom: 10px;
  z-index: 12;
  position: relative;
}

.crm-status-message {
  margin-bottom: 1rem;
  text-align: center;
}

.crm-status-waiting {
  color: #f5b041;
  font-size: 1rem;
}

.crm-connect-btn-wrapper {
  margin-top: 1.5rem;
  text-align: center;
}

.btn-hubspot-connect {
  display: inline-flex;
  align-items: center;
  background-color: #ffffff;
  border: 1px solid #F47C14;
  color: #5F3DC4;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-shadow: 0 0 10px rgba(55, 36, 0, 0.2);
}

.btn-hubspot-connect:hover {
  background-color: #F47C14;
}

.crm-btn-logo {
  margin-right: 0.75rem;
  height: 24px;
}

.crm-help-section {
  margin-top: 2rem;
  font-size: 0.9rem;
  color: #aaa;
  text-align: center;
}

.crm-help-note {
  font-style: italic;
}

/* Responsive */
@media (max-width: 768px) {
  #hubspot-connection .crm-steps {
    flex-direction: column;
    gap: 10px;
  }

  #hubspot-connection .crm-steps::before {
    display: none;
  }

  #hubspot-connection .step {
    min-width: 100%;
    text-align: center;
  }

  .btn-hubspot-connect {
    width: 100%;
    justify-content: center;
  }
}
