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

/* ──────────────────────────────────────────────
   BOTÓN HERO "SOY EMPRESA"
   (esquina inferior derecha del hero,
    justo ENCIMA del botón "¡Dona ahora!")
────────────────────────────────────────────── */
.hero-empresa-btn {
  position: absolute;
  bottom: 104px;            /* encima del btn dona (≈60px) + margen */
  right: 40px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 2px solid rgba(255,255,255,0.6);
  border-radius: 14px;
  padding: 10px 18px 10px 14px;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(0,0,0,0.25);
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
  z-index: 10;
  font-family: var(--font-poppins);
  text-align: left;
}
.hero-empresa-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 28px rgba(0,0,0,0.35);
  background: #fff;
}

.empresa-btn-icon {
  font-size: 22px;
  line-height: 1;
  flex-shrink: 0;
}

.empresa-btn-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.empresa-btn-main {
  font-size: 15px;
  font-weight: 700;
  color: #0066b1;
  line-height: 1.1;
  white-space: nowrap;
}
.empresa-btn-sub {
  font-size: 11px;
  font-weight: 500;
  color: #888;
  white-space: nowrap;
}

.empresa-btn-arrow {
  font-size: 20px;
  font-weight: 700;
  color: #4da6d4;
  margin-left: 2px;
  line-height: 1;
}

/* Responsive */
@media (max-width: 820px) {
  .hero-empresa-btn {
    bottom: 76px;
    right: 16px;
    padding: 8px 14px 8px 10px;
    border-radius: 10px;
  }
  .empresa-btn-main { font-size: 13px; }
  .empresa-btn-sub  { font-size: 10px; }
  .empresa-btn-icon { font-size: 18px; }
}
@media (max-width: 480px) {
  .hero-empresa-btn {
    bottom: 66px;
    right: 12px;
    padding: 7px 12px 7px 9px;
  }
  .empresa-btn-main { font-size: 12px; }
  .empresa-btn-sub  { font-size: 9px; }
}


/* ──────────────────────────────────────────────
   OVERLAY DEL MODAL
────────────────────────────────────────────── */
.emp-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 30, 60, 0.60);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  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: 480px;
  box-shadow:
    0 0 0 1px rgba(0, 102, 177, 0.10),
    0 24px 64px rgba(0, 30, 60, 0.28);
  overflow: hidden;
  animation: empSlideIn 0.32s cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: var(--font-poppins, 'Poppins', sans-serif);
}

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


/* ──────────────────────────────────────────────
   CABECERA DEL MODAL
────────────────────────────────────────────── */
.emp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, #0066b1 0%, #4da6d4 100%);
  border-bottom: 3px solid rgba(255,255,255,0.15);
}

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

.emp-icon-wrap {
  font-size: 28px;
  background: rgba(255,255,255,0.2);
  border-radius: 12px;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.emp-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  line-height: 1.1;
  letter-spacing: -0.3px;
}
.emp-subtitle {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  font-weight: 500;
  margin-top: 2px;
}

.emp-close {
  background: rgba(255,255,255,0.18);
  border: none;
  color: #fff;
  font-size: 16px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.18s;
  flex-shrink: 0;
}
.emp-close:hover { background: rgba(255,255,255,0.32); }


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

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

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

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

.emp-label {
  font-size: 13px;
  font-weight: 700;
  color: #222;
  letter-spacing: 0.2px;
}

.emp-input {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid #e8edf2;
  border-radius: 12px;
  font-size: 15px;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  color: #222;
  background: #f7f9fc;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
  outline: none;
}
.emp-input::placeholder { color: #aab0bb; }
.emp-input:focus {
  border-color: #4da6d4;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(77, 166, 212, 0.14);
}
.emp-input.emp-input-error {
  border-color: #dc0d15;
  box-shadow: 0 0 0 4px rgba(220, 13, 21, 0.10);
}

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


/* ──────────────────────────────────────────────
   CHECKBOX POLÍTICA
────────────────────────────────────────────── */
.emp-check-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

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

.emp-check-custom {
  width: 20px;
  height: 20px;
  border: 2px solid #c5cdd8;
  border-radius: 6px;
  background: #f7f9fc;
  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: #0066b1;
  border-color: #0066b1;
}
.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(77,166,212,0.25);
}

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


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

.emp-btn-enviar {
  background: linear-gradient(135deg, #4da6d4 0%, #0066b1 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 13px 36px;
  font-size: 16px;
  font-weight: 700;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.18s, box-shadow 0.18s, opacity 0.18s;
  box-shadow: 0 4px 18px rgba(0, 102, 177, 0.30);
}
.emp-btn-enviar:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0, 102, 177, 0.40);
}
.emp-btn-enviar:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

/* Spinner */
.emp-spinner {
  width: 18px;
  height: 18px;
  border: 3px solid rgba(255,255,255,0.35);
  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: 8px;
  background: #fff2f3;
  border: 1px solid #f5b8bb;
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 13px;
  color: #c0000a;
  font-weight: 600;
}


/* ──────────────────────────────────────────────
   PASO 2 – ÉXITO
────────────────────────────────────────────── */
#empSuccessStep {
  padding: 36px 28px 32px;
}

.emp-success-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

.emp-success-icon {
  font-size: 52px;
  animation: empBounce 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes empBounce {
  from { transform: scale(0.4); opacity: 0; }
  to   { transform: scale(1);   opacity: 1; }
}

.emp-success-title {
  font-size: 19px;
  font-weight: 700;
  color: #0066b1;
  line-height: 1.3;
}

.emp-success-msg {
  font-size: 15px;
  color: #444;
  line-height: 1.6;
  max-width: 340px;
}

.emp-btn-cerrar {
  background: linear-gradient(135deg, #4da6d4 0%, #0066b1 100%);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 12px 40px;
  font-size: 15px;
  font-weight: 700;
  font-family: var(--font-poppins, 'Poppins', sans-serif);
  cursor: pointer;
  margin-top: 8px;
  transition: transform 0.18s, box-shadow 0.18s;
  box-shadow: 0 4px 16px rgba(0,102,177,0.25);
}
.emp-btn-cerrar:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,102,177,0.35);
}


/* ──────────────────────────────────────────────
   RESPONSIVE MÓVIL
────────────────────────────────────────────── */
@media (max-width: 520px) {
  .emp-card { border-radius: 18px; }
  .emp-header { padding: 18px 18px 14px; }
  .emp-title  { font-size: 19px; }
  .emp-icon-wrap { width: 44px; height: 44px; font-size: 24px; }
  #empFormStep  { padding: 18px 18px 22px; }
  #empSuccessStep { padding: 28px 18px 24px; }
  .emp-input  { font-size: 14px; padding: 11px 14px; }
  .emp-btn-enviar { padding: 12px 28px; font-size: 15px; }
  .emp-success-title { font-size: 17px; }
  .emp-success-icon  { font-size: 44px; }
}