.anuncio-admin-card {
	overflow: hidden;
}

.anuncio-tabla-imagen {
	width: 84px;
	height: 58px;
	object-fit: contain;
	border: 1px solid #d7dee9;
	border-radius: 10px;
	background: #f8fafc;
}

.anuncio-tabla-texto {
	min-width: 260px;
	max-width: 520px;
	white-space: normal;
}

.anuncio-tabla-texto p {
	white-space: pre-line;
	word-break: break-word;
}

.anuncio-vacio .material-symbols-outlined {
	color: #94a3b8;
	font-size: 3rem;
}

.anuncio-textarea {
	min-height: 220px;
	resize: vertical;
}

.anuncio-imagen-dropzone {
	min-height: 310px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 14px;
	overflow: hidden;
	border: 2px dashed #60a5fa;
	border-radius: 14px;
	background: #f8fafc;
	color: #475569;
	cursor: pointer;
	transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.anuncio-imagen-dropzone:hover,
.anuncio-imagen-dropzone:focus,
.anuncio-imagen-dropzone.is-dragover {
	border-color: #0d6efd;
	background: #eff6ff;
	box-shadow: 0 0 0 4px rgba(13, 110, 253, 0.12);
	outline: none;
}

.anuncio-imagen-preview {
	width: 100%;
	height: 235px;
	overflow: hidden;
	border-radius: 10px;
	background: #e9eef5;
}

.anuncio-imagen-preview img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: contain;
}

.anuncio-imagen-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 5px;
	text-align: center;
}

.anuncio-imagen-placeholder i {
	color: #0d6efd;
	font-size: 2.75rem;
	line-height: 1;
}

.anuncio-imagen-placeholder span {
	font-size: 0.85rem;
}

.anuncio-imagen-nombre {
	max-width: 100%;
	overflow: hidden;
	color: #64748b;
	font-size: 0.8rem;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.anuncio-archivo-oculto {
	display: none;
}

.principal-anuncios {
	padding: 18px;
	border: 1px solid rgba(13, 110, 253, 0.22);
	border-radius: 18px;
	background:
		radial-gradient(circle at top right, rgba(13, 110, 253, 0.12), transparent 34%),
		rgba(255, 255, 255, 0.94);
	box-shadow: 0 16px 34px rgba(6, 31, 86, 0.18);
}

.principal-anuncios-encabezado {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-bottom: 16px;
}

.principal-anuncios-icono {
	width: 46px;
	height: 46px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	border-radius: 14px;
	background: linear-gradient(135deg, #0d6efd, #061f56);
	color: #fff;
	box-shadow: 0 10px 20px rgba(13, 110, 253, 0.2);
}

.principal-anuncios-icono .material-symbols-outlined {
	font-size: 1.7rem;
}

.principal-anuncios-encabezado h2 {
	margin: 0;
	color: #172033;
	font-size: 1.1rem;
	font-weight: 700;
}

.principal-anuncios-encabezado p {
	margin: 2px 0 0;
	color: #64748b;
	font-size: 0.82rem;
}

.principal-anuncios-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.principal-anuncio-card {
	position: relative;
	display: grid;
	grid-template-columns: 74px minmax(0, 1fr);
	min-width: 0;
	max-height: 100vh;
	max-height: 100dvh;
	margin: 0;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid #dbe5f2 !important;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
	color: #334155;
}

.principal-anuncio-card.tiene-imagen {
	display: flex;
	flex-direction: column;
	grid-column: 1 / -1;
}

.principal-anuncio-imagen {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 1 auto;
	min-height: 0;
	width: 100%;
	overflow: hidden;
	background: #eef2f7;
}

.principal-anuncio-imagen img {
	width: 100%;
	height: 100%;
	max-width: 100%;
	max-height: 100%;
	display: block;
	object-fit: contain;
}

.principal-anuncio-marca {
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(160deg, #0d6efd, #061f56);
	color: #fff;
}

.principal-anuncio-marca .material-symbols-outlined {
	font-size: 2rem;
}

.principal-anuncio-contenido {
	min-width: 0;
	padding: 18px 46px 18px 18px;
}

.principal-anuncio-card.tiene-imagen .principal-anuncio-contenido {
	flex: 0 0 auto;
	padding: 16px 46px 20px 18px;
}

.principal-anuncio-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 9px;
	color: #64748b;
	font-size: 0.78rem;
	font-weight: 500;
}

.principal-anuncio-contenido p {
	margin: 0;
	color: #1e293b;
	font-size: 0.98rem;
	font-weight: 500;
	line-height: 1.55;
	white-space: pre-line;
	word-break: break-word;
}

.principal-anuncio-cerrar {
	position: absolute;
	top: 10px;
	right: 10px;
	z-index: 3;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	border: 1px solid rgba(15, 23, 42, 0.16);
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.94);
	color: #334155;
	box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.principal-anuncio-cerrar:hover,
.principal-anuncio-cerrar:focus {
	background: #fff;
	color: #dc3545;
	outline: none;
}

.principal-anuncio-cerrar .material-symbols-outlined {
	font-size: 1.25rem;
}

@media (max-width: 767.98px) {
	.anuncio-imagen-dropzone {
		min-height: 260px;
	}

	.anuncio-imagen-preview {
		height: 190px;
	}

	.principal-anuncios {
		padding: 14px;
		border-radius: 15px;
	}

	.principal-anuncios-grid {
		grid-template-columns: 1fr;
	}

	.principal-anuncio-card,
	.principal-anuncio-card.tiene-imagen {
		grid-template-columns: 1fr;
	}

	.principal-anuncio-card.sin-imagen {
		grid-template-columns: 68px minmax(0, 1fr);
	}

	.principal-anuncio-contenido,
	.principal-anuncio-card.tiene-imagen .principal-anuncio-contenido {
		padding: 16px 44px 18px 16px;
	}

	.principal-anuncio-meta {
		flex-direction: column;
		gap: 4px;
	}
}
