/* ═══════════════════════════════════════════════════════════════
   empresa.css  –  Estilos del botón "Soy empresa" en el hero
                   y del modal / formulario
   ═══════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────
   BOTÓN HERO "SOY EMPRESA"
────────────────────────────────────────────── */
.hero-empresa-btn {
  position: absolute;
  bottom: 104px;
  right: 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: none;
  border-radius: 16px;
  padding: 14px 16px 14px 22px;
  cursor: pointer;
  box-shadow: 0 2px 16px rgba(0,0,0,0.13);
  transition: transform 0.2s, box-shadow 0.2s;
  z-index: 10;
  font-family: var(--font-poppins);
  min-width: 220px;
}
.hero-empresa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.18);
}

.empresa-btn-icon { display: none; }

.empresa-btn-text {
  display: flex;
  flex-direction: column;
  gap: 0px;
  flex: 1;
  text-align: left;
}
.empresa-btn-main {
  font-size: 18px;
  font-weight: 800;
  color: #111;
  line-height: 1.15;
  white-space: nowrap;
}
.empresa-btn-sub {
  font-size: 13px;
  font-weight: 400;
  color: #555;
  white-space: nowrap;
}

.empresa-btn-arrow {
  width: 42px;
  height: 42px;
  background: #88CDD3;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  line-height: 1;
}

/* Reemplazar el "›" con "^" visualmente usando un after */
.empresa-btn-arrow {
  font-style: normal;
  font-size: 0; /* ocultar el caracter original */
}
.empresa-btn-arrow::after {
  content: '∧';
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

/* Responsive */
@media (max-width: 820px) {
  .hero-empresa-btn {
    bottom: 76px;
    right: 16px;
    padding: 11px 12px 11px 16px;
    border-radius: 12px;
    min-width: 180px;
  }
  .empresa-btn-main { font-size: 15px; }
  .empresa-btn-sub  { font-size: 11px; }
  .empresa-btn-arrow { width: 36px; height: 36px; border-radius: 8px; }
  .empresa-btn-arrow::after { font-size: 17px; }
}
@media (max-width: 480px) {
  .hero-empresa-btn {
    bottom: 66px;
    right: 12px;
    padding: 9px 10px 9px 14px;
    min-width: 160px;
  }
  .empresa-btn-main { font-size: 13px; }
  .empresa-btn-sub  { font-size: 10px; }
  .empresa-btn-arrow { width: 32px; height: 32px; border-radius: 7px; }
  .empresa-btn-arrow::after { font-size: 15px; }
}


/* ──────────────────────────────────────────────
   OVERLAY DEL MODAL
────────────────────────────────────────────── */
.emp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.35);
  z-index: 10000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.emp-overlay.open {
  display: flex;
}


/* ──────────────────────────────────────────────
   TARJETA DEL MODAL
────────────────────────────────────────────── */
.emp-card {
  background: #fff;
  border-radius: 24px;
  width: 100%;
  max-width: 500px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.14);
  overflow: hidden;
  animation: empSlideIn 0.28s cubic-bezier(0.34, 1.4, 0.64, 1);
  font-family: var(--font-poppins, 'Poppins', sans-serif);
}

@keyframes empSlideIn {
  from { transform: scale(0.92) translateY(20px); opacity: 0; }
  to   { transform: scale(1) translateY(0); opacity: 1; }
}


/* ──────────────────────────────────────────────
   CABECERA DEL MODAL — limpia, sin gradiente
────────────────────────────────────────────── */
.emp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 28px 18px;
  background: #fff;
  border-bottom: none;
}

.emp-header-left {
  display: flex;
  align-items: center;
  gap: 0;
}

/* Ocultar el icono de edificio en el header */
.emp-icon-wrap { display: none; }

