/* ==========================================================================
   AN Carta — Panel de gestión frontend (plantilla standalone)
   ========================================================================== */

.anc-panel-body {
	margin: 0;
	padding: 0;
	background: #F4F5F7;
	font-family: var(--anc-fuente-texto, system-ui, -apple-system, sans-serif);
	color: #222;
	-webkit-font-smoothing: antialiased;
}

.anc-panel-body * {
	box-sizing: border-box;
}

.anc-panel {
	display: flex;
	min-height: 100vh;
}

.anc-icon {
	flex: 0 0 auto;
	vertical-align: middle;
}

/* ------------------------------------------------------------- Sidebar */

.anc-side {
	width: 250px;
	flex: 0 0 250px;
	background: #1E2430;
	color: #C9CFDA;
	display: flex;
	flex-direction: column;
	position: sticky;
	top: 0;
	height: 100vh;
}

.anc-side__marca {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 20px 18px;
	border-bottom: 1px solid rgba(255, 255, 255, .08);
	color: #fff;
}

.anc-side__logo {
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 10px;
	background: var(--anc-acento, #E5397F);
	color: #fff;
}

.anc-side__nombre {
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
}

.anc-side__nav {
	flex: 1 1 auto;
	padding: 14px 10px;
	overflow-y: auto;
}

.anc-side__item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 11px 12px;
	margin-bottom: 3px;
	border-radius: 9px;
	color: #C9CFDA;
	text-decoration: none;
	font-size: 14px;
	transition: background .15s ease, color .15s ease;
}

.anc-side__item:hover {
	background: rgba(255, 255, 255, .07);
	color: #fff;
}

