/* =========================================
OVERLAY
========================================= */

.empresa-red-social-drawer-overlay {
  position: fixed;

  inset: 0;

  background: rgba(15, 23, 42, 0.45);

  backdrop-filter: blur(4px);

  opacity: 0;

  visibility: hidden;

  transition: all 0.25s ease;

  z-index: 4000;
}

.empresa-red-social-drawer-overlay.active {
  opacity: 1;

  visibility: visible;
}

/* =========================================
DRAWER
========================================= */

.empresa-red-social-drawer {
  position: fixed;

  top: 0;

  right: -620px;

  width: 620px;

  max-width: 100%;

  height: 100vh;

  background: #f8fafc;

  display: flex;

  flex-direction: column;

  transition: right 0.28s ease;

  z-index: 4010;

  box-shadow: -10px 0 40px rgba(15, 23, 42, 0.15);
}

.empresa-red-social-drawer.active {
  right: 0;
}

/* =========================================
HEADER
========================================= */

.empresa-red-social-drawer-header {
  flex-shrink: 0;

  display: flex;

  align-items: flex-start;

  justify-content: space-between;

  gap: 18px;

  padding: 24px;

  background: #fff;

  border-bottom: 1px solid #e2e8f0;
}

.empresa-red-social-drawer-title {
  font-size: 24px;

  font-weight: 800;

  color: #0f172a;

  line-height: 1.1;
}

.empresa-red-social-drawer-subtitle {
  margin-top: 6px;

  font-size: 14px;

  color: #64748b;

  line-height: 1.5;
}

.empresa-red-social-drawer-close {
  width: 42px;

  height: 42px;

  border: none;

  border-radius: 14px;

  background: #f1f5f9;

  color: #475569;

  cursor: pointer;

  transition: all 0.2s ease;

  flex-shrink: 0;
}

.empresa-red-social-drawer-close:hover {
  background: #e2e8f0;

  color: #0f172a;
}

/* =========================================
BODY
========================================= */

.empresa-red-social-drawer-body {
  flex: 1;

  min-height: 0;

  overflow-y: auto;

  display: flex;

  flex-direction: column;

  gap: 20px;

  padding: 22px;
}

/* =========================================
FOOTER
========================================= */

.empresa-red-social-drawer-footer {
  flex-shrink: 0;

  display: flex;

  align-items: center;

  justify-content: flex-end;

  gap: 14px;

  padding: 20px 24px;

  background: #fff;

  border-top: 1px solid #e2e8f0;
}

/* =========================================
COLLAPSE CARD
========================================= */

.empresa-red-social-collapse-card {
  background: #fff;

  border-radius: 22px;

  border: 1px solid #e2e8f0;

  overflow: hidden;

  flex-shrink: 0;
}

/* =========================================
COLLAPSE HEADER
========================================= */

.empresa-red-social-collapse-header {
  display: flex;

  align-items: center;

  justify-content: space-between;

  gap: 14px;

  padding: 18px 22px;

  cursor: pointer;

  user-select: none;

  transition: background 0.2s ease;
}

.empresa-red-social-collapse-header:hover {
  background: #f8fafc;
}

.empresa-red-social-collapse-title {
  font-size: 15px;

  font-weight: 800;

  color: #0f172a;
}

.empresa-red-social-collapse-icon {
  transition: transform 0.25s ease;

  color: #64748b;
}

.empresa-red-social-collapse-header.active .empresa-red-social-collapse-icon {
  transform: rotate(180deg);
}

/* =========================================
COLLAPSE BODY
========================================= */

.empresa-red-social-collapse-body {
  display: none;

  border-top: 1px solid #edf2f7;
}

.empresa-red-social-collapse-body.active {
  display: block;
}

/* =========================================
FORM GRID
========================================= */

.empresa-red-social-form-grid {
  display: grid;

  grid-template-columns: repeat(2, minmax(0, 1fr));

  gap: 18px;

  padding: 22px;
}

/* =========================================
FIELDS
========================================= */

.empresa-red-social-field {
  display: flex;

  flex-direction: column;

  gap: 10px;

  min-width: 0;
}

.empresa-red-social-field-full {
  grid-column: 1 / -1;
}

/* =========================================
LABEL
========================================= */

.empresa-red-social-label {
  font-size: 13px;

  font-weight: 700;

  color: #334155;
}

/* =========================================
INPUT
========================================= */

.empresa-red-social-input {
  width: 100%;

  height: 48px;

  border-radius: 14px;

  border: 1px solid #cbd5e1;

  background: #fff;

  padding: 0 16px;

  font-size: 14px;

  color: #0f172a;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.empresa-red-social-input:focus {
  border-color: #6366f1;

  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* =========================================
TEXTAREA
========================================= */

.empresa-red-social-textarea {
  width: 100%;

  min-height: 110px;

  border-radius: 16px;

  border: 1px solid #cbd5e1;

  background: #fff;

  padding: 14px 16px;

  resize: vertical;

  font-size: 14px;

  line-height: 1.5;

  color: #0f172a;

  outline: none;

  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.empresa-red-social-textarea:focus {
  border-color: #6366f1;

  box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.12);
}

/* =========================================
SCROLLBAR
========================================= */

.empresa-red-social-drawer-body::-webkit-scrollbar {
  width: 10px;
}

.empresa-red-social-drawer-body::-webkit-scrollbar-track {
  background: transparent;
}

.empresa-red-social-drawer-body::-webkit-scrollbar-thumb {
  background: #cbd5e1;

  border-radius: 999px;
}

.empresa-red-social-drawer-body::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================
RESPONSIVE
========================================= */

@media (max-width: 768px) {
  .empresa-red-social-drawer {
    width: 100%;
  }

  .empresa-red-social-form-grid {
    grid-template-columns: 1fr;
  }

  .empresa-red-social-field-full {
    grid-column: auto;
  }

  .empresa-red-social-drawer-footer {
    flex-direction: column;
  }

  .empresa-red-social-drawer-footer button {
    width: 100%;
  }
}