.emp-title {
  font-size: 26px;
  font-weight: 800;
  color: #111;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.emp-subtitle { display: none; }

.emp-close {
  background: #88CDD3;
  border: none;
  color: #fff;
  font-size: 18px;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  flex-shrink: 0;
  font-weight: 700;
}
/* Mostrar chevron abajo en lugar de X */
.emp-close {
  font-size: 0; /* ocultar la X */
}
.emp-close::after {
  content: '∨';
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}
.emp-close:hover { background: #6ab8bf; }


/* ──────────────────────────────────────────────
   CUERPO – FORMULARIO
────────────────────────────────────────────── */
#empFormStep {
  padding: 4px 28px 32px;
}

.emp-desc {
  font-size: 15px;
  color: #444;
  margin: 0 0 22px;
  line-height: 1.55;
  font-weight: 400;
}

.emp-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.emp-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.emp-label {
  font-size: 15px;
  font-weight: 700;
  color: #111;
  letter-spacing: 0.1px;
}

.emp-input {
  width: 100%;
  padding: 14px 18px;
  border: none;
  border-radius: 14px;
  font-size: 15px;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  color: #222;
  background: #e8e8e8;
  transition: box-shadow 0.18s, background 0.18s;
  outline: none;
}
.emp-input::placeholder { color: #999; }
.emp-input:focus {
  background: #dde8ee;
  box-shadow: 0 0 0 3px rgba(136, 205, 211, 0.35);
}
.emp-input.emp-input-error {
  background: #fce8e8;
  box-shadow: 0 0 0 3px rgba(220, 13, 21, 0.12);
}

.emp-error {
  font-size: 12px;
  color: #dc0d15;
  font-weight: 600;
  min-height: 15px;
  display: block;
}


/* ──────────────────────────────────────────────
   FILA INFERIOR: CHECKBOX + BOTÓN
────────────────────────────────────────────── */
.emp-check-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

/* Fila que contiene checkbox + botón side by side */
.emp-bottom-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 4px;
}

.emp-check-label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  flex: 1;
}

.emp-checkbox {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.emp-check-custom {
  width: 22px;
  height: 22px;
  border: 2px solid #ccc;
  border-radius: 6px;
  background: #e8e8e8;
  flex-shrink: 0;
  margin-top: 1px;
  transition: border-color 0.18s, background 0.18s;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.emp-checkbox:checked + .emp-check-custom {
  background: #88CDD3;
  border-color: #88CDD3;
}
.emp-checkbox:checked + .emp-check-custom::after {
  content: '✓';
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.emp-checkbox:focus + .emp-check-custom {
  box-shadow: 0 0 0 3px rgba(136,205,211,0.3);
}

.emp-check-text {
  font-size: 13px;
  color: #555;
  line-height: 1.45;
}
.emp-check-text a {
  color: #111;
  font-weight: 600;
  text-decoration: none;
}
.emp-check-text a:hover { text-decoration: underline; }


/* ──────────────────────────────────────────────
   BOTÓN ENVIAR
────────────────────────────────────────────── */
.emp-actions {
  margin-top: 0;
  display: flex;
  justify-content: flex-end;
}

.emp-btn-enviar {
  background: #88CDD3;
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 44px;
  font-size: 17px;
  font-weight: 700;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: background 0.18s, transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: none;
  white-space: nowrap;
}
.emp-btn-enviar:hover:not(:disabled) {
  background: #6ab8bf;
  transform: translateY(-1px);
}
.emp-btn-enviar:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

/* Spinner */
.emp-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: empSpin 0.7s linear infinite;
  display: inline-block;
}
@keyframes empSpin { to { transform: rotate(360deg); } }

/* Error global */
.emp-form-error {
  margin-top: 10px;
  background: #fff2f3;
  border: 1px solid #f5b8bb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c0000a;
  font-weight: 600;
}


/* ──────────────────────────────────────────────
   PASO 2 – ÉXITO — limpio, sin gradiente
────────────────────────────────────────────── */
#empSuccessStep {
  padding: 4px 28px 40px;
}

.emp-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  gap: 0;
}

/* Ocultar el emoji grande */
.emp-success-icon { display: none; }

.emp-success-title { display: none; }

.emp-success-msg {
  font-size: 16px;
  color: #333;
  line-height: 1.65;
  font-weight: 400;
  max-width: 100%;
}

/* Ocultar el botón "Cerrar" en la pantalla de éxito */
.emp-btn-cerrar { display: none; }


/* ──────────────────────────────────────────────
   RESPONSIVE MÓVIL
────────────────────────────────────────────── */
@media (max-width: 520px) {
  .emp-card { border-radius: 18px; }
  .emp-header { padding: 22px 20px 14px; }
  .emp-title  { font-size: 22px; }
  .emp-close  { width: 38px; height: 38px; border-radius: 9px; }
  .emp-close::after { font-size: 17px; }
  #empFormStep  { padding: 4px 20px 26px; }
  #empSuccessStep { padding: 4px 20px 32px; }
  .emp-input  { font-size: 14px; padding: 12px 15px; }
  .emp-btn-enviar { padding: 13px 30px; font-size: 16px; }
  .emp-bottom-row { flex-direction: column; align-items: flex-start; gap: 12px; }
  .emp-actions { width: 100%; }
  .emp-btn-enviar { width: 100%; justify-content: center; }
}