.anc-side__item.is-activo {
	background: var(--anc-acento, #E5397F);
	color: #fff;
}

.anc-side__badge {
	margin-left: auto;
	font-size: 10px;
	font-style: normal;
	background: rgba(255, 255, 255, .18);
	padding: 2px 7px;
	border-radius: 20px;
}

.anc-side__pie {
	padding: 14px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	display: flex;
	flex-direction: column;
	gap: 7px;
	font-size: 12.5px;
}

.anc-side__user {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #7E8899;
	margin-bottom: 4px;
}

.anc-side__mini {
	display: flex;
	align-items: center;
	gap: 7px;
	color: #C9CFDA;
	text-decoration: none;
}

.anc-side__mini:hover {
	color: #fff;
}

/* ---------------------------------------------------------------- Main */

.anc-main {
	flex: 1 1 auto;
	padding: 28px 32px 60px;
	max-width: 1100px;
	min-width: 0;
}

.anc-menu-movil {
	display: none;
	align-items: center;
	gap: 8px;
	margin-bottom: 16px;
	padding: 9px 14px;
	border: 1px solid #DCE0E6;
	border-radius: 9px;
	background: #fff;
	font-size: 14px;
	cursor: pointer;
}

.anc-cab {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	margin-bottom: 6px;
}

.anc-cab__titulo {
	margin: 0;
	font-family: var(--anc-fuente-titulos, inherit);
	font-size: 24px;
	font-weight: 700;
	color: #1E2430;
}

.anc-cab__acciones {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
}

.anc-sub {
	margin: 4px 0 20px;
	color: #6B7280;
	font-size: 13.5px;
}

/* -------------------------------------------------------------- Avisos */

.anc-aviso {
	display: flex;
	align-items: center;
	gap: 9px;
	padding: 12px 15px;
	border-radius: 10px;
	margin-bottom: 18px;
	font-size: 14px;
	background: #E7F7EE;
	color: #1B7A48;
	border: 1px solid #BCE8D1;
}

.anc-aviso--error {
	background: #FDECEA;
	color: #B3261E;
	border-color: #F5C6C2;
}

.anc-aviso--info {
	background: #EAF2FD;
	color: #1B5FA8;
	border-color: #C3DAF6;
}

/* ------------------------------------------------------------- Botones */

.anc-btn {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 10px 18px;
	border: 0;
	border-radius: 9px;
	background: var(--anc-acento, #E5397F);
	color: #fff !important;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none !important;
	cursor: pointer;
	transition: filter .15s ease, transform .15s ease;
	font-family: inherit;
}

.anc-btn:hover {
	filter: brightness(.9);
	transform: translateY(-1px);
}

.anc-btn--ghost {
	background: #fff;
	color: #3A4252 !important;
	border: 1px solid #DCE0E6;
}

.anc-btn--ghost:hover {
	background: #F7F8FA;
	filter: none;
}

/* -------------------------------------------------------------- Tablas */

.anc-tabla {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
	background: #fff;
	border: 1px solid #E4E7EC;
	border-radius: 12px;
	overflow: hidden;
}

.anc-fila {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border-bottom: 1px solid #EFF1F4;
	background: #fff;
}

.anc-fila:last-child {
	border-bottom: 0;
}

.anc-fila.is-oculto {
	background: #FAFAFB;
	opacity: .62;
}

.anc-fila__drag {
	color: #B7BDC7;
	cursor: grab;
	display: flex;
}

.anc-fila__main {
	flex: 1 1 auto;
	min-width: 0;
	display: flex;
	flex-direction: column;
	text-decoration: none;
	color: inherit;
}

.anc-fila__main strong {
	font-size: 14.5px;
	font-weight: 600;
	color: #1E2430;
}

.anc-fila__main em {
	font-style: normal;
	font-size: 12.5px;
	color: #8A93A0;
	margin-top: 2px;
}

.anc-fila__precio {
	display: flex;
	align-items: center;
	gap: 5px;
	flex: 0 0 auto;
}

.anc-fila__precio input {
	width: 88px;
	padding: 8px 10px;
	border: 1px solid #DCE0E6;
	border-radius: 8px;
	text-align: right;
	font-size: 14px;
	font-family: inherit;
}

.anc-fila__precio i {
	font-style: normal;
	color: #8A93A0;
	font-size: 13px;
}

.anc-fila__precio-nota {
	text-decoration: none;
	font-size: 11px;
	color: #8A93A0;
	white-space: nowrap;
}

.anc-fila__acciones {
	display: flex;
	gap: 4px;
	flex: 0 0 auto;
}

.anc-ico {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	border-radius: 8px;
	color: #5B6472;
	text-decoration: none;
	transition: background .15s ease, color .15s ease;
}

.anc-ico:hover {
	background: #F1F3F6;
	color: #1E2430;
}

.anc-ico--del:hover {
	background: #FDECEA;
	color: #B3261E;
}

.anc-tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 3px 9px;
	border-radius: 20px;
	font-size: 11.5px;
	background: #F1F3F6;
	color: #6B7280;
}

/* ------------------------------------------------- Pestañas de carta */

.anc-tabs {
	display: flex;
	gap: 6px;
	flex-wrap: wrap;
	margin: 0 0 18px;
	border-bottom: 1px solid #E4E7EC;
	padding-bottom: 10px;
}

.anc-tabs__item {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	padding: 8px 15px;
	border-radius: 9px;
	background: #fff;
	border: 1px solid #E4E7EC;
	color: #3A4252;
	text-decoration: none;
	font-size: 13.5px;
	font-weight: 600;
}

.anc-tabs__item em {
	font-style: normal;
	font-size: 11px;
	padding: 1px 7px;
	border-radius: 20px;
	background: #F1F3F6;
	color: #6B7280;
}

.anc-tabs__item.is-activo {
	background: var(--anc-acento, #E5397F);
	border-color: var(--anc-acento, #E5397F);
	color: #fff;
}

.anc-tabs__item.is-activo em {
	background: rgba(255, 255, 255, .25);
	color: #fff;
}

/* ------------------------------------------- Opciones de precio */

.anc-variantes {
	border-top: 1px solid #EFF1F4;
	padding-top: 16px;
	margin-bottom: 16px;
}

.anc-variantes__tit {
	display: block;
	margin-bottom: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #3A4252;
}

.anc-variante-fila {
	display: flex;
	gap: 8px;
	align-items: center;
	margin-bottom: 8px;
}

.anc-variante-fila input {
	flex: 1 1 auto;
	min-width: 0;
	padding: 9px 11px;
	border: 1px solid #DCE0E6;
	border-radius: 9px;
	font-size: 14px;
	font-family: inherit;
}

.anc-variante-fila__precio {
	flex: 0 0 110px !important;
	text-align: right;
}

.anc-variante-quitar {
	border: 0;
	background: none;
	cursor: pointer;
	flex: 0 0 auto;
}

.anc-fila__opciones {
	display: flex;
	flex-direction: column;
	align-items: flex-end;
	text-decoration: none;
	font-size: 12px;
	color: #6B7280;
	padding: 4px 8px;
	border: 1px dashed #DCE0E6;
	border-radius: 8px;
}

.anc-fila__opciones u {
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	color: #1E2430;
	white-space: nowrap;
}

/* --------------------------------------------------- Árbol de la carta */

.anc-arbol {
	list-style: none;
	margin: 0 0 18px;
	padding: 0;
}

.anc-rama {
	background: #fff;
	border: 1px solid #E4E7EC;
	border-radius: 12px;
	margin-bottom: 10px;
	overflow: hidden;
}

.anc-fila--familia {
	border-bottom: 0;
	background: #FBFBFC;
}

.anc-fila--familia .anc-fila__main strong {
	font-size: 15.5px;
}

.anc-hijos {
	list-style: none;
	margin: 0;
	padding: 0 0 4px 0;
	border-top: 1px solid #EFF1F4;
}

.anc-fila--hija {
	padding-left: 34px;
	position: relative;
	border-bottom: 1px solid #F4F6F8;
}

.anc-fila--hija::before {
	content: "";
	position: absolute;
	left: 20px;
	top: 50%;
	width: 8px;
	height: 1px;
	background: #D6DAE1;
}

.anc-fila--hija:last-child {
	border-bottom: 0;
}

.is-guardando {
	opacity: .6;
}

/* ------------------------------------------------------------ Formularios */

.anc-card {
	background: #fff;
	border: 1px solid #E4E7EC;
	border-radius: 12px;
	padding: 22px;
	margin-bottom: 18px;
}

.anc-campo {
	margin-bottom: 16px;
}

.anc-campo label {
	display: block;
	margin-bottom: 6px;
	font-size: 13px;
	font-weight: 600;
	color: #3A4252;
}

.anc-campo input[type="text"],
.anc-campo input[type="url"],
.anc-campo input[type="number"],
.anc-campo select,
.anc-campo textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #DCE0E6;
	border-radius: 9px;
	font-size: 14px;
	font-family: inherit;
	background: #fff;
	color: #1E2430;
}

.anc-campo textarea {
	resize: vertical;
	min-height: 62px;
}

.anc-campo input:focus,
.anc-campo select:focus,
.anc-campo textarea:focus {
	outline: 2px solid rgba(229, 57, 127, .25);
	border-color: var(--anc-acento, #E5397F);
}

.anc-campo--check label {
	display: flex;
	align-items: center;
	gap: 9px;
	font-weight: 500;
	font-size: 14px;
}

.anc-campo--check input {
	width: 18px;
	height: 18px;
}

.anc-lang {
	display: inline-block;
	margin-left: 6px;
	padding: 1px 7px;
	border-radius: 20px;
	background: #EEF1F5;
	color: #6B7280;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
}

.anc-bloque-lang {
	border-top: 1px solid #EFF1F4;
	padding-top: 16px;
	margin-top: 4px;
}

.anc-bloque-lang__tit {
	margin: 0 0 12px;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--anc-acento, #E5397F);
}

.anc-grid2 {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
}

.anc-ayuda {
	margin: -6px 0 16px;
	font-size: 12.5px;
	color: #8A93A0;
}

.anc-form__pie {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	align-items: center;
}

.anc-form__pie--sticky {
	position: sticky;
	bottom: 0;
	padding: 12px 0;
	background: linear-gradient(to top, #F4F5F7 65%, rgba(244, 245, 247, 0));
}

/* ---------------------------------------------------------- Horarios */

.anc-subtitulo {
	margin: 26px 0 4px;
	font-size: 17px;
	font-weight: 700;
	color: #1E2430;
}

.anc-horas {
	list-style: none;
	margin: 0;
	padding: 0;
}

.anc-horas__fila {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 10px 0;
	border-bottom: 1px solid #EFF1F4;
}

.anc-horas__fila:last-child {
	border-bottom: 0;
}

.anc-horas__fila.is-cerrado .anc-horas__turno {
	opacity: .4;
}

.anc-horas__dia {
	display: flex;
	align-items: center;
	gap: 9px;
	flex: 0 0 150px;
	font-size: 14px;
	font-weight: 600;
	color: #1E2430;
	margin: 0;
	cursor: pointer;
}

.anc-horas__dia input {
	width: 18px;
	height: 18px;
}

.anc-horas__turno,
.anc-especial-fila {
	display: flex;
	align-items: center;
	gap: 6px;
}

.anc-horas__turno input {
	width: 78px;
	padding: 8px 10px;
	border: 1px solid #DCE0E6;
	border-radius: 8px;
	text-align: center;
	font-size: 14px;
	font-family: inherit;
}

.anc-horas__turno i,
.anc-especial-fila i {
	font-style: normal;
	color: #8A93A0;
}

.anc-especiales {
	margin-bottom: 12px;
}

.anc-especial-fila {
	flex-wrap: wrap;
	margin-bottom: 8px;
}

.anc-especial-fila input[type="date"],
.anc-especial-fila input[type="text"] {
	padding: 8px 10px;
	border: 1px solid #DCE0E6;
	border-radius: 8px;
	font-size: 14px;
	font-family: inherit;
	width: 84px;
	text-align: center;
}

.anc-especial-fila input[type="date"] {
	width: 155px;
	text-align: left;
}

.anc-especial-fila__nota {
	flex: 1 1 200px;
	width: auto !important;
	text-align: left !important;
}

.anc-especial-fila__cerrado {
	display: flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #3A4252;
	margin: 0;
}

.anc-card--info {
	background: #F7F9FC;
	font-size: 13.5px;
}

.anc-card--info p {
	margin: 6px 0 0;
}

/* ---------------------------------------------------------- Estados */

.anc-vacio {
	background: #fff;
	border: 1px dashed #D6DAE1;
	border-radius: 12px;
	padding: 40px 20px;
	text-align: center;
	color: #6B7280;
}

.anc-vacio p {
	margin: 12px 0 18px;
	font-size: 14px;
}

/* ------------------------------------------------------------ Inicio */

.anc-stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 14px;
	margin-bottom: 22px;
}

.anc-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 18px;
	background: #fff;
	border: 1px solid #E4E7EC;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}

.anc-stat:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(30, 36, 48, .07);
}

.anc-stat__icon {
	color: var(--anc-acento, #E5397F);
	margin-bottom: 6px;
}

.anc-stat__valor {
	font-size: 26px;
	font-weight: 700;
	line-height: 1;
	color: #1E2430;
}

.anc-stat__label {
	font-size: 12.5px;
	color: #8A93A0;
}

.anc-modulos {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
	gap: 14px;
}

.anc-modulo {
	display: flex;
	align-items: center;
	gap: 14px;
	padding: 18px;
	background: #fff;
	border: 1px solid #E4E7EC;
	border-radius: 12px;
	text-decoration: none;
	color: inherit;
	transition: transform .15s ease, box-shadow .15s ease;
}

.anc-modulo:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(30, 36, 48, .07);
}

.anc-modulo__icon {
	display: grid;
	place-items: center;
	width: 46px;
	height: 46px;
	border-radius: 12px;
	background: rgba(229, 57, 127, .1);
	color: var(--anc-acento, #E5397F);
	flex: 0 0 auto;
}

.anc-modulo__txt {
	display: flex;
	flex-direction: column;
	gap: 2px;
}

.anc-modulo__txt strong {
	font-size: 15px;
	color: #1E2430;
}

.anc-modulo__txt em {
	font-style: normal;
	font-size: 12.5px;
	color: #8A93A0;
}

/* -------------------------------------------------------------- Login */

.anc-login {
	display: grid;
	place-items: center;
	min-height: 100vh;
	padding: 20px;
	background: #F4F5F7;
}

.anc-login__box {
	width: 100%;
	max-width: 380px;
	background: #fff;
	border: 1px solid #E4E7EC;
	border-radius: 14px;
	padding: 34px 28px;
	text-align: center;
	box-shadow: 0 10px 30px rgba(30, 36, 48, .06);
}

.anc-login__icon {
	color: var(--anc-acento, #E5397F);
	margin-bottom: 10px;
}

.anc-login__titulo {
	margin: 0 0 6px;
	font-size: 20px;
	color: #1E2430;
}

.anc-login__sub {
	margin: 0 0 20px;
	font-size: 13.5px;
	color: #8A93A0;
}

.anc-login__error {
	color: #B3261E;
	font-size: 13.5px;
}

.anc-login__box label {
	display: block;
	text-align: left;
	font-size: 13px;
	font-weight: 600;
	color: #3A4252;
	margin-bottom: 5px;
}

.anc-login__box input[type="text"],
.anc-login__box input[type="password"] {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #DCE0E6;
	border-radius: 9px;
	font-size: 14px;
	margin-bottom: 12px;
}

.anc-login__box .login-remember {
	text-align: left;
	font-weight: 400;
}

.anc-login__box input[type="submit"] {
	width: 100%;
	padding: 11px;
	border: 0;
	border-radius: 9px;
	background: var(--anc-acento, #E5397F);
	color: #fff;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
}

/* -------------------------------------------------------------- Móvil */

.anc-sortable-placeholder {
	height: 54px;
	background: #F1F3F6;
	border: 1px dashed #C9CFDA;
}

@media (max-width: 860px) {
	.anc-side {
		position: fixed;
		left: -270px;
		z-index: 60;
		transition: left .2s ease;
		box-shadow: 0 0 30px rgba(0, 0, 0, .2);
	}

	.anc-side.is-abierto {
		left: 0;
	}

	.anc-main {
		padding: 20px 16px 60px;
	}

	.anc-menu-movil {
		display: inline-flex;
	}

	.anc-grid2 {
		grid-template-columns: 1fr;
	}

	.anc-fila {
		flex-wrap: wrap;
	}

	.anc-fila__main {
		flex: 1 1 60%;
	}
}
