/* ========================================
   FORMULARIO DE BENEFICIOS
   ======================================== */

/* Contenedor principal del input de beneficios */
.beneficio-input-container {
	display: flex;
	gap: 10px;
	margin-bottom: 10px;
	align-items: center;
}

/* Campo de entrada de texto para beneficios */
.beneficio-input-field {
	flex: 1;
	padding: 8px;
	border: 1px solid #ddd;
	border-radius: 4px;
	font-size: 14px;
	font-family: inherit;
}

.beneficio-input-field:focus {
	outline: none;
	border-color: #2196F3;
	box-shadow: 0 0 5px rgba(33, 150, 243, 0.3);
}

/* Botón para agregar beneficio */
.btn-agregar-beneficio {
	padding: 8px 15px;
	background-color: #2196F3;
	color: white;
	border: none;
	border-radius: 4px;
	cursor: pointer;
	font-size: 14px;
	font-weight: 500;
	transition: background-color 0.2s ease;
}

.btn-agregar-beneficio:hover {
	background-color: #1976d2;
}

.btn-agregar-beneficio:active {
	background-color: #1565c0;
}

/* ========================================
   LISTA DE BENEFICIOS
   ======================================== */

/* Contenedor de la lista de beneficios */
.beneficios-lista-container {
	margin-bottom: 15px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	min-height: 0;
}

/* Tag/Etiqueta de beneficio */
.beneficio-tag {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background-color: #e3f2fd;
	border: 1px solid #2196F3;
	border-radius: 4px;
	padding: 6px 12px;
	margin: 4px 4px 4px 0;
	font-size: 14px;
	animation: slideIn 0.2s ease;
}

@keyframes slideIn {
	from {
		opacity: 0;
		transform: translateX(-10px);
	}
	to {
		opacity: 1;
		transform: translateX(0);
	}
}

/* Texto del beneficio dentro del tag */
.beneficio-tag .beneficio-text {
	color: #1976d2;
	font-weight: 500;
	word-break: break-word;
	max-width: 300px;
}

/* Botón para quitar beneficio */
.beneficio-tag .btn-quitar {
	background: none;
	border: none;
	color: #d32f2f;
	cursor: pointer;
	font-size: 18px;
	padding: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	margin-left: 4px;
	transition: all 0.2s ease;
	flex-shrink: 0;
}

.beneficio-tag .btn-quitar:hover {
	color: #b71c1c;
	transform: scale(1.2);
}

.beneficio-tag .btn-quitar:active {
	transform: scale(0.95);
}

/* ======== SECCIONES AGRUPADAS POR CATEGORÍA ======== */
.categoria-section {
	margin-bottom: 30px;
}

.categoria-section h3 {
	color: var(--azul);
	margin-bottom: 15px;
	border-bottom: 2px solid var(--rosado);
	padding-bottom: 10px;
}

.categoria-section p {
	color: #999;
	font-style: italic;
}

/* Tabla de beneficios dentro de la sección */
.beneficios-tabla-container {
	margin-top: 15px;
	padding-top: 15px;
	border-top: 1px solid #ddd;
}

.beneficios-tabla-container h4 {
	color: var(--azul);
	margin-top: 0;
	margin-bottom: 10px;
	font-size: 14px;
}

.tabla-beneficios {
	width: 100%;
}

.tabla-beneficios thead th {
	background-color: #f0f0f0;
	color: var(--azul);
	padding: 10px;
	text-align: left;
	font-weight: 600;
	border-bottom: 2px solid var(--rosado);
}

.tabla-beneficios tbody tr {
	border-bottom: 1px solid #eee;
}

.tabla-beneficios tbody tr:hover {
	background-color: #f9f9f9;
}

.tabla-beneficios tbody td {
	padding: 8px 10px;
	color: var(--gris-texto);
}


