/* ===== Admin Button & Overlay Styles ===== */

/* Discreet Floating Admin Button: Hidden by default, appears on hover */
.admin-trigger-btn {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 65;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(19, 18, 17, 0.92);
  color: #ffde00;
  border: 1px solid rgba(255, 222, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  cursor: pointer;
  opacity: 0;
  pointer-events: auto;
  transform: scale(0.85);
  transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.admin-trigger-btn.revealed {
  opacity: 1;
  transform: scale(1);
}

.admin-trigger-btn:hover {
  transform: scale(1.1);
  background: #000;
  color: #ffde00;
  box-shadow: 0 6px 24px rgba(255, 222, 0, 0.4);
}

.admin-trigger-btn svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.admin-trigger-tooltip {
  position: absolute;
  right: 56px;
  background: var(--ink);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 6px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateX(6px);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.admin-trigger-btn:hover .admin-trigger-tooltip {
  opacity: 1;
  transform: translateX(0);
}

/* Modal Overlay - Pantalla Completa */
.admin-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(14, 13, 12, 0.88);
  backdrop-filter: blur(14px);
  display: flex;
  align-items: stretch;
  justify-content: stretch;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
  padding: 0;
  box-sizing: border-box;
}

.admin-overlay.open {
  opacity: 1;
  visibility: visible;
}

/* Modal Container - Pantalla Completa */
.admin-modal {
  background: #fcfbf9;
  color: #1a1918;
  width: 100vw;
  height: 100vh;
  max-width: 100vw;
  max-height: 100vh;
  border-radius: 0;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
  transform: none;
  border: none;
}

.admin-overlay.open .admin-modal {
  transform: none;
}

/* Header */
.admin-header {
  padding: 16px 28px;
  background: #f4f0e6;
  border-bottom: 1px solid rgba(19, 18, 17, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
  z-index: 30;
  position: relative;
}

.admin-title-area {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-status-badge {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  background: #dcfce7;
  color: #166534;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.admin-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 14px;
  font-size: 0.82rem;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-btn-primary {
  background: #131211;
  color: #ffde00;
}
.admin-btn-primary:hover {
  background: #2a2926;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.admin-btn-secondary {
  background: #eae5d7;
  color: #131211;
}
.admin-btn-secondary:hover {
  background: #dfd8c5;
}

.admin-btn-danger {
  background: #fee2e2;
  color: #991b1b;
}
.admin-btn-danger:hover {
  background: #fecaca;
}

.admin-btn-close {
  background: transparent;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  transition: background 0.2s ease, color 0.2s ease;
}
.admin-btn-close:hover {
  background: rgba(0,0,0,0.06);
  color: #000;
}

/* Login Card inside Modal */
.admin-login-box {
  padding: 48px 24px;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  width: 100%;
}

.admin-login-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: #f4f0e6;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  color: #131211;
}

.admin-login-box h3 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  font-weight: 700;
}

.admin-login-box p {
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 24px;
}

.admin-input-group {
  margin-bottom: 16px;
  text-align: left;
}

.admin-input-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 6px;
  color: #333;
}

.admin-input {
  width: 100%;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid #d5cfc0;
  font-size: 0.9rem;
  background: #fff;
  color: #131211;
  box-sizing: border-box;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.admin-input:focus {
  outline: none;
  border-color: #131211;
  box-shadow: 0 0 0 3px rgba(19, 18, 17, 0.12);
}

.admin-helper {
  font-size: 0.75rem;
  color: #777;
  margin-top: 6px;
  line-height: 1.4;
}

/* Tabs con logotipos reales de la web (sin solapamiento) */
.admin-nav-tabs {
  display: flex;
  background: #ede8dc;
  border-bottom: 2px solid rgba(19, 18, 17, 0.12);
  padding: 0 24px;
  overflow-x: auto;
  gap: 8px;
  flex-shrink: 0;
  z-index: 25;
  position: relative;
}

.admin-tab {
  padding: 12px 18px;
  font-size: 0.88rem;
  font-weight: 600;
  color: #4a4843;
  background: none;
  border: none;
  border-bottom: 3px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 9px;
  transition: all 0.2s ease;
}

.admin-tab:hover {
  color: #131211;
  background: rgba(0, 0, 0, 0.03);
}

.admin-tab.active {
  color: #131211;
  border-bottom-color: #131211;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.45);
}

/* Logotipo dentro de cada pestaña */
.admin-tab-logo {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid rgba(19, 18, 17, 0.25);
  background: #e2ddd0;
  flex-shrink: 0;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-tab.active .admin-tab-logo {
  border-color: #131211;
  transform: scale(1.1);
  box-shadow: 0 0 0 2px rgba(255, 222, 0, 0.7);
}

.admin-tab-svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
  flex-shrink: 0;
}

.admin-tab-count {
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  font-weight: 700;
}

.admin-tab.active .admin-tab-count {
  background: #131211;
  color: #ffde00;
}

/* Logos Tab Grid & Cards */
.admin-logos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 22px;
  margin-top: 14px;
}

.admin-logo-card {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(19, 18, 17, 0.1);
  padding: 22px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-logo-card:hover {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.admin-logo-preview-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.admin-logo-img-frame {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  overflow: hidden;
  border: 2.5px solid #ffde00;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.14);
  flex-shrink: 0;
  background: #f0ebe0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-logo-img-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.admin-logo-info {
  flex: 1;
  min-width: 0;
}

.admin-logo-title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: 4px;
  color: #131211;
}

.admin-logo-desc {
  font-size: 0.8rem;
  color: #666;
  line-height: 1.35;
  margin-bottom: 6px;
}

.admin-logo-path {
  font-size: 0.73rem;
  color: #555;
  font-family: monospace;
  background: #f5f2ea;
  padding: 3px 7px;
  border-radius: 4px;
  display: inline-block;
  word-break: break-all;
  border: 1px solid rgba(19, 18, 17, 0.06);
}

.admin-logo-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: auto;
  border-top: 1px solid rgba(19, 18, 17, 0.07);
  padding-top: 14px;
}

.admin-logo-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-tab.active .admin-tab-count {
  background: #131211;
  color: #ffde00;
}

/* Content Area */
.admin-body {
  padding: 24px;
  overflow-y: auto;
  flex: 1;
}

/* Card Section */
.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 20px;
  border: 1px solid rgba(19, 18, 17, 0.08);
  margin-bottom: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.admin-card-title {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Upload Dropzone */
.admin-dropzone {
  border: 2px dashed #cfc9bb;
  border-radius: 10px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  background: #fbf9f4;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.admin-dropzone:hover,
.admin-dropzone.dragover {
  border-color: #131211;
  background: #f4efdf;
}

.admin-dropzone-icon {
  width: 40px;
  height: 40px;
  margin: 0 auto 10px;
  color: #666;
}

.admin-file-preview {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  background: #fff;
  border-radius: 8px;
  border: 1px solid #e0dacb;
}

.admin-file-preview img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 6px;
}

/* YouTube Video Live Preview */
.admin-yt-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px;
  background: #f8f6f0;
  border-radius: 8px;
  border: 1px solid #e2ddd0;
  margin-top: 12px;
}

.admin-yt-preview img {
  width: 90px;
  height: 52px;
  object-fit: cover;
  border-radius: 6px;
}

/* Items Grid */
.admin-items-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.admin-item-card {
  background: #fff;
  border: 1px solid #e5dfd2;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.admin-item-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.08);
}

.admin-item-media {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #eee;
  overflow: hidden;
}

.admin-item-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.admin-item-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(19, 18, 17, 0.75);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  backdrop-filter: blur(4px);
}

.admin-item-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-item-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #131211;
  margin-bottom: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-sub {
  font-size: 0.72rem;
  color: #777;
  margin-bottom: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.admin-item-controls {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid #f0ebe0;
  gap: 4px;
}

.admin-item-btn {
  background: none;
  border: 1px solid #dfd9cb;
  border-radius: 6px;
  padding: 4px 6px;
  font-size: 0.75rem;
  cursor: pointer;
  color: #444;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.admin-item-btn:hover:not(:disabled) {
  background: #131211;
  color: #fff;
  border-color: #131211;
}

.admin-item-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.admin-item-btn.btn-delete:hover {
  background: #dc2626;
  color: #fff;
  border-color: #dc2626;
}

/* Notification Toast */
.admin-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  z-index: 2000;
  padding: 12px 18px;
  border-radius: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.admin-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.admin-toast-success {
  background: #131211;
  color: #ffde00;
  border-left: 4px solid #22c55e;
}

.admin-toast-error {
  background: #7f1d1d;
  color: #fef2f2;
  border-left: 4px solid #ef4444;
}

/* Git Summary box */
.admin-git-box {
  background: #1c1b18;
  color: #e5e0d3;
  padding: 16px;
  border-radius: 10px;
  font-family: monospace;
  font-size: 0.85rem;
  line-height: 1.6;
  margin-top: 12px;
  overflow-x: auto;
}

.admin-git-box code {
  color: #ffde00;
}

/* Sub-modals (Change password, Edit title, Delete confirm) */
.admin-submodal {
  position: absolute;
  inset: 0;
  z-index: 1050;
  background: rgba(19, 18, 17, 0.75);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.admin-submodal.open {
  opacity: 1;
  visibility: visible;
}

.admin-submodal-box {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  border: 1px solid rgba(19, 18, 17, 0.1);
  transform: translateY(12px) scale(0.96);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.admin-submodal.open .admin-submodal-box {
  transform: translateY(0) scale(1);
}

.admin-submodal-header {
  padding: 16px 20px;
  background: #f4f0e6;
  border-bottom: 1px solid rgba(19, 18, 17, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.admin-submodal-header h4 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
}

.admin-submodal-body {
  padding: 20px;
}

.admin-submodal-footer {
  padding: 14px 20px;
  background: #faf8f5;
  border-top: 1px solid rgba(19, 18, 17, 0.08);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.admin-pwd-field {
  position: relative;
  display: flex;
  align-items: center;
}

.admin-pwd-toggle {
  position: absolute;
  right: 10px;
  background: none;
  border: none;
  cursor: pointer;
  color: #777;
  font-size: 0.9rem;
  padding: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-pwd-toggle:hover {
  color: #131211;
}

/* Responsive y Mobile Friendliness */
/* Interruptor Switch para Opciones de Interfaz */
.admin-switch-card {
  background: #fdfbf7;
  border-left: 4px solid #131211;
  margin-bottom: 20px;
}

.admin-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.admin-switch-text {
  flex: 1 1 300px;
}

.admin-switch-title {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  color: #131211;
  margin-bottom: 4px;
}

.admin-switch-desc {
  font-size: 0.82rem;
  color: #666;
  margin: 0;
  line-height: 1.4;
}

.admin-switch-control {
  display: flex;
  align-items: center;
  gap: 12px;
}

.admin-switch-label {
  position: relative;
  display: inline-block;
  width: 52px;
  height: 30px;
  flex-shrink: 0;
}

.admin-switch-label input {
  opacity: 0;
  width: 0;
  height: 0;
}

.admin-switch-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #d1cbbd;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 34px;
}

.admin-switch-slider:before {
  position: absolute;
  content: "";
  height: 22px;
  width: 22px;
  left: 4px;
  bottom: 4px;
  background-color: white;
  transition: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0,0,0,0.25);
}

.admin-switch-label input:checked + .admin-switch-slider {
  background-color: #131211;
}

.admin-switch-label input:checked + .admin-switch-slider:before {
  transform: translateX(22px);
  background-color: #ffde00;
}

.admin-switch-status {
  font-size: 0.8rem;
  font-weight: 600;
  color: #444;
  min-width: 130px;
}

/* Badge de Dimensiones Máximas de Contenedor */
.admin-dim-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #f0ebd9;
  border: 1px solid rgba(19, 18, 17, 0.12);
  color: #2b2823;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 0.74rem;
  font-weight: 600;
  margin-top: 5px;
  letter-spacing: 0.01em;
}

.admin-dim-badge strong {
  color: #000;
  font-weight: 700;
}

/* Modal de Repositorio de Iconos */
.admin-repo-overlay {
  position: fixed;
  inset: 0;
  background: rgba(14, 13, 12, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.admin-repo-modal {
  background: #fdfbf7;
  width: 100%;
  max-width: 740px;
  max-height: 90vh;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  border: 1px solid rgba(19, 18, 17, 0.15);
}

.admin-repo-header {
  padding: 16px 20px;
  background: #f4efe2;
  border-bottom: 1px solid rgba(19, 18, 17, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.admin-repo-header h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-repo-body {
  padding: 16px 20px;
  overflow-y: auto;
  flex: 1;
}

.admin-repo-filters {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-repo-categories {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.admin-repo-cat-btn {
  background: #eae4d5;
  border: none;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #333;
  cursor: pointer;
  transition: all 0.2s ease;
}

.admin-repo-cat-btn.active,
.admin-repo-cat-btn:hover {
  background: #131211;
  color: #ffde00;
}

.admin-repo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(95px, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
}

.admin-repo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 12px 6px;
  background: #fff;
  border: 1px solid #dfd9cb;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-align: center;
  gap: 8px;
}

.admin-repo-item:hover {
  border-color: #131211;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.admin-repo-item.selected {
  border-color: #131211;
  background: #fbf5e2;
  box-shadow: 0 0 0 2px #ffde00;
}

.admin-repo-icon-wrap {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #131211;
}

.admin-repo-icon-wrap svg {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.admin-repo-item-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #444;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 85px;
}

.admin-repo-custom-box {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed rgba(19, 18, 17, 0.15);
}

.admin-repo-footer {
  padding: 12px 20px;
  background: #f4efe2;
  border-top: 1px solid rgba(19, 18, 17, 0.1);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

/* Responsive & Mobile Friendliness para el Administrador */
@media (max-width: 768px) {
  .admin-modal {
    width: 100vw !important;
    height: 100dvh !important;
    max-width: 100vw !important;
    max-height: 100dvh !important;
    border-radius: 0 !important;
  }

  .admin-header {
    padding: 10px 14px;
    gap: 8px;
  }

  .admin-title-area {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .admin-title {
    font-size: 0.95rem;
  }

  .admin-header-actions {
    width: 100%;
    display: flex;
    justify-content: space-between;
    gap: 6px;
  }

  .admin-header-actions .admin-btn {
    flex: 1;
    padding: 9px 8px;
    font-size: 0.76rem;
    text-align: center;
    min-height: 40px;
  }

  .admin-header-actions .admin-btn-close {
    width: 38px;
    height: 38px;
    flex-shrink: 0;
  }

  /* Pestañas de navegación horizontal con scroll fluido */
  .admin-nav-tabs {
    padding: 4px 10px;
    gap: 6px;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }

  .admin-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .admin-tab {
    padding: 10px 14px;
    font-size: 0.82rem;
    scroll-snap-align: start;
    min-height: 44px;
  }

  .admin-tab-logo {
    width: 22px;
    height: 22px;
  }

  .admin-body {
    padding: 14px 12px;
    -webkit-overflow-scrolling: touch;
  }

  /* Tarjetas de elementos gráficos e imágenes */
  .admin-logos-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .admin-logo-preview-row {
    flex-direction: row;
    align-items: flex-start;
  }

  .admin-input {
    font-size: 16px !important; /* Previene zoom involuntario en iOS */
  }

  .admin-btn {
    min-height: 42px; /* Área táctil accesible */
  }

  .admin-switch-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .admin-switch-control {
    width: 100%;
    justify-content: space-between;
  }

  .admin-trigger-btn {
    bottom: 74px; /* Evita tapar o colisionar con la píldora inferior */
    right: 14px;
    width: 44px;
    height: 44px;
  }

  .admin-repo-modal {
    max-height: 94vh;
    border-radius: 8px;
  }

  .admin-repo-grid {
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
  }
}

@media (max-width: 480px) {
  .admin-header-actions {
    flex-wrap: wrap;
  }

  .admin-header-actions .admin-btn {
    flex: 1 1 45%;
  }

  .admin-logo-preview-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .admin-logo-img-frame {
    margin: 0 auto 10px;
  }
}
