:root {
  --primary: #0f172a;
  --primary-main: #3b82f6;
  --primary-hover: #2563eb;
  --secondary: #64748b;
  --bg-body: #f1f5f9;
  --bg-card: #ffffff;
  --text-main: #0f172a;
  --text-muted: #64748b;
  --accent: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --border: #e2e8f0;
  --glass: rgba(255, 255, 255, 0.03);
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
  --shadow-lg: 0 20px 25px -5px rgb(0 0 0 / 0.1), 0 8px 10px -6px rgb(0 0 0 / 0.1);
}
/* ------------------------------------------------------------- */
.entrada {
  opacity: 0;
  max-height: auto;
  overflow: hidden;
  animation-name: animacion;
  animation-duration: 1s;
  opacity: 1;
}

@keyframes animacion {
  0% {
    opacity: 0;
  }
  20% {
    opacity: 0.2;
  }
  40% {
    opacity: 0.4;
  }
  60% {
    opacity: 0.6;
  }
  80% {
    opacity: 0.8;
  }
  100% {
    opacity: 1;
  }
}
/* ------------------------------------------------------------- */

body {
  background: var(--bg-body);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  color: var(--text-main);
}
.color-blanco {
  color: #ffffff;
}

.modal-ku {
  width: 750px;
  margin: auto;
}
.cp {
  background: var(--main-color-orange);
}
/* ------------------------vista 1-------------------------------- */

.img-encajada {
  width: 100%;
}
.cuadro-inicio-sesion {
  background: white;
  border: 1px solid var(--main-color);
  border-radius: 7px;
  padding-bottom: 15px;
}
.pag1 {
  background: #ececec;
}
.texto-label {
  color: black;
  font-weight: bold;
  font-size: 22px;
  margin-top: 20px;
  display: block;
}
.btn-iniciosesion {
  margin-top: 35px;
  font-size: 20px;
  background: var(--main-color);
  color: var(--main-color-light);
  border-radius: 7px;
}
.btn-iniciosesion:hover {
  background: var(--main-color-orange);
  color: var(--main-color-light);
}
.nara {
  color: var(--main-color-orange);
}
/* -------------------vista 2--------------------------------------- */

.baner-top {
  background: var(--primary);
  height: 70px;
  box-shadow: var(--shadow);
  display: flex;
  align-items: center;
  padding: 0 20px;
}

.titulo-baner {
  color: white;
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.barra-lateral {
  background: var(--primary);
  min-height: calc(100vh - 70px);
  padding: 24px 0;
  border-right: 1px solid rgba(255, 255, 255, 0.05);
}

.items-barra {
  background: transparent;
  border: none;
  margin-bottom: 8px;
}

.items {
  padding: 14px 24px;
  border-radius: 12px;
  margin: 0 12px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  color: rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  font-weight: 500;
}

.items:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #fff;
  cursor: pointer;
}

.items.active {
  background: var(--primary-main);
  color: white;
  box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3);
}

.items i {
  font-size: 1.1rem;
  width: 24px;
}

.items b {
  font-weight: 500;
  margin-left: 4px;
}

.card-body {
  background: rgba(0, 0, 0, 0.05);
  padding: 8px 0;
}

.titulo-sub-items {
  padding: 10px 20px 10px 40px;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: all 0.2s ease;
}

.titulo-sub-items:hover {
  background: rgba(255, 255, 255, 0.05);
  color: white;
  cursor: pointer;
}
.titulo-sub-items:focus {
  background: var(--main-color-orange);
  cursor: pointer;
}
.img_galeria {
  width: 150px;
}
.mensajesatc {
  background: green;
}
.contenedor-img-datos {
  position: relative;
  transition: all 500ms ease-out;
}
.capa-editar {
  position: absolute;
  border-radius: 20px;
  top: 0;
  left: 0;
  height: 100%;
  width: 100%;
  padding-top: 90px;
  font-size: 40px;
  color: white;
  font-weight: bold;
  background: rgba(251, 76, 4, 0.8);
  transition: all 500ms ease-out;
  text-align: center;
  opacity: 0;
  visibility: hidden;
}
.capa-editarfotoperfil {
  position: absolute;
  border-radius: 300px;
  top: 0;
  left: 8;
  height: 200px;
  width: 200px;
  padding-top: 80px;
  font-size: 40px;
  color: white;
  font-weight: bold;
  background: rgba(251, 76, 4, 0.8);
  transition: all 500ms ease-out;
  text-align: center;
  opacity: 0;
  visibility: hidden;
}
.capa-editar:hover {
  color: white;
}
.capa-editarfotoperfil:hover {
  color: white;
}
.contenedor-img-datos:hover > .capa-editar {
  opacity: 1;
  visibility: visible;
}

.contenedor-img-datos:hover > .capa-editarfotoperfil {
  opacity: 1;
  visibility: visible;
}
.foto-perfil {
  width: 200px;
  height: 200px;
  border-radius: 250px;
  box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.5);
  border: 8px solid var(--main-color-orange);
}
.nombre-perfil {
  font-size: 30px;
}
.ico-editar-enperfil {
  color: var(--main-color-orange);
}
.ico-editar-enperfil:hover {
  color: var(--main-color-orange);
  text-decoration: none;
}
.datos-contacto {
  font-size: 24px;
}
.img-encajada-contactos {
  width: 150px;
  border-radius: 300px;
  box-shadow: 0px 15px 10px rgba(0, 0, 0, 0.5);
}
.iconoshipen {
  font-size: 40px;
  align-items: center;
  align-content: center;
  text-align: center;
  margin-top: 30px;
  margin-left: 90px;
  color: var(--main-color-orange);
}
.iconoshipen:hover {
  color: var(--main-color);
}
.img_elimina:hover {
  cursor: pointer;
}
/* Modern Card and Table Styles */
.caja-noticia,
.caja-tiendas {
  background: var(--bg-card);
  border-radius: 12px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(0, 0, 0, 0.05);
  padding: 24px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.caja-noticia:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.title_noticia {
  color: var(--text-main);
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.table {
  background: var(--bg-card);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: none;
}

.cabecera {
  background: #f1f5f9;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.05em;
}

.table th,
.table td {
  padding: 16px;
  vertical-align: middle;
  border-top: 1px solid #f1f5f9;
}

.link-botonera {
  height: 36px;
  width: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: var(--primary-main);
  transition: all 0.2s ease;
  margin: 4px;
}

.link-botonera:hover {
  background: var(--primary-main);
  color: white;
  text-decoration: none;
}

.link-botonera .fa-trash-o {
  color: var(--danger);
}

.link-botonera:hover .fa-trash-o {
  color: white;
}

/* Modals */
.modal-content {
  border: none;
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  border-bottom: 1px solid #f1f5f9;
  padding: 20px 24px;
}

.modal-title {
  font-weight: 700;
  color: var(--text-main);
}

.modal-body {
  padding: 24px;
}

.label-modal {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.input-formu {
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.input-formu:focus {
  outline: none;
  border-color: var(--primary-main);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.btn-amarillo {
  background: var(--primary-main);
  color: white;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 8px;
  transition: background 0.2s ease;
  border: none;
}

.btn-amarillo:hover {
  background: var(--primary-hover);
  color: white;
  text-decoration: none;
}

.vacio {
  border: 2px solid var(--danger) !important;
}

.oculto {
  display: none;
}